rxrpc: Leaked peer 81 {1} 127.0.0.1:7003
==================================================================
BUG: KASAN: slab-use-after-free in rxrpc_destroy_all_peers+0xcc/0x150
Read of size 8 at addr ffff888116d3dc20 by task kworker/u8:0/12

CPU: 0 UID: 0 PID: 12 Comm: kworker/u8: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: netns cleanup_net
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150
 print_address_description+0x55/0x1e0
 print_report+0x58/0x70
 kasan_report+0x117/0x150
 rxrpc_destroy_all_peers+0xcc/0x150
 rxrpc_exit_net+0x7f/0xc0
 ops_undo_list+0x43d/0x8d0
 cleanup_net+0x572/0x810
 process_scheduled_works+0xa8e/0x14e0
 worker_thread+0xa47/0xfb0
 kthread+0x388/0x470
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>

Allocated by task 5711:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_cache_noprof+0x32d/0x660
 rxrpc_alloc_peer+0x7d/0x330
 rxrpc_lookup_peer+0x3f7/0xa50
 rxrpc_kernel_lookup_peer+0x8e/0xc0
 afs_merge_fs_addr4+0x16c/0x640
 afs_parse_text_addrs+0x7b3/0xab0
 afs_lookup_cell+0x10fe/0x1c80
 afs_proc_cells_write+0x242/0x310
 proc_simple_write+0x10c/0x140
 proc_reg_write+0x1e9/0x2e0
 vfs_write+0x296/0xba0
 ksys_write+0x150/0x270
 do_syscall_64+0x174/0x580
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 15:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x40/0x50
 __kasan_slab_free+0x5c/0x80
 __rcu_free_sheaf_prepare+0x12d/0x2a0
 rcu_free_sheaf+0x31/0x200
 rcu_core+0x78b/0x10a0
 handle_softirqs+0x225/0x840
 run_ksoftirqd+0x36/0x60
 smpboot_thread_fn+0x57c/0xa80
 kthread+0x388/0x470
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30

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

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x116d3c
head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x17ff00000000040(head|node=0|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 017ff00000000040 ffff888100041c80 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800100010 00000000f5000000 0000000000000000
head: 017ff00000000040 ffff888100041c80 dead000000000100 dead000000000122
head: 0000000000000000 0000000800100010 00000000f5000000 0000000000000000
head: 017ff00000000002 ffffffffffffff01 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5050, tgid 5050 (udevd), ts 59674090258, free_ts 58891076474
 post_alloc_hook+0x1f9/0x250
 get_page_from_freelist+0x21fa/0x2270
 __alloc_frozen_pages_noprof+0x18d/0x380
 allocate_slab+0x79/0x5e0
 refill_objects+0x2d5/0x350
 __pcs_replace_empty_main+0x2bf/0x6b0
 __kmalloc_cache_noprof+0x3a7/0x660
 kernfs_fop_open+0x3ac/0xce0
 do_dentry_open+0x816/0x1380
 vfs_open+0x3b/0x340
 path_openat+0x2e44/0x3830
 do_file_open+0x23e/0x4a0
 do_sys_openat2+0x115/0x200
 __x64_sys_openat+0x138/0x170
 do_syscall_64+0x174/0x580
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 5701 tgid 5701 stack trace:
 __free_frozen_pages+0xc1e/0xd10
 __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_condition+0x1f3d/0x3320
 tomoyo_check_acl+0x182/0x400
 tomoyo_execute_permission+0x123/0x400
 tomoyo_find_next_domain+0x484/0x1a90
 tomoyo_bprm_check_security+0x11b/0x180
 security_bprm_check+0x85/0x240
 bprm_execve+0x918/0x1630
 kernel_execve+0x8c3/0x9c0
 call_usermodehelper_exec_async+0x20f/0x360

Memory state around the buggy address:
 ffff888116d3db00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff888116d3db80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888116d3dc00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                               ^
 ffff888116d3dc80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888116d3dd00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
