==================================================================
BUG: KASAN: double-free in rcu_free_sheaf+0x31/0x200
Free of addr ffff888112dece80 by task syz-executor/5598

CPU: 0 UID: 0 PID: 5598 Comm: syz-executor 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
Call Trace:
 <IRQ>
 dump_stack_lvl+0xe8/0x150
 print_address_description+0x55/0x1e0
 print_report+0x58/0x70
 kasan_report_invalid_free+0xea/0x110
 __kasan_slab_pre_free+0x104/0x120
 __rcu_free_sheaf_prepare+0x10a/0x2a0
 rcu_free_sheaf+0x31/0x200
 rcu_core+0x926/0x1260
 handle_softirqs+0x226/0x860
 __irq_exit_rcu+0xcb/0x220
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:_raw_spin_unlock_irqrestore+0x47/0x80
Code: f7 e8 0d 7f bc f5 f7 c3 00 02 00 00 74 05 e8 f0 c1 e8 f5 9c 58 a9 00 02 00 00 75 29 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 <e8> 14 8e ad f5 65 48 8b 05 0c 51 ad 07 48 85 c0 74 18 5b 41 5e e9
RSP: 0018:ffffc90004d7f948 EFLAGS: 00000206
RAX: 0000000000000002 RBX: 0000000000000206 RCX: 8000000000000001
RDX: 0000000000000000 RSI: ffffffff8e474d15 RDI: 0000000000000001
RBP: ffffc90004d7fa70 R08: ffffffff907a217f R09: 1ffffffff20f442f
R10: dffffc0000000000 R11: fffffbfff20f4430 R12: ffff88816fdd70a0
R13: dffffc0000000000 R14: ffffffff8ee69c20 R15: ffff88816fdd70b0
 cleanup_entry+0x2c9/0x350
 __do_replace+0x72e/0x990
 do_ipt_set_ctl+0xb3c/0xe20
 nf_setsockopt+0x26f/0x290
 do_sock_setsockopt+0x17c/0x1b0
 __x64_sys_setsockopt+0x13d/0x1b0
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f808c59f99a
Code: 48 83 ec 10 48 63 c9 48 63 ff 45 89 c9 6a 2c e8 6c 99 fb ff 48 83 c4 18 c3 0f 1f 80 00 00 00 00 49 89 ca b8 36 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 06 c3 0f 1f 44 00 00 48 c7 c2 e8 ff ff ff f7
RSP: 002b:00007ffe7db398b8 EFLAGS: 00000206 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007ffe7db39940 RCX: 00007f808c59f99a
RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 0000000000000003 R08: 00000000000002d8 R09: 0000000000000000
R10: 00007f808c7f0020 R11: 0000000000000206 R12: 00007f808c7effc0
R13: 00007ffe7db398dc R14: 0000000000000000 R15: 00007f808c7f2180
 </TASK>

Allocated by task 13:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_cache_noprof+0x321/0x600
 hwsim_update_pib+0x88/0x450
 hwsim_set_promiscuous_mode+0x196/0x2e0
 drv_set_promiscuous_mode+0x159/0x2e0
 drv_start+0x4ea/0x1010
 mac802154_scan_worker+0xab8/0xfd0
 process_scheduled_works+0xc3d/0x1630
 worker_thread+0xa47/0xfb0
 kthread+0x38b/0x480
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30

Freed by task 5598:
 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+0x926/0x1260
 handle_softirqs+0x226/0x860
 __irq_exit_rcu+0xcb/0x220
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 asm_sysvec_apic_timer_interrupt+0x1a/0x20

The buggy address belongs to the object at ffff888112dece80
 which belongs to the cache kmalloc-64 of size 64
The buggy address is located 0 bytes inside of
 64-byte region [ffff888112dece80, ffff888112decec0)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888112decc80 pfn:0x112dec
flags: 0x17ff00000000200(workingset|node=0|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 017ff00000000200 ffff8881000418c0 ffffea000444bf10 ffffea0004349590
raw: ffff888112decc80 000000000020001a 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 0xd2c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5371, tgid 5371 (dhcpcd-run-hook), ts 27052652780
 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_noprof+0x47b/0x720
 tomoyo_encode+0x2ad/0x570
 tomoyo_realpath_from_path+0x5fa/0x640
 tomoyo_path_perm+0x283/0x560
 security_inode_getattr+0x12b/0x310
 vfs_fstatat+0xb4/0x170
 __x64_sys_newfstatat+0x151/0x200
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 5055 tgid 5055 ts 25065600740 stack trace:
 __free_frozen_pages+0xc93/0xd90
 __slab_free+0x274/0x2c0
 qlist_free_all+0x99/0x100
 kasan_quarantine_reduce+0x148/0x160
 __kasan_slab_alloc+0x22/0x80
 kmem_cache_alloc_noprof+0x2b9/0x600
 do_getname+0x2e/0x250
 do_sys_openat2+0xcc/0x200
 __x64_sys_openat+0x138/0x170
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff888112decd80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
 ffff888112dece00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
>ffff888112dece80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
                   ^
 ffff888112decf00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
 ffff888112decf80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
==================================================================
