==================================================================
BUG: KASAN: double-free in rcu_free_sheaf+0x31/0x200
Free of addr ffff888113c8a180 by task syz.0.6395/22179

CPU: 0 UID: 0 PID: 22179 Comm: syz.0.6395 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+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:finish_task_switch+0x413/0xc60
Code: 04 00 00 41 c7 84 24 20 0e 00 00 00 00 00 00 0f 1f 44 00 00 49 83 c4 48 4c 89 e7 e8 77 98 55 0a e8 d2 2e 3a 00 fb 4c 8b 65 c8 <49> 8d bc 24 18 17 00 00 48 89 f8 48 c1 e8 03 42 0f b6 04 30 84 c0
RSP: 0018:ffffc9000ecff0c0 EFLAGS: 00000206
RAX: 0000000000000103 RBX: ffff888120e3cb20 RCX: 8000000000000001
RDX: 0000000000000007 RSI: ffffffff8e468dd1 RDI: ffffffff8c6de880
RBP: ffffc9000ecff110 R08: ffffffff917a717f R09: 1ffffffff22f4e2f
R10: dffffc0000000000 R11: fffffbfff22f4e30 R12: ffff88816d285a00
R13: ffff888120e3cae8 R14: dffffc0000000000 R15: 1ffff110241c7964
 __schedule+0x17e3/0x58f0
 preempt_schedule_common+0x7f/0xd0
 preempt_schedule_thunk+0x16/0x40
 _raw_spin_unlock+0x41/0x50
 __zap_vma_range+0x4396/0x5210
 unmap_vmas+0x390/0x550
 exit_mmap+0x293/0x9f0
 __mmput+0x118/0x420
 exit_mm+0x18e/0x240
 do_exit+0x6cd/0x2360
 do_group_exit+0x22d/0x2f0
 get_signal+0x121b/0x12c0
 arch_do_signal_or_restart+0xbb/0x860
 exit_to_user_mode_loop+0x10e/0x770
 do_syscall_64+0x328/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f00a199e1d9
Code: Unable to access opcode bytes at 0x7f00a199e1af.
RSP: 002b:00007f009fbf60e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007f00a1c26098 RCX: 00007f00a199e1d9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f00a1c26098
RBP: 00007f00a1c26090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f00a1c26128 R14: 00007fff5e25bdf0 R15: 00007fff5e25bed8
 </TASK>

Allocated by task 5431:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_cache_noprof+0x321/0x600
 hwsim_update_pib+0x7e/0x400
 hwsim_set_promiscuous_mode+0x196/0x2e0
 drv_set_promiscuous_mode+0x159/0x2e0
 drv_start+0x4ea/0x1010
 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 22179:
 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 ffff888113c8a180
 which belongs to the cache kmalloc-64 of size 64
The buggy address is located 0 bytes inside of
 64-byte region [ffff888113c8a180, ffff888113c8a1c0)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888113c8aa00 pfn:0x113c8a
flags: 0x17ff00000000200(workingset|node=0|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 017ff00000000200 ffff8881000418c0 ffffea00044b85d0 ffffea00044eb5d0
raw: ffff888113c8aa00 0000000000200012 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 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 10804135196
 post_alloc_hook+0x1f9/0x250
 get_page_from_freelist+0x220f/0x2280
 __alloc_frozen_pages_noprof+0x1fc/0x400
 allocate_slab+0x7d/0x620
 refill_objects+0x2d5/0x350
 __pcs_replace_empty_main+0x2c8/0x6c0
 __kmalloc_node_track_caller_noprof+0x548/0x720
 krealloc_node_align_noprof+0x19a/0x390
 add_sysfs_param+0x15f/0xb80
 kernel_add_sysfs_param+0x7f/0xe0
 param_sysfs_builtin+0x199/0x250
 param_sysfs_builtin_init+0x23/0x30
 do_one_initcall+0x250/0x870
 do_initcall_level+0x10a/0x1a0
 do_initcalls+0x59/0xa0
 kernel_init_freeable+0x29d/0x3e0
page last free pid 992 tgid 992 ts 10787784508 stack trace:
 free_pages_prepare+0x9eb/0xaf0
 __free_contig_range_common+0x174/0x340
 free_pages_bulk+0x48/0x120
 vfree+0x231/0x490
 delayed_vfree_work+0x55/0x80
 process_scheduled_works+0xc3d/0x1630
 worker_thread+0xa47/0xfb0
 kthread+0x38b/0x480
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30

Memory state around the buggy address:
 ffff888113c8a080: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
 ffff888113c8a100: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
>ffff888113c8a180: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
                   ^
 ffff888113c8a200: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc
 ffff888113c8a280: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
==================================================================
