kernfs fw_ver: removing kernfs node_desc: removing kernfs parent: removing PM: Removing info for No Bus:rxe0 kobject: 'rxe0' (ffff8880358f4000): kobject_uevent_env kobject: 'rxe0' (ffff8880358f4000): fill_kobj_path: path = '/devices/virtual/infiniband/rxe0' ================================================================== BUG: KASAN: slab-use-after-free in kobject_uevent_net_broadcast+0x12c/0x560 lib/kobject_uevent.c:415 Read of size 8 at addr ffff88802aab8410 by task syz.1.126/6462 CPU: 1 UID: 0 PID: 6462 Comm: syz.1.126 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/15/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 kobject_uevent_net_broadcast+0x12c/0x560 lib/kobject_uevent.c:415 kobject_uevent_env+0x566/0x9e0 lib/kobject_uevent.c:611 device_del+0x74d/0x8f0 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+0x248/0x330 drivers/infiniband/core/device.c:1339 __ib_unregister_device+0x2c9/0x400 drivers/infiniband/core/device.c:1571 ib_unregister_device_and_put+0xb8/0xf0 drivers/infiniband/core/device.c:1636 nldev_dellink+0x3a4/0x440 drivers/infiniband/core/nldev.c:1905 rdma_nl_rcv_msg drivers/infiniband/core/netlink.c:-1 [inline] rdma_nl_rcv_skb drivers/infiniband/core/netlink.c:239 [inline] rdma_nl_rcv+0x6ef/0xa40 drivers/infiniband/core/netlink.c:259 netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline] netlink_unicast+0x8ef/0xa80 net/netlink/af_netlink.c:1361 netlink_sendmsg+0x7f0/0xb20 net/netlink/af_netlink.c:1920 sock_sendmsg_nosec+0x14e/0x190 net/socket.c:800 __sock_sendmsg net/socket.c:818 [inline] ____sys_sendmsg+0x54e/0x850 net/socket.c:2715 ___sys_sendmsg+0x2a6/0x360 net/socket.c:2769 __sys_sendmsg net/socket.c:2801 [inline] __do_sys_sendmsg net/socket.c:2806 [inline] __se_sys_sendmsg net/socket.c:2804 [inline] __x64_sys_sendmsg+0x1b1/0x290 net/socket.c:2804 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x16a/0x530 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x00007f634539fb19 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:00007f63461c0028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f6345625fa0 RCX: 00007f634539fb19 RDX: 0000000000000000 RSI: 00002000000068c0 RDI: 0000000000000003 RBP: 00007f6345437b70 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f6345626038 R14: 00007f6345625fa0 R15: 00007ffca976f0e8 Allocated by task 6436: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3f/0x90 mm/kasan/common.c:79 poison_kmalloc_redzone mm/kasan/common.c:412 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:429 kasan_kmalloc include/linux/kasan.h:267 [inline] __kmalloc_cache_noprof+0x31c/0x600 mm/slub.c:5676 _kmalloc_noprof include/linux/slab.h:991 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] uevent_net_init+0xdb/0x2d0 lib/kobject_uevent.c:782 ops_init+0x35d/0x5d0 net/core/net_namespace.c:137 setup_net+0x118/0x350 net/core/net_namespace.c:443 copy_net_ns+0x536/0x770 net/core/net_namespace.c:584 create_new_namespaces+0x3f0/0x6b0 kernel/nsproxy.c:132 unshare_nsproxy_namespaces+0x144/0x190 kernel/nsproxy.c:234 ksys_unshare+0x532/0x890 kernel/fork.c:3308 __do_sys_unshare kernel/fork.c:3374 [inline] __se_sys_unshare kernel/fork.c:3372 [inline] __x64_sys_unshare+0x38/0x50 kernel/fork.c:3372 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x16a/0x530 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 6436: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3f/0x90 mm/kasan/common.c:79 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:599 poison_slab_object mm/kasan/common.c:267 [inline] __kasan_slab_free+0x70/0x90 mm/kasan/common.c:299 kasan_slab_free include/linux/kasan.h:239 [inline] slab_free_hook mm/slub.c:2778 [inline] slab_free mm/slub.c:6613 [inline] kfree+0x1c7/0x650 mm/slub.c:6906 ops_exit_list net/core/net_namespace.c:200 [inline] ops_undo_list+0x451/0x8f0 net/core/net_namespace.c:253 setup_net+0x2f6/0x350 net/core/net_namespace.c:461 copy_net_ns+0x536/0x770 net/core/net_namespace.c:584 create_new_namespaces+0x3f0/0x6b0 kernel/nsproxy.c:132 unshare_nsproxy_namespaces+0x144/0x190 kernel/nsproxy.c:234 ksys_unshare+0x532/0x890 kernel/fork.c:3308 __do_sys_unshare kernel/fork.c:3374 [inline] __se_sys_unshare kernel/fork.c:3372 [inline] __x64_sys_unshare+0x38/0x50 kernel/fork.c:3372 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x16a/0x530 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88802aab8400 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 16 bytes inside of freed 32-byte region [ffff88802aab8400, ffff88802aab8420) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802aab8d40 pfn:0x2aab8 flags: 0xfff00000000200(workingset|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000200 ffff88813ff2c780 ffffea0000daa990 ffffea0000b82050 raw: ffff88802aab8d40 0000000000400039 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 0, tgid 0 (swapper/1), ts 46533903240 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1874 prep_new_page+0x22/0xb0 mm/page_alloc.c:1882 get_page_from_freelist+0x22a1/0x22e0 mm/page_alloc.c:3964 __alloc_frozen_pages_noprof+0x211/0x450 mm/page_alloc.c:5506 alloc_slab_page mm/slub.c:3382 [inline] allocate_slab+0x7d/0x5e0 mm/slub.c:3497 new_slab mm/slub.c:3548 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7522 refill_sheaf mm/slub.c:2915 [inline] __pcs_replace_empty_main+0x2c8/0x6c0 mm/slub.c:4807 alloc_from_pcs mm/slub.c:4883 [inline] slab_alloc_node mm/slub.c:5017 [inline] __kmalloc_cache_noprof+0x396/0x600 mm/slub.c:5672 _kmalloc_noprof include/linux/slab.h:991 [inline] slab_free_hook mm/slub.c:2730 [inline] slab_free mm/slub.c:6613 [inline] kmem_cache_free+0x158/0x660 mm/slub.c:6740 mempool_free+0xec/0x130 mm/mempool.c:719 blk_update_request+0x57b/0xe50 block/blk-mq.c:1036 scsi_end_request+0x77/0x820 drivers/scsi/scsi_lib.c:671 scsi_io_completion+0x133/0x360 drivers/scsi/scsi_lib.c:1128 blk_complete_reqs block/blk-mq.c:1242 [inline] blk_done_softirq+0x10a/0x160 block/blk-mq.c:1247 handle_softirqs+0x265/0x8d0 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0xc6/0x220 kernel/softirq.c:786 page last free pid 0 tgid 0 ts 46510041053 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1416 [inline] __free_frozen_pages+0xd1a/0xe10 mm/page_alloc.c:2972 rcu_do_batch kernel/rcu/tree.c:2650 [inline] rcu_core+0x92e/0x1230 kernel/rcu/tree.c:2919 handle_softirqs+0x265/0x8d0 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0xc6/0x220 kernel/softirq.c:786 irq_exit_rcu+0x9/0x30 kernel/softirq.c:809 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1073 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1073 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 Memory state around the buggy address: ffff88802aab8300: 00 00 00 00 fc fc fc fc 00 00 00 00 fc fc fc fc ffff88802aab8380: 00 00 00 00 fc fc fc fc 00 00 00 00 fc fc fc fc >ffff88802aab8400: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc ^ ffff88802aab8480: fa fb fb fb fc fc fc fc 00 00 00 00 fc fc fc fc ffff88802aab8500: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc ==================================================================