================================================================== BUG: KASAN: slab-use-afte BUG: KASAN: slab-use-after-free in kobject_uevent_net_broadcast lib/kobject_uevent.c:415 [inline] BUG: KASAN: slab-use-after-free in kobject_uevent_env+0x1383/0x18b0 lib/kobject_uevent.c:611 Read of size 8 at addr ffff888024f25dd0 by task kworker/u8:2/45 CPU: 1 UID: 0 PID: 45 Comm: kworker/u8:2 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Workqueue: ib-unreg-wq ib_unregister_work Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x13d/0x4b0 mm/kasan/report.c:482 kasan_report+0xdf/0x1c0 mm/kasan/report.c:595 kobject_uevent_net_broadcast lib/kobject_uevent.c:415 [inline] kobject_uevent_env+0x1383/0x18b0 lib/kobject_uevent.c:611 device_del+0x605/0x9b0 drivers/base/core.c:3985 remove_one_compat_dev drivers/infiniband/core/device.c:1036 [inline] remove_compat_devs drivers/infiniband/core/device.c:1047 [inline] disable_device+0x1ea/0x280 drivers/infiniband/core/device.c:1339 __ib_unregister_device+0x2b4/0x480 drivers/infiniband/core/device.c:1571 ib_unregister_work+0x19/0x30 drivers/infiniband/core/device.c:1683 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3495 process_scheduled_works kernel/workqueue.c:3578 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3659 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 14035: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:409 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:426 kasan_kmalloc include/linux/kasan.h:263 [inline] __kmalloc_cache_noprof+0x2f8/0x6d0 mm/slub.c:5680 _kmalloc_noprof include/linux/slab.h:991 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] uevent_net_init+0xd3/0x330 lib/kobject_uevent.c:782 ops_init+0x1e2/0x5f0 net/core/net_namespace.c:137 setup_net+0x118/0x3a0 net/core/net_namespace.c:443 copy_net_ns+0x340/0x7a0 net/core/net_namespace.c:584 create_new_namespaces+0x3ea/0xac0 kernel/nsproxy.c:132 unshare_nsproxy_namespaces+0xf6/0x210 kernel/nsproxy.c:234 ksys_unshare+0x44f/0x980 kernel/fork.c:3306 __do_sys_unshare kernel/fork.c:3372 [inline] __se_sys_unshare kernel/fork.c:3370 [inline] __x64_sys_unshare+0x31/0x40 kernel/fork.c:3370 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 14035: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 kasan_save_free_info+0x3b/0x70 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:264 [inline] __kasan_slab_free+0x5f/0x80 mm/kasan/common.c:296 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2780 [inline] slab_free mm/slub.c:6630 [inline] kfree+0x22b/0x6d0 mm/slub.c:6923 ops_exit_list net/core/net_namespace.c:200 [inline] ops_undo_list+0x2ee/0xab0 net/core/net_namespace.c:253 setup_net+0x1fa/0x3a0 net/core/net_namespace.c:461 copy_net_ns+0x340/0x7a0 net/core/net_namespace.c:584 create_new_namespaces+0x3ea/0xac0 kernel/nsproxy.c:132 unshare_nsproxy_namespaces+0xf6/0x210 kernel/nsproxy.c:234 ksys_unshare+0x44f/0x980 kernel/fork.c:3306 __do_sys_unshare kernel/fork.c:3372 [inline] __se_sys_unshare kernel/fork.c:3370 [inline] __x64_sys_unshare+0x31/0x40 kernel/fork.c:3370 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888024f25dc0 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 16 bytes inside of freed 32-byte region [ffff888024f25dc0, ffff888024f25de0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x24f25 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff88813ff10780 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000400040 00000000f5000000 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 0xd2800(GFP_NOWAIT|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 4985, tgid 4985 (S10udev), ts 14815860592 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1859 prep_new_page mm/page_alloc.c:1867 [inline] get_page_from_freelist+0x112f/0x3640 mm/page_alloc.c:3940 __alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5464 alloc_slab_page mm/slub.c:3384 [inline] allocate_slab mm/slub.c:3499 [inline] new_slab+0xb1/0x6d0 mm/slub.c:3550 refill_objects+0xe3/0x410 mm/slub.c:7539 refill_sheaf mm/slub.c:2917 [inline] __pcs_replace_empty_main+0x35e/0x650 mm/slub.c:4811 alloc_from_pcs mm/slub.c:4887 [inline] slab_alloc_node mm/slub.c:5021 [inline] __kmalloc_cache_noprof+0x4ef/0x6d0 mm/slub.c:5676 _kmalloc_noprof include/linux/slab.h:991 [inline] slab_free_hook mm/slub.c:2732 [inline] slab_free mm/slub.c:6630 [inline] kmem_cache_free+0x40f/0x6c0 mm/slub.c:6757 tear_down_vmas+0x2a5/0x610 mm/mmap.c:1277 exit_mmap+0x469/0xa40 mm/mmap.c:1335 __mmput+0x12a/0x410 kernel/fork.c:1192 mmput+0x62/0x70 kernel/fork.c:1215 setup_new_exec+0x1d9/0x2a0 fs/exec.c:1395 load_elf_binary+0x598/0x51d0 fs/binfmt_elf.c:1024 search_binary_handler fs/exec.c:1777 [inline] exec_binprm fs/exec.c:1809 [inline] bprm_execve fs/exec.c:1865 [inline] bprm_execve+0x8cd/0x1940 fs/exec.c:1841 do_execveat_common.isra.0+0x49d/0x580 fs/exec.c:1963 page last free pid 4985 tgid 4985 ts 14815815920 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1403 [inline] __free_frozen_pages+0x7b4/0x1110 mm/page_alloc.c:2957 tlb_batch_list_free mm/mmu_gather.c:161 [inline] tlb_finish_mmu+0x27d/0x810 mm/mmu_gather.c:532 exit_mmap+0x454/0xa40 mm/mmap.c:1328 __mmput+0x12a/0x410 kernel/fork.c:1192 mmput+0x62/0x70 kernel/fork.c:1215 setup_new_exec+0x1d9/0x2a0 fs/exec.c:1395 load_elf_binary+0x598/0x51d0 fs/binfmt_elf.c:1024 search_binary_handler fs/exec.c:1777 [inline] exec_binprm fs/exec.c:1809 [inline] bprm_execve fs/exec.c:1865 [inline] bprm_execve+0x8cd/0x1940 fs/exec.c:1841 do_execveat_common.isra.0+0x49d/0x580 fs/exec.c:1963 __do_sys_execve fs/exec.c:2036 [inline] __se_sys_execve fs/exec.c:2030 [inline] __x64_sys_execve+0x93/0xd0 fs/exec.c:2030 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff888024f25c80: fa fb fb fb fc fc fc fc 00 00 00 00 fc fc fc fc ffff888024f25d00: 00 00 06 fc fc fc fc fc 00 00 04 fc fc fc fc fc >ffff888024f25d80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc ^ ffff888024f25e00: 00 00 00 00 fc fc fc fc 00 00 00 02 fc fc fc fc ffff888024f25e80: 00 00 03 fc fc fc fc fc fa fb fb fb fc fc fc fc ==================================================================