==================================================================
BUG: KASAN: slab-use-after-free in kobject_uevent_net_broadcast+0x12c/0x560
Read of size 8 at addr ffff88810e1a0b10 by task kworker/u10:2/52

CPU: 0 UID: 0 PID: 52 Comm: kworker/u10:2 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 16281:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_cache_noprof+0x321/0x600
 uevent_net_init+0xdb/0x2d0
 ops_init+0x35d/0x5d0
 setup_net+0x118/0x350
 copy_net_ns+0x53b/0x780
 create_new_namespaces+0x3f0/0x6b0
 copy_namespaces+0x432/0x4b0
 copy_process+0x1ec0/0x43e0
 kernel_clone+0x2d7/0x940
 __x64_sys_clone+0x1b6/0x230
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 16281:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x40/0x50
 __kasan_slab_free+0x5c/0x80
 kfree+0x1c5/0x650
 ops_undo_list+0x43d/0x8d0
 setup_net+0x2f6/0x350
 copy_net_ns+0x53b/0x780
 create_new_namespaces+0x3f0/0x6b0
 copy_namespaces+0x432/0x4b0
 copy_process+0x1ec0/0x43e0
 kernel_clone+0x2d7/0x940
 __x64_sys_clone+0x1b6/0x230
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

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

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10e1a0
flags: 0x17ff00000000000(node=0|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 017ff00000000000 ffff888100041780 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 2241, tgid 2241 (kworker/u9:2), ts 9083332959
 post_alloc_hook+0x1f9/0x250
 get_page_from_freelist+0x2209/0x2280
 __alloc_frozen_pages_noprof+0x217/0x5a0
 allocate_slab+0x7d/0x620
 refill_objects+0x2d5/0x350
 __pcs_replace_empty_main+0x2c8/0x6c0
 __kmalloc_cache_noprof+0x39b/0x600
 kmem_cache_free+0x156/0x650
 __fput_deferred+0x2ae/0x390
 fput_close+0x11f/0x240
 path_openat+0x167b/0x1d60
 do_file_open+0x23e/0x4a0
 do_open_execat+0x12b/0x590
 alloc_bprm+0x24/0x640
 kernel_execve+0x85/0x9c0
 call_usermodehelper_exec_async+0x20f/0x360
page_owner free stack trace missing

Memory state around the buggy address:
 ffff88810e1a0a00: 00 00 03 fc fc fc fc fc fa fb fb fb fc fc fc fc
 ffff88810e1a0a80: 00 00 00 00 fc fc fc fc fa fb fb fb fc fc fc fc
>ffff88810e1a0b00: fa fb fb fb fc fc fc fc 00 00 00 00 fc fc fc fc
                         ^
 ffff88810e1a0b80: 00 00 00 00 fc fc fc fc 00 00 00 00 fc fc fc fc
 ffff88810e1a0c00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc
==================================================================
