==================================================================
BUG: KASAN: slab-use-after-free in tasklet_action_common+0x103/0x490 kernel/softirq.c:954
Read of size 8 at addr ffff88802970e158 by task kworker/1:16/13748
CPU: 1 UID: 0 PID: 13748 Comm: kworker/1:16 Tainted: G L syzkaller #0 PREEMPT(full)
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026
Workqueue: events request_firmware_work_func
Call Trace:
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
print_address_description+0x55/0x1e0 mm/kasan/report.c:378
print_report+0x58/0x70 mm/kasan/report.c:482
kasan_report+0x117/0x150 mm/kasan/report.c:595
tasklet_action_common+0x103/0x490 kernel/softirq.c:954
handle_softirqs+0x226/0x860 kernel/softirq.c:645
__do_softirq kernel/softirq.c:679 [inline]
invoke_softirq kernel/softirq.c:519 [inline]
__irq_exit_rcu+0xcb/0x220 kernel/softirq.c:758
irq_exit_rcu+0x9/0x30 kernel/softirq.c:775
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline]
sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:211 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0x47/0x80 kernel/locking/spinlock.c:221
Code: f7 e8 cd 4f ba f5 f7 c3 00 02 00 00 74 05 e8 60 9d e6 f5 9c 58 a9 00 02 00 00 75 29 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 04 4d ab f5 65 48 8b 05 4c f0 ab 07 48 85 c0 74 18 5b 41 5e e9
RSP: 0018:ffffc9001c7477d8 EFLAGS: 00000206
RAX: 0000000000000002 RBX: 0000000000000216 RCX: 8000000000000003
RDX: 0000000000000006 RSI: ffffffff8e416437 RDI: 0000000000000001
RBP: 000000000000003f R08: ffffffff907a647f R09: 1ffffffff20f4c8f
R10: dffffc0000000000 R11: fffffbfff20f4c90 R12: ffff8880b8741700
R13: ffff88813fffb970 R14: ffff88813fffbf00 R15: 000000000000003f
free_frozen_page_commit+0x662/0x1240 mm/page_alloc.c:2900
__free_frozen_pages+0x7d7/0xd90 mm/page_alloc.c:2988
free_prepared_contig_range mm/page_alloc.c:7039 [inline]
__free_contig_range_common+0x2d1/0x340 mm/page_alloc.c:7095
__free_contig_range mm/page_alloc.c:7117 [inline]
free_pages_bulk+0x48/0x120 mm/page_alloc.c:5322
vm_area_free_pages mm/vmalloc.c:3461 [inline]
vfree+0x231/0x490 mm/vmalloc.c:3510
__free_fw_priv drivers/base/firmware_loader/main.c:219 [inline]
kref_put include/linux/kref.h:65 [inline]
free_fw_priv+0x34b/0x500 drivers/base/firmware_loader/main.c:229
firmware_free_data drivers/base/firmware_loader/main.c:604 [inline]
release_firmware+0x72/0xb0 drivers/base/firmware_loader/main.c:1126
ath9k_hif_usb_firmware_cb+0x2a5/0x4b0 drivers/net/wireless/ath/ath9k/hif_usb.c:1276
request_firmware_work_func+0xf7/0x2d0 drivers/base/firmware_loader/main.c:1164
process_one_work kernel/workqueue.c:3396 [inline]
process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3479
worker_thread+0xa47/0xfb0 kernel/workqueue.c:3560
kthread+0x38b/0x480 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Allocated by task 13748:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
poison_kmalloc_redzone mm/kasan/common.c:409 [inline]
__kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:426
kasan_kmalloc include/linux/kasan.h:263 [inline]
__kmalloc_cache_noprof+0x321/0x600 mm/slub.c:5563
_kmalloc_noprof include/linux/slab.h:991 [inline]
_kzalloc_noprof include/linux/slab.h:1312 [inline]
ath9k_init_wmi+0x4f/0x2b0 drivers/net/wireless/ath/ath9k/wmi.c:95
ath9k_htc_probe_device+0x1e5/0x2370 drivers/net/wireless/ath/ath9k/htc_drv_init.c:956
ath9k_htc_hw_init+0x32/0x70 drivers/net/wireless/ath/ath9k/htc_hst.c:532
ath9k_hif_usb_firmware_cb+0x214/0x4b0 drivers/net/wireless/ath/ath9k/hif_usb.c:1255
request_firmware_work_func+0xf7/0x2d0 drivers/base/firmware_loader/main.c:1164
process_one_work kernel/workqueue.c:3396 [inline]
process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3479
worker_thread+0xa47/0xfb0 kernel/workqueue.c:3560
kthread+0x38b/0x480 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Freed by task 13748:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584
poison_slab_object mm/kasan/common.c:264 [inline]
__kasan_slab_free+0x5c/0x80 mm/kasan/common.c:296
kasan_slab_free include/linux/kasan.h:235 [inline]
slab_free_hook mm/slub.c:2748 [inline]
slab_free mm/slub.c:6508 [inline]
kfree+0x1c5/0x650 mm/slub.c:6801
ath9k_htc_probe_device+0x11a9/0x2370 drivers/net/wireless/ath/ath9k/htc_drv_init.c:978
ath9k_htc_hw_init+0x32/0x70 drivers/net/wireless/ath/ath9k/htc_hst.c:532
ath9k_hif_usb_firmware_cb+0x214/0x4b0 drivers/net/wireless/ath/ath9k/hif_usb.c:1255
request_firmware_work_func+0xf7/0x2d0 drivers/base/firmware_loader/main.c:1164
process_one_work kernel/workqueue.c:3396 [inline]
process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3479
worker_thread+0xa47/0xfb0 kernel/workqueue.c:3560
kthread+0x38b/0x480 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
The buggy address belongs to the object at ffff88802970e000
which belongs to the cache kmalloc-2k of size 2048
The buggy address is located 344 bytes inside of
freed 2048-byte region [ffff88802970e000, ffff88802970e800)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802970c000 pfn:0x29708
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000240 ffff88801b042000 ffffea0000acdc10 ffffea0001f21c10
raw: ffff88802970c000 0000000000080007 00000000f5000000 0000000000000000
head: 00fff00000000240 ffff88801b042000 ffffea0000acdc10 ffffea0001f21c10
head: ffff88802970c000 0000000000080007 00000000f5000000 0000000000000000
head: 00fff00000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1069, tgid 1069 (kworker/u8:8), ts 90630260629
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
prep_new_page mm/page_alloc.c:1879 [inline]
get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3943
__alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5436
alloc_slab_page mm/slub.c:3347 [inline]
allocate_slab+0x7d/0x620 mm/slub.c:3462
new_slab mm/slub.c:3513 [inline]
refill_objects+0x2d5/0x350 mm/slub.c:7417
refill_sheaf mm/slub.c:2885 [inline]
__pcs_replace_empty_main+0x2c8/0x6c0 mm/slub.c:4774
alloc_from_pcs mm/slub.c:4850 [inline]
slab_alloc_node mm/slub.c:4984 [inline]
__do_kmalloc_node mm/slub.c:5413 [inline]
__kmalloc_node_track_caller_noprof+0x548/0x720 mm/slub.c:5545
kmalloc_reserve net/core/skbuff.c:637 [inline]
__alloc_skb+0x2c1/0x7a0 net/core/skbuff.c:715
alloc_skb include/linux/skbuff.h:1384 [inline]
nlmsg_new include/net/netlink.h:1055 [inline]
inet6_ifinfo_notify+0x70/0x120 net/ipv6/addrconf.c:6216
addrconf_notify+0xca0/0x1050 net/ipv6/addrconf.c:3796
notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:85
netif_state_change+0x27d/0x3a0 net/core/dev.c:1625
__linkwatch_run_queue+0x52a/0x800 net/core/link_watch.c:240
linkwatch_event+0x4c/0x60 net/core/link_watch.c:314
process_one_work kernel/workqueue.c:3396 [inline]
process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3479
worker_thread+0xa47/0xfb0 kernel/workqueue.c:3560
page last free pid 5724 tgid 5724 ts 90602577691 stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1418 [inline]
__free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2962
__slab_free+0x274/0x2c0 mm/slub.c:5823
qlink_free mm/kasan/quarantine.c:163 [inline]
qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179
kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286
__kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:361
kasan_slab_alloc include/linux/kasan.h:253 [inline]
slab_post_alloc_hook mm/slub.c:4683 [inline]
slab_alloc_node mm/slub.c:4996 [inline]
kmem_cache_alloc_noprof+0x2b9/0x600 mm/slub.c:5010
ptlock_alloc+0x20/0x70 mm/memory.c:7721
ptlock_init include/linux/mm.h:3884 [inline]
pagetable_pte_ctor include/linux/mm.h:3933 [inline]
__pte_alloc_one_noprof include/asm-generic/pgalloc.h:79 [inline]
pte_alloc_one+0x7a/0x370 arch/x86/mm/pgtable.c:18
do_fault_around mm/memory.c:5952 [inline]
do_read_fault mm/memory.c:5991 [inline]
do_fault mm/memory.c:6134 [inline]
do_pte_missing+0x13c8/0x34b0 mm/memory.c:4700
handle_pte_fault mm/memory.c:6558 [inline]
__handle_mm_fault mm/memory.c:6707 [inline]
handle_mm_fault+0x1a53/0x3750 mm/memory.c:6876
do_user_addr_fault+0xa4f/0x1340 arch/x86/mm/fault.c:1343
handle_page_fault arch/x86/mm/fault.c:1483 [inline]
exc_page_fault+0x6a/0xc0 arch/x86/mm/fault.c:1536
asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:595
Memory state around the buggy address:
ffff88802970e000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88802970e080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff88802970e100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88802970e180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88802970e200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
----------------
Code disassembly (best guess), 1 bytes skipped:
0: e8 cd 4f ba f5 call 0xf5ba4fd2
5: f7 c3 00 02 00 00 test $0x200,%ebx
b: 74 05 je 0x12
d: e8 60 9d e6 f5 call 0xf5e69d72
12: 9c pushf
13: 58 pop %rax
14: a9 00 02 00 00 test $0x200,%eax
19: 75 29 jne 0x44
1b: f7 c3 00 02 00 00 test $0x200,%ebx
21: 74 01 je 0x24
23: fb sti
24: bf 01 00 00 00 mov $0x1,%edi
* 29: e8 04 4d ab f5 call 0xf5ab4d32 <-- trapping instruction
2e: 65 48 8b 05 4c f0 ab mov %gs:0x7abf04c(%rip),%rax # 0x7abf082
35: 07
36: 48 85 c0 test %rax,%rax
39: 74 18 je 0x53
3b: 5b pop %rbx
3c: 41 5e pop %r14
3e: e9 .byte 0xe9