==================================================================
BUG: KASAN: double-free in rcu_free_sheaf+0x31/0x200
Free of addr ffff88816e71b180 by task kworker/u8:4/10532

CPU: 1 UID: 0 PID: 10532 Comm: kworker/u8:4 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: bat_events batadv_tt_purge
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:__local_bh_enable_ip+0xdf/0x140
Code: e8 76 e3 5e 0a 65 66 8b 05 ba df 0c 13 66 85 c0 75 34 bf 01 00 00 00 e8 3f fc 0b 00 e8 7a 49 47 00 fb 65 48 8b 05 71 df 0c 13 <48> 85 c0 75 05 e8 b7 74 aa ff 5b 41 5e c3 cc cc cc cc cc 90 0f 0b
RSP: 0018:ffffc90004eafa40 EFLAGS: 00000206
RAX: 8000000000000000 RBX: 0000000000000201 RCX: 0000000000000046
RDX: 0000000000000006 RSI: ffffffff8e4665a1 RDI: ffffffff8c6dc780
RBP: 0000000000000000 R08: ffffffff917a6c7f R09: 1ffffffff22f4d8f
R10: dffffc0000000000 R11: fffffbfff22f4d90 R12: dffffc0000000000
R13: ffff88811395c948 R14: ffffffff8bb604ce R15: ffff88811395c950
 batadv_tt_purge+0x4ae/0xa10
 process_scheduled_works+0xc3d/0x1630
 worker_thread+0xa47/0xfb0
 kthread+0x38b/0x480
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>

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

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x16e71b
flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 057ff00000000000 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 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 6577, tgid 6575 (syz.2.200), ts 62983866695
 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_cache_noprof+0x39b/0x600
 register_netdevice+0x57e/0x1eb0
 vxlan_newlink+0x267/0x810
 rtnl_newlink_create+0x305/0x7b0
 rtnl_newlink+0x166d/0x1c30
 rtnetlink_rcv_msg+0x802/0xc00
 netlink_rcv_skb+0x226/0x4a0
 netlink_unicast+0x7bd/0x940
 netlink_sendmsg+0x813/0xb40
 sock_sendmsg_nosec+0x13a/0x180
page last free pid 12 tgid 12 ts 62976259019 stack trace:
 __free_frozen_pages+0xc93/0xd90
 tlb_remove_table_rcu+0x85/0x100
 rcu_core+0x926/0x1260
 handle_softirqs+0x226/0x860
 do_softirq+0x77/0xd0
 __local_bh_enable_ip+0x100/0x140
 addrconf_dad_work+0x238/0x15c0
 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:
 ffff88816e71b080: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
 ffff88816e71b100: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
>ffff88816e71b180: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
                   ^
 ffff88816e71b200: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc
 ffff88816e71b280: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc
==================================================================
