==================================================================
BUG: KASAN: double-free in rcu_free_sheaf+0x31/0x200
Free of addr ffff8881b9063080 by task syz.2.3190/15666

CPU: 1 UID: 0 PID: 15666 Comm: syz.2.3190 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:__might_resched+0x81/0x4c0
Code: 60 19 0c 8c be ec 23 00 00 48 c7 c2 60 2d 0c 8c e8 64 e8 0c 00 e8 bf 3c 4d 0a 85 c0 74 46 48 c7 c7 a0 c7 d5 8e be ff ff ff ff <e8> 6a 39 4d 0a 85 c0 74 31 e8 a1 3c 4d 0a 85 c0 74 28 80 3d 98 f9
RSP: 0018:ffffc900046e7a38 EFLAGS: 00000202
RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffff888110b18000
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: ffffffff8ed5c7a0
RBP: 0000000000668a4c R08: ffffffff907a137f R09: 1ffffffff20f426f
R10: dffffc0000000000 R11: fffffbfff20f4270 R12: ffffc90029003000
R13: 000000000668a4b0 R14: 0000000000cd1497 R15: dffffc0000000000
 htab_map_alloc+0x516/0xc90
 map_create+0xf3d/0x1b70
 __sys_bpf+0xaea/0xd90
 __x64_sys_bpf+0xba/0xd0
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f714419e159
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:00007f7145059028 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f7144425fa0 RCX: 00007f714419e159
RDX: 0000000000000050 RSI: 00002000000007c0 RDI: 0000000000000000
RBP: 00007f714423506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f7144426038 R14: 00007f7144425fa0 R15: 00007ffc9200c7e8
 </TASK>

Allocated by task 9289:
 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 15666:
 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 ffff8881b9063080
 which belongs to the cache kmalloc-64 of size 64
The buggy address is located 0 bytes inside of
 64-byte region [ffff8881b9063080, ffff8881b90630c0)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8881b9063d00 pfn:0x1b9063
flags: 0x57ff00000000200(workingset|node=1|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 057ff00000000200 ffff8881000418c0 ffffea0005ade490 ffffea0005b268d0
raw: ffff8881b9063d00 000000000020001e 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 6507, tgid 6507 (modprobe), ts 74355194915
 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 6322 tgid 6319 ts 72423607325 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
 __kmalloc_cache_node_noprof+0x357/0x620
 __get_vm_area_node+0x155/0x2f0
 __vmalloc_node_range_noprof+0x343/0x1540
 __vmalloc_noprof+0xd2/0x120
 bpf_prog_alloc_no_stats+0x47/0x560
 bpf_prog_alloc+0x3c/0x1a0
 bpf_prog_load+0x7f8/0x1c20
 __sys_bpf+0xd0d/0xd90
 __x64_sys_bpf+0xba/0xd0
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff8881b9062f80: 00 00 00 00 00 00 00 05 fc fc fc fc fc fc fc fc
 ffff8881b9063000: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
>ffff8881b9063080: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
                   ^
 ffff8881b9063100: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
 ffff8881b9063180: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
==================================================================
