================================================================== BUG: KASAN: slab-out-of-bounds in firmware_param_path_get+0x348/0x350 drivers/base/firmware_loader/main.c:531 Write of size 1 at addr ffff888105bb7fff by task syz.5.3123/9846 CPU: 0 PID: 9846 Comm: syz.5.3123 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report+0x10f/0x150 mm/kasan/report.c:444 __asan_report_store1_noabort+0x17/0x20 mm/kasan/report_generic.c:311 firmware_param_path_get+0x348/0x350 drivers/base/firmware_loader/main.c:531 param_attr_show+0x150/0x1b0 kernel/params.c:567 module_attr_show+0x56/0x70 kernel/params.c:886 sysfs_kf_seq_show+0x266/0x3d0 fs/sysfs/file.c:61 kernfs_seq_show+0x119/0x160 fs/kernfs/file.c:168 seq_read_iter+0x472/0xce0 fs/seq_file.c:230 kernfs_fop_read_iter+0x146/0x460 fs/kernfs/file.c:241 call_read_iter include/linux/fs.h:2212 [inline] generic_file_splice_read+0x3ea/0x5f0 fs/splice.c:311 do_splice_to fs/splice.c:796 [inline] splice_direct_to_actor+0x40f/0xb40 fs/splice.c:870 do_splice_direct+0x1c2/0x2d0 fs/splice.c:979 do_sendfile+0x515/0xe20 fs/read_write.c:1249 __do_sys_sendfile64 fs/read_write.c:1317 [inline] __se_sys_sendfile64 fs/read_write.c:1303 [inline] __x64_sys_sendfile64+0x199/0x1f0 fs/read_write.c:1303 x64_sys_call+0x88d/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:41 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f9da7561559 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f9da5fb9028 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f9da77e7fa0 RCX: 00007f9da7561559 RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000003 RBP: 00007f9da75f8b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f9da77e8038 R14: 00007f9da77e7fa0 R15: 00007ffe8c3e4c08 Allocated by task 1: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:433 [inline] __kasan_slab_alloc+0xb7/0xe0 mm/kasan/common.c:466 kasan_slab_alloc include/linux/kasan.h:217 [inline] slab_post_alloc_hook+0x4f/0x2b0 mm/slab.h:550 slab_alloc_node mm/slub.c:3245 [inline] slab_alloc mm/slub.c:3255 [inline] kmem_cache_alloc+0xf7/0x260 mm/slub.c:3260 kmem_cache_zalloc include/linux/slab.h:740 [inline] __kernfs_new_node+0xe1/0x670 fs/kernfs/dir.c:593 kernfs_new_node+0x150/0x260 fs/kernfs/dir.c:669 __kernfs_create_file+0x4e/0x270 fs/kernfs/file.c:987 sysfs_add_file_mode_ns+0x29a/0x350 fs/sysfs/file.c:321 create_files fs/sysfs/group.c:64 [inline] internal_create_group+0x492/0xd00 fs/sysfs/group.c:149 internal_create_groups fs/sysfs/group.c:189 [inline] sysfs_create_groups+0x58/0x120 fs/sysfs/group.c:215 device_add_groups drivers/base/core.c:2501 [inline] device_add_attrs+0xd4/0x710 drivers/base/core.c:2655 device_add+0x5a2/0xe90 drivers/base/core.c:3373 pci_device_add+0xfa9/0x15d0 drivers/pci/probe.c:2569 pci_scan_single_device+0x344/0x400 drivers/pci/probe.c:2587 pci_scan_slot+0x19b/0x7d0 drivers/pci/probe.c:2662 pci_scan_child_bus_extend+0x95/0x850 drivers/pci/probe.c:2879 pci_scan_child_bus+0x17/0x20 drivers/pci/probe.c:3009 acpi_pci_root_create+0xb59/0xd60 drivers/acpi/pci_root.c:926 pci_acpi_scan_root+0x2a9/0x500 arch/x86/pci/acpi.c:487 acpi_pci_root_add+0xc21/0x20b0 drivers/acpi/pci_root.c:597 acpi_scan_attach_handler drivers/acpi/scan.c:2137 [inline] acpi_bus_attach+0x783/0xbf0 drivers/acpi/scan.c:2185 acpi_bus_attach+0x2dc/0xbf0 drivers/acpi/scan.c:2206 acpi_bus_attach+0x2dc/0xbf0 drivers/acpi/scan.c:2206 acpi_bus_scan+0xe1/0x1a0 drivers/acpi/scan.c:2378 acpi_scan_init+0x1f5/0x6b0 drivers/acpi/scan.c:2553 acpi_init+0x162/0x220 drivers/acpi/bus.c:1356 do_one_initcall+0x1fc/0x5a0 init/main.c:1279 do_initcall_level+0x174/0x2e0 init/main.c:1352 do_initcalls+0x50/0xa0 init/main.c:1368 do_basic_setup+0x81/0x90 init/main.c:1387 kernel_init_freeable+0x298/0x3d0 init/main.c:1592 kernel_init+0x1d/0x1b0 init/main.c:1483 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 The buggy address belongs to the object at ffff888105bb7ed8 which belongs to the cache kernfs_node_cache of size 136 The buggy address is located 159 bytes to the right of 136-byte region [ffff888105bb7ed8, ffff888105bb7f60) The buggy address belongs to the page: page:ffffea000416edc0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105bb7 flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 0000000000000000 dead000000000122 ffff8881001c5c80 raw: 0000000000000000 0000000000140014 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 1, ts 1398206934, free_ts 0 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2607 prep_new_page+0x1c/0x110 mm/page_alloc.c:2613 get_page_from_freelist+0x2c3a/0x2cd0 mm/page_alloc.c:4487 __alloc_pages+0x1a2/0x460 mm/page_alloc.c:5824 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1937 [inline] new_slab+0xa0/0x4d0 mm/slub.c:2000 ___slab_alloc+0x3ac/0x840 mm/slub.c:3033 __slab_alloc+0x49/0x90 mm/slub.c:3120 slab_alloc_node mm/slub.c:3211 [inline] slab_alloc mm/slub.c:3255 [inline] kmem_cache_alloc+0x138/0x260 mm/slub.c:3260 kmem_cache_zalloc include/linux/slab.h:740 [inline] __kernfs_new_node+0xe1/0x670 fs/kernfs/dir.c:593 kernfs_new_node+0x150/0x260 fs/kernfs/dir.c:669 __kernfs_create_file+0x4e/0x270 fs/kernfs/file.c:987 sysfs_add_file_mode_ns+0x29a/0x350 fs/sysfs/file.c:321 create_files fs/sysfs/group.c:64 [inline] internal_create_group+0x492/0xd00 fs/sysfs/group.c:149 internal_create_groups fs/sysfs/group.c:189 [inline] sysfs_create_groups+0x58/0x120 fs/sysfs/group.c:215 device_add_groups drivers/base/core.c:2501 [inline] device_add_attrs+0x14b/0x710 drivers/base/core.c:2660 device_add+0x5a2/0xe90 drivers/base/core.c:3373 page_owner free stack trace missing Memory state around the buggy address: ffff888105bb7e80: 00 00 00 fc fc fc fc fc fc fc fc 00 00 00 00 00 ffff888105bb7f00: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc >ffff888105bb7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888105bb8000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888105bb8080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================