================================================================== 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 ffff8881079cffff by task syz.2.81/638 CPU: 0 PID: 638 Comm: syz.2.81 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/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:2206 [inline] new_sync_read fs/read_write.c:404 [inline] vfs_read+0x6c0/0xc20 fs/read_write.c:485 ksys_read+0x14a/0x260 fs/read_write.c:623 __do_sys_read fs/read_write.c:633 [inline] __se_sys_read fs/read_write.c:631 [inline] __x64_sys_read+0x7b/0x90 fs/read_write.c:631 x64_sys_call+0x96d/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:1 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:0x7fceaa1f60d9 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:00007fcea8c4f028 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007fceaa47dfa0 RCX: 00007fceaa1f60d9 RDX: 0000000000002020 RSI: 0000200000002600 RDI: 0000000000000006 RBP: 00007fceaa28d024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fceaa47e038 R14: 00007fceaa47dfa0 R15: 00007ffd23b67e48 Allocated by task 286: 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_kmalloc mm/kasan/common.c:512 [inline] __kasan_kmalloc+0xd4/0x100 mm/kasan/common.c:521 kasan_kmalloc include/linux/kasan.h:227 [inline] __kmalloc_track_caller+0x13c/0x2c0 mm/slub.c:4959 kmemdup+0x26/0x60 mm/util.c:132 __devinet_sysctl_register+0xb5/0x390 net/ipv4/devinet.c:2592 devinet_init_net+0x312/0x5b0 net/ipv4/devinet.c:2727 ops_init+0x2c0/0x470 net/core/net_namespace.c:138 setup_net+0x331/0xa30 net/core/net_namespace.c:332 copy_net_ns+0x355/0x5c0 net/core/net_namespace.c:476 create_new_namespaces+0x3a8/0x660 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0x120/0x170 kernel/nsproxy.c:226 ksys_unshare+0x4d7/0x810 kernel/fork.c:3247 __do_sys_unshare kernel/fork.c:3324 [inline] __se_sys_unshare kernel/fork.c:3322 [inline] __x64_sys_unshare+0x38/0x40 kernel/fork.c:3322 x64_sys_call+0x442/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:273 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 The buggy address belongs to the object at ffff8881079ce000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 4095 bytes to the right of 4096-byte region [ffff8881079ce000, ffff8881079cf000) The buggy address belongs to the page: page:ffffea00041e7200 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1079c8 head:ffffea00041e7200 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 ffffea00041e7000 0000000300000003 ffff888100043380 raw: 0000000000000000 0000000000040004 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, ts 1361772580, 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_trace+0x146/0x270 mm/slub.c:3272 kmalloc include/linux/slab.h:619 [inline] kzalloc include/linux/slab.h:750 [inline] kobject_uevent_env+0x271/0x700 lib/kobject_uevent.c:539 kobject_uevent+0x1d/0x30 lib/kobject_uevent.c:657 kernel_add_sysfs_param+0x10b/0x130 kernel/params.c:802 param_sysfs_builtin+0x183/0x200 kernel/params.c:837 param_sysfs_init+0x6a/0x70 kernel/params.c:958 do_one_initcall+0x1fc/0x5a0 init/main.c:1318 do_initcall_level+0x174/0x2e0 init/main.c:1391 do_initcalls+0x50/0xa0 init/main.c:1407 page_owner free stack trace missing Memory state around the buggy address: ffff8881079cfe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881079cff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8881079cff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8881079d0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881079d0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== process 'syz.2.81' launched './file0' with NULL argv: empty string added Invalid argument reading file caps for ./file0