==================================================================
BUG: KASAN: slab-use-after-free in kobject_uevent_net_broadcast+0x12c/0x560
Read of size 8 at addr ffff888173fe5690 by task kworker/u9:0/20231

CPU: 0 UID: 0 PID: 20231 Comm: kworker/u9:0 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Workqueue: ib-unreg-wq ib_unregister_work
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150
 print_address_description+0x55/0x1e0
 print_report+0x58/0x70
 kasan_report+0x117/0x150
 kobject_uevent_net_broadcast+0x12c/0x560
 kobject_uevent_env+0x566/0x9e0
 device_del+0x74d/0x8f0
 disable_device+0x248/0x330
 __ib_unregister_device+0x2c9/0x400
 ib_unregister_work+0x19/0x30
 process_scheduled_works+0xc3d/0x1630
 worker_thread+0xa47/0xfb0
 kthread+0x38b/0x480
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>

Allocated by task 26959:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_cache_noprof+0x31c/0x600
 uevent_net_init+0xdb/0x2d0
 ops_init+0x35d/0x5d0
 setup_net+0x118/0x350
 copy_net_ns+0x536/0x770
 create_new_namespaces+0x3f0/0x6b0
 unshare_nsproxy_namespaces+0x144/0x190
 ksys_unshare+0x532/0x890
 __x64_sys_unshare+0x38/0x50
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 26959:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x40/0x50
 __kasan_slab_free+0x5c/0x80
 kfree+0x1c5/0x650
 ops_undo_list+0x451/0x8f0
 setup_net+0x2f6/0x350
 copy_net_ns+0x536/0x770
 create_new_namespaces+0x3f0/0x6b0
 unshare_nsproxy_namespaces+0x144/0x190
 ksys_unshare+0x532/0x890
 __x64_sys_unshare+0x38/0x50
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff888173fe5680
 which belongs to the cache kmalloc-32 of size 32
The buggy address is located 16 bytes inside of
 freed 32-byte region [ffff888173fe5680, ffff888173fe56a0)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888173fe5980 pfn:0x173fe5
flags: 0x57ff00000000200(workingset|node=1|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 057ff00000000200 ffff888100041780 ffffea0006962050 ffffea0005b5fcd0
raw: ffff888173fe5980 0000000000400021 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 6713, tgid 6705 (syz.1.264), ts 80482541403
 post_alloc_hook+0x1f9/0x250
 get_page_from_freelist+0x2224/0x2290
 __alloc_frozen_pages_noprof+0x1fe/0x410
 allocate_slab+0x7d/0x5e0
 refill_objects+0x2d5/0x350
 __pcs_replace_empty_main+0x2c8/0x6c0
 __kmalloc_cache_noprof+0x396/0x600
 kmem_cache_free+0x156/0x650
 tear_down_vmas+0x31f/0x530
 exit_mmap+0x4ca/0xa40
 __mmput+0x118/0x420
 exit_mm+0x18e/0x240
 do_exit+0x6a8/0x2360
 do_group_exit+0x22d/0x2f0
 get_signal+0x136a/0x1430
 arch_do_signal_or_restart+0xbb/0x860
page last free pid 6713 tgid 6705 ts 80481587538 stack trace:
 __free_frozen_pages+0xc97/0xd90
 tlb_finish_mmu+0x13e/0x220
 exit_mmap+0x4b2/0xa40
 __mmput+0x118/0x420
 exit_mm+0x18e/0x240
 do_exit+0x6a8/0x2360
 do_group_exit+0x22d/0x2f0
 get_signal+0x136a/0x1430
 arch_do_signal_or_restart+0xbb/0x860
 exit_to_user_mode_loop+0x10e/0x770
 do_syscall_64+0x328/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff888173fe5580: fa fb fb fb fc fc fc fc 00 00 00 00 fc fc fc fc
 ffff888173fe5600: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
>ffff888173fe5680: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
                         ^
 ffff888173fe5700: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
 ffff888173fe5780: fa fb fb fb fc fc fc fc 00 00 00 00 fc fc fc fc
==================================================================
