==================================================================
BUG: KASAN: double-free in rcu_free_sheaf+0x31/0x200
Free of addr ffff88810a728800 by task syslogd/5045

CPU: 0 UID: 0 PID: 5045 Comm: syslogd 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:
 <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+0x92e/0x1230
 handle_softirqs+0x265/0x8d0
 __irq_exit_rcu+0xc6/0x220
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:unwind_next_frame+0x4e6/0x2550
Code: 00 49 89 d5 49 89 d7 4c 89 e0 4c 29 f8 48 89 c1 48 c1 f9 02 48 c1 e8 3f 48 01 c8 48 83 e0 fe 49 8d 1c 47 48 89 d8 48 c1 e8 03 <48> b9 00 00 00 00 00 fc ff df 0f b6 04 08 84 c0 75 27 48 63 03 48
RSP: 0018:ffffc9000349f4c0 EFLAGS: 00000a03
RAX: 1ffffffff23b5cdf RBX: ffffffff91dae6fc RCX: 000000000000000c
RDX: ffffffff91dae6e4 RSI: ffffffff925c6f8c RDI: ffffffff8c8ea320
RBP: ffffffff81b412e8 R08: 000000000000000d R09: 0000000000000000
R10: ffffc9000349f5b8 R11: ffffffff81b41350 R12: ffffffff91dae714
R13: ffffffff91dae6e4 R14: ffffc9000349f568 R15: ffffffff91dae6e4
 arch_stack_walk+0x11b/0x150
 stack_trace_save+0xa9/0x100
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x40/0x50
 __kasan_slab_free+0x5c/0x80
 kfree+0x1c5/0x650
 __kfree_skb+0x5d/0x210
 __unix_dgram_recvmsg+0xa77/0xe60
 sock_recvmsg+0x196/0x1e0
 sock_read_iter+0x22a/0x2f0
 vfs_read+0x595/0xa80
 ksys_read+0x150/0x270
 do_syscall_64+0x16a/0x530
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8968013b6a
Code: 00 3d 00 00 41 00 75 0d 50 48 8d 3d 2d 08 0a 00 e8 ea 7d 01 00 31 c0 e9 07 ff ff ff 64 8b 04 25 18 00 00 00 85 c0 75 1b 0f 05 <48> 3d 00 f0 ff ff 76 6c 48 8b 15 8f a2 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007fff0b229438 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f8968013b6a
RDX: 00000000000000ff RSI: 000055b250c10950 RDI: 0000000000000000
RBP: 000055b250c10910 R08: 0000000000000004 R09: 0000000000000000
R10: 000055b250c10f00 R11: 0000000000000246 R12: 000055b250c109bc
R13: 000055b250c10950 R14: 0000000000000000 R15: 00007f89681f8a80
 </TASK>

Allocated by task 13:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_cache_noprof+0x31c/0x600
 hwsim_update_pib+0x7e/0x400
 hwsim_set_promiscuous_mode+0x196/0x2e0
 drv_set_promiscuous_mode+0x154/0x2d0
 drv_start+0x4db/0x1000
 mac802154_scan_worker+0x8e6/0xe60
 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 5045:
 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+0x92e/0x1230
 handle_softirqs+0x265/0x8d0
 __irq_exit_rcu+0xc6/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 ffff88810a728800
 which belongs to the cache kmalloc-64 of size 64
The buggy address is located 0 bytes inside of
 64-byte region [ffff88810a728800, ffff88810a728840)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10a728
flags: 0x17ff00000000000(node=0|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 017ff00000000000 ffff8881000418c0 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000200020 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 1, tgid 1 (init), ts 21010758415
 post_alloc_hook+0x1f9/0x250
 get_page_from_freelist+0x2224/0x2290
 __alloc_frozen_pages_noprof+0x1fe/0x410
 allocate_slab+0x7d/0x5e0
 refill_objects+0x2d5/0x350
 __pcs_replace_empty_main+0x2c8/0x6c0
 __kmalloc_node_track_caller_noprof+0x543/0x720
 krealloc_node_align_noprof+0x19a/0x390
 ima_collect_measurement+0x5b8/0xa00
 process_measurement+0x1272/0x1c10
 ima_file_check+0xdc/0x130
 security_file_post_open+0xb3/0x260
 path_openat+0x1748/0x20f0
 do_file_open+0x23e/0x4a0
 do_sys_openat2+0x115/0x200
 __x64_sys_openat+0x138/0x170
page last free pid 1 tgid 1 ts 21007020944 stack trace:
 __free_frozen_pages+0xc97/0xd90
 tlb_remove_table_rcu+0x85/0x100
 rcu_core+0x92e/0x1230
 handle_softirqs+0x265/0x8d0
 __irq_exit_rcu+0xc6/0x220
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 asm_sysvec_apic_timer_interrupt+0x1a/0x20

Memory state around the buggy address:
 ffff88810a728700: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
 ffff88810a728780: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc
>ffff88810a728800: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
                   ^
 ffff88810a728880: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc
 ffff88810a728900: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
==================================================================
