==================================================================
BUG: KASAN: double-free in rcu_free_sheaf+0x31/0x200
Free of addr ffff8881bde82c80 by task kworker/1:10/8580

CPU: 1 UID: 0 PID: 8580 Comm: kworker/1:10 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: events iterate_cleanup_work
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:nf_ct_iterate_cleanup+0xe9/0x500
Code: 7d a9 79 06 49 01 c5 4d 89 ec 49 c1 ec 03 43 80 3c 34 00 74 08 4c 89 ef e8 54 90 36 f8 49 8b 6d 00 48 89 ee 48 83 e6 01 31 ff <e8> 22 8e c6 f7 48 83 e5 01 0f 85 c2 03 00 00 48 8d 3d 00 00 00 00
RSP: 0018:ffffc90007e4f9a8 EFLAGS: 00000246
RAX: 0000000000025140 RBX: ffffc90007e4fa40 RCX: ffff888169f63c00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 0000000000009451 R08: ffffffff907a497f R09: 1ffffffff20f492f
R10: dffffc0000000000 R11: fffffbfff20f4930 R12: 1ffff11022204a28
R13: ffff888111025140 R14: dffffc0000000000 R15: 1ffff92000fc9f48
 iterate_cleanup_work+0xdc/0x180
 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 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 8580:
 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 ffff8881bde82c80
 which belongs to the cache kmalloc-64 of size 64
The buggy address is located 0 bytes inside of
 64-byte region [ffff8881bde82c80, ffff8881bde82cc0)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8881bde82000 pfn:0x1bde82
flags: 0x57ff00000000200(workingset|node=1|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 057ff00000000200 ffff8881000418c0 ffffea0005ab0510 ffffea0006a9c650
raw: ffff8881bde82000 000000000020001f 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 5597, tgid 5597 (syz-executor), ts 48850741300
 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
 kobject_get_path+0xc5/0x2f0
 kobject_uevent_env+0x29e/0x9e0
 net_rx_queue_update_kobjects+0x3fe/0x780
 netdev_register_kobject+0x23e/0x350
 register_netdevice+0x1433/0x1eb0
 ipvlan_link_new+0x3e6/0xa10
 rtnl_newlink_create+0x305/0x7b0
 rtnl_newlink+0x167a/0x1c30
 rtnetlink_rcv_msg+0x802/0xc00
page last free pid 5049 tgid 5049 ts 25257955778 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_noprof+0x307/0x720
 tomoyo_realpath_from_path+0xef/0x640
 tomoyo_check_open_permission+0x229/0x470
 security_file_open+0xa9/0x240
 do_dentry_open+0x4a0/0x1380
 vfs_open+0x3b/0x340
 path_openat+0x1443/0x1d60
 do_file_open+0x23e/0x4a0
 do_sys_openat2+0x115/0x200
 __x64_sys_openat+0x138/0x170
 do_syscall_64+0x166/0x520

Memory state around the buggy address:
 ffff8881bde82b80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
 ffff8881bde82c00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
>ffff8881bde82c80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
                   ^
 ffff8881bde82d00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
 ffff8881bde82d80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
==================================================================
