==================================================================
BUG: KASAN: slab-use-after-free in _raw_spin_lock+0x2e/0x40
Read of size 1 at addr ffff88810e78a9d8 by task syz.6.3076/19471

CPU: 0 UID: 0 PID: 19471 Comm: syz.6.3076 Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150
 print_address_description+0x55/0x1e0
 print_report+0x58/0x70
 kasan_report+0x117/0x150
 __kasan_check_byte+0x2a/0x40
 lock_acquire+0x7d/0x350
 _raw_spin_lock+0x2e/0x40
 ref_tracker_debugfs_show+0x106/0x1c0
 seq_read_iter+0x463/0xca0
 seq_read+0x367/0x480
 full_proxy_read+0x127/0x1f0
 vfs_read+0x213/0xa80
 ksys_read+0x150/0x270
 do_syscall_64+0x174/0x580
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc02799e0d9
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:00007fc0287a5028 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007fc027c25fa0 RCX: 00007fc02799e0d9
RDX: 0000000000000064 RSI: 0000200000000580 RDI: 0000000000000007
RBP: 00007fc027a35024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fc027c26038 R14: 00007fc027c25fa0 R15: 00007fffdf9f9e68
 </TASK>

Allocated by task 19260:
 kasan_save_track+0x3e/0x80
 __kasan_slab_alloc+0x6c/0x80
 kmem_cache_alloc_noprof+0x2a0/0x5f0
 copy_net_ns+0x1e0/0x720
 create_new_namespaces+0x3f0/0x6b0
 copy_namespaces+0x432/0x4b0
 copy_process+0x1e89/0x4390
 kernel_clone+0x2d7/0x940
 __x64_sys_clone+0x1b6/0x230
 do_syscall_64+0x174/0x580
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 8207:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x40/0x50
 __kasan_slab_free+0x5c/0x80
 kmem_cache_free+0x182/0x650
 cleanup_net+0x5dd/0x810
 process_scheduled_works+0xa8e/0x14e0
 worker_thread+0xa47/0xfb0
 kthread+0x388/0x470
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30

The buggy address belongs to the object at ffff88810e78a740
 which belongs to the cache net_namespace of size 9792
The buggy address is located 664 bytes inside of
 freed 9792-byte region [ffff88810e78a740, ffff88810e78cd80)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10e788
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
memcg:ffff88810be2de81
flags: 0x17ff00000000040(head|node=0|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 017ff00000000040 ffff88816041a000 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800030003 00000000f5000000 ffff88810be2de81
head: 017ff00000000040 ffff88816041a000 dead000000000100 dead000000000122
head: 0000000000000000 0000000800030003 00000000f5000000 ffff88810be2de81
head: 017ff00000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
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 5600, tgid 5600 (syz-executor), ts 56617227153
 post_alloc_hook+0x1f9/0x250
 get_page_from_freelist+0x2205/0x2280
 __alloc_frozen_pages_noprof+0x217/0x5a0
 allocate_slab+0x7c/0x5e0
 refill_objects+0x2d5/0x350
 __pcs_replace_empty_main+0x2bf/0x6b0
 kmem_cache_alloc_noprof+0x382/0x5f0
 copy_net_ns+0x1e0/0x720
 create_new_namespaces+0x3f0/0x6b0
 unshare_nsproxy_namespaces+0x149/0x190
 ksys_unshare+0x57d/0xa00
 __x64_sys_unshare+0x38/0x50
 do_syscall_64+0x174/0x580
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 5626 tgid 5626 ts 56592891328 stack trace:
 __free_frozen_pages+0xc8f/0xd80
 __slab_free+0x274/0x2c0
 qlist_free_all+0x99/0x100
 kasan_quarantine_reduce+0x148/0x160
 __kasan_slab_alloc+0x22/0x80
 __kmalloc_noprof+0x311/0x720
 tomoyo_realpath_from_path+0xef/0x640
 tomoyo_path_perm+0x283/0x560
 security_inode_getattr+0x12b/0x310
 vfs_fstatat+0xb4/0x170
 __x64_sys_newfstatat+0x151/0x200
 do_syscall_64+0x174/0x580
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff88810e78a880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88810e78a900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff88810e78a980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                                    ^
 ffff88810e78aa00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88810e78aa80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
