==================================================================
BUG: KASAN: slab-use-after-free in rose_timer_expiry+0x471/0x4b0
Read of size 2 at addr ffff88812039fc2a by task kworker/u8:1/13

CPU: 1 UID: 0 PID: 13 Comm: kworker/u8:1 Not tainted 6.16.0-rc7-syzkaller-01993-ge3f96b3556e4-dirty #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Workqueue: nfc2_nci_cmd_wq nci_cmd_work
Call Trace:
 <IRQ>
 dump_stack_lvl+0x189/0x250
 print_report+0xca/0x230
 kasan_report+0x118/0x150
 rose_timer_expiry+0x471/0x4b0
 call_timer_fn+0x17e/0x5f0
 __run_timer_base+0x61a/0x860
 run_timer_softirq+0xb7/0x180
 handle_softirqs+0x286/0x870
 __irq_exit_rcu+0xca/0x1f0
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:kcov_remote_stop+0x641/0x6d0
Code: 74 05 e8 92 73 07 00 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 75 4e f7 c3 00 02 00 00 74 01 fb b8 ff ff ff ff <f0> 41 0f c1 07 83 f8 01 75 1e 4c 89 ff e8 cd 00 00 00 49 8b 7f 50
RSP: 0018:ffffc90000107a10 EFLAGS: 00000206
RAX: 00000000ffffffff RBX: 0000000000000246 RCX: ef7fc557ce84e700
RDX: 0000000000000006 RSI: ffffffff8d999894 RDI: ffffffff8be28d00
RBP: 000000000000005a R08: ffffffff8fa1f6f7 R09: 1ffffffff1f43ede
R10: dffffc0000000000 R11: fffffbfff1f43edf R12: ffffc900253f1000
R13: ffffffff8e190540 R14: ffff88801c6c0000 R15: ffff888027bfba00
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>

Allocated by task 24099:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_noprof+0x27a/0x4f0
 tcf_idr_create+0x5d/0x6c0
 tcf_idr_create_from_flags+0x60/0x80
 tcf_csum_init+0x2aa/0x7e0
 tcf_action_init_1+0x463/0x6d0
 tcf_action_init+0x2cf/0xab0
 tc_ctl_action+0x430/0xbd0
 rtnetlink_rcv_msg+0x77c/0xb70
 netlink_rcv_skb+0x208/0x470
 netlink_unicast+0x82f/0x9e0
 netlink_sendmsg+0x805/0xb30
 __sock_sendmsg+0x21c/0x270
 ____sys_sendmsg+0x505/0x830
 ___sys_sendmsg+0x21f/0x2a0
 __x64_sys_sendmsg+0x19b/0x260
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 24099:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x62/0x70
 kfree+0x18e/0x440
 __tcf_action_put+0xb9/0xf0
 tcf_action_init+0x94a/0xab0
 tc_ctl_action+0x430/0xbd0
 rtnetlink_rcv_msg+0x77c/0xb70
 netlink_rcv_skb+0x208/0x470
 netlink_unicast+0x82f/0x9e0
 netlink_sendmsg+0x805/0xb30
 __sock_sendmsg+0x21c/0x270
 ____sys_sendmsg+0x505/0x830
 ___sys_sendmsg+0x21f/0x2a0
 __x64_sys_sendmsg+0x19b/0x260
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff88812039fc00
 which belongs to the cache kmalloc-512 of size 512
The buggy address is located 42 bytes inside of
 freed 512-byte region [ffff88812039fc00, ffff88812039fe00)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x12039c
head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
anon flags: 0x57ff00000000040(head|node=1|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 057ff00000000040 ffff88801a441c80 0000000000000000 dead000000000001
raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
head: 057ff00000000040 ffff88801a441c80 0000000000000000 dead000000000001
head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
head: 057ff00000000002 ffffea000480e701 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 12709, tgid 12709 (syz-executor), ts 157623033698, free_ts 143909589124
 post_alloc_hook+0x240/0x2a0
 get_page_from_freelist+0x21e4/0x22c0
 __alloc_frozen_pages_noprof+0x181/0x370
 alloc_pages_mpol+0x232/0x4a0
 allocate_slab+0x8a/0x3b0
 ___slab_alloc+0xbfc/0x1480
 __kmalloc_noprof+0x305/0x4f0
 ieee80211_txq_setup_flows+0x1bc/0xee0
 ieee80211_register_hw+0x2fcd/0x4080
 mac80211_hwsim_new_radio+0x2f0e/0x5340
 hwsim_new_radio_nl+0xea4/0x1b10
 genl_family_rcv_msg_doit+0x215/0x300
 genl_rcv_msg+0x60e/0x790
 netlink_rcv_skb+0x208/0x470
 genl_rcv+0x28/0x40
 netlink_unicast+0x82f/0x9e0
page last free pid 15 tgid 15 stack trace:
 __free_frozen_pages+0xc71/0xe70
 __tlb_remove_table+0x2d2/0x3b0
 tlb_remove_table_rcu+0x85/0x100
 rcu_core+0xca8/0x1710
 handle_softirqs+0x286/0x870
 run_ksoftirqd+0x9b/0x100
 smpboot_thread_fn+0x542/0xa60
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30

Memory state around the buggy address:
 ffff88812039fb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff88812039fb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88812039fc00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                  ^
 ffff88812039fc80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88812039fd00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
