==================================================================
BUG: KASAN: out-of-bounds in ath9k_hif_usb_rx_stream drivers/net/wireless/ath/ath9k/hif_usb.c:636 [inline]
BUG: KASAN: out-of-bounds in ath9k_hif_usb_rx_cb+0xdd8/0x1050 drivers/net/wireless/ath/ath9k/hif_usb.c:680
Read of size 4 at addr ffff888156cb4178 by task kworker/0:0/13146
CPU: 0 PID: 13146 Comm: kworker/0:0 Not tainted 5.13.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: usb_hub_wq hub_event
Call Trace:
__dump_stack lib/dump_stack.c:79 [inline]
dump_stack+0x143/0x1db lib/dump_stack.c:120
print_address_description.constprop.0.cold+0x5b/0x2f8 mm/kasan/report.c:233
__kasan_report mm/kasan/report.c:419 [inline]
kasan_report.cold+0x7c/0xd8 mm/kasan/report.c:436
ath9k_hif_usb_rx_stream drivers/net/wireless/ath/ath9k/hif_usb.c:636 [inline]
ath9k_hif_usb_rx_cb+0xdd8/0x1050 drivers/net/wireless/ath/ath9k/hif_usb.c:680
__usb_hcd_giveback_urb+0x2b0/0x5c0 drivers/usb/core/hcd.c:1656
usb_hcd_giveback_urb+0x367/0x410 drivers/usb/core/hcd.c:1726
dummy_timer+0x11f4/0x32a0 drivers/usb/gadget/udc/dummy_hcd.c:1987
call_timer_fn+0x1a5/0x630 kernel/time/timer.c:1431
expire_timers kernel/time/timer.c:1476 [inline]
__run_timers.part.0+0x67c/0xa10 kernel/time/timer.c:1745
__run_timers kernel/time/timer.c:1726 [inline]
run_timer_softirq+0x80/0x120 kernel/time/timer.c:1758
__do_softirq+0x1b0/0x944 kernel/softirq.c:559
invoke_softirq kernel/softirq.c:433 [inline]
__irq_exit_rcu kernel/softirq.c:637 [inline]
irq_exit_rcu+0x119/0x1a0 kernel/softirq.c:649
sysvec_apic_timer_interrupt+0x6a/0x90 arch/x86/kernel/apic/apic.c:1100
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:647
RIP: 0010:console_unlock+0xa65/0xc20 kernel/printk/printk.c:2484
Code: 24 08 4c 89 6c 24 20 e9 88 f9 ff ff e8 64 e2 16 00 0f 0b e9 14 fa ff ff e8 58 e2 16 00 48 8b bc 24 68 01 00 00 e8 8b c9 ff ff 46 e2 16 00 48 b8 00 00 00 00 00 fc ff df 48 03 44 24 30 48 c7
RSP: 0018:ffffc90012cb7538 EFLAGS: 00000216
RAX: 00000000000198b2 RBX: 0000000000000000 RCX: ffffc900102ae000
RDX: 0000000000040000 RSI: ffffffff812a33a5 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffff8a8f1777
R10: ffffffff812a3397 R11: 0000000000000000 R12: ffffffff82d1f490
R13: 0000000000000200 R14: dffffc0000000000 R15: 0000000000000200
vprintk_emit+0x20a/0x580 kernel/printk/printk.c:2174
dev_vprintk_emit+0x36e/0x3b2 drivers/base/core.c:4553
dev_printk_emit+0xba/0xf1 drivers/base/core.c:4564
__dev_printk+0xcf/0xf5 drivers/base/core.c:4576
_dev_info+0xd7/0x109 drivers/base/core.c:4622
show_string drivers/usb/core/hub.c:2272 [inline]
announce_device drivers/usb/core/hub.c:2290 [inline]
usb_new_device.cold+0x859/0x108e drivers/usb/core/hub.c:2540
hub_port_connect drivers/usb/core/hub.c:5300 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5440 [inline]
port_event drivers/usb/core/hub.c:5586 [inline]
hub_event+0x2357/0x4330 drivers/usb/core/hub.c:5668
process_one_work+0x98d/0x1580 kernel/workqueue.c:2276
worker_thread+0x64c/0x1120 kernel/workqueue.c:2422
kthread+0x38c/0x460 kernel/kthread.c:313
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294
The buggy address belongs to the page:
page:ffffea00055b2c00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x156cb0
head:ffffea00055b2c00 order:3 compound_mapcount:0 compound_pincount:0
flags: 0x200000000010000(head|node=0|zone=2)
raw: 0200000000010000 dead000000000100 dead000000000122 0000000000000000
raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0x40dc0(GFP_KERNEL|__GFP_COMP|__GFP_ZERO), pid 789, ts 2399381104816, free_ts 2399332138056
prep_new_page mm/page_alloc.c:2358 [inline]
get_page_from_freelist+0x1b0c/0x26a0 mm/page_alloc.c:3994
__alloc_pages+0x1b2/0x4f0 mm/page_alloc.c:5200
alloc_pages+0x18c/0x2a0 mm/mempolicy.c:2272
kmalloc_order+0x34/0xf0 mm/slab_common.c:923
kmalloc_order_trace+0x14/0x110 mm/slab_common.c:939
kmalloc_large include/linux/slab.h:485 [inline]
kmalloc include/linux/slab.h:549 [inline]
kzalloc include/linux/slab.h:686 [inline]
ath9k_hif_usb_alloc_tx_urbs drivers/net/wireless/ath/ath9k/hif_usb.c:825 [inline]
ath9k_hif_usb_alloc_urbs+0x323/0x1010 drivers/net/wireless/ath/ath9k/hif_usb.c:1008
ath9k_hif_usb_dev_init drivers/net/wireless/ath/ath9k/hif_usb.c:1102 [inline]
ath9k_hif_usb_firmware_cb+0x148/0x530 drivers/net/wireless/ath/ath9k/hif_usb.c:1235
request_firmware_work_func+0x12c/0x230 drivers/base/firmware_loader/main.c:1081
process_one_work+0x98d/0x1580 kernel/workqueue.c:2276
worker_thread+0x64c/0x1120 kernel/workqueue.c:2422
kthread+0x38c/0x460 kernel/kthread.c:313
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1298 [inline]
__free_pages_ok+0x488/0xb10 mm/page_alloc.c:1572
device_release+0x9f/0x240 drivers/base/core.c:2190
kobject_cleanup lib/kobject.c:705 [inline]
kobject_release lib/kobject.c:736 [inline]
kref_put include/linux/kref.h:65 [inline]
kobject_put+0x1c8/0x540 lib/kobject.c:753
put_device+0x1b/0x30 drivers/base/core.c:3460
ath9k_htc_probe_device+0x1c7/0x1e50 drivers/net/wireless/ath/ath9k/htc_drv_init.c:976
ath9k_htc_hw_init+0x31/0x60 drivers/net/wireless/ath/ath9k/htc_hst.c:503
ath9k_hif_usb_firmware_cb+0x274/0x530 drivers/net/wireless/ath/ath9k/hif_usb.c:1239
request_firmware_work_func+0x12c/0x230 drivers/base/firmware_loader/main.c:1081
process_one_work+0x98d/0x1580 kernel/workqueue.c:2276
worker_thread+0x64c/0x1120 kernel/workqueue.c:2422
kthread+0x38c/0x460 kernel/kthread.c:313
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294
Memory state around the buggy address:
ffff888156cb4000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff888156cb4080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff888156cb4100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
ffff888156cb4180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff888156cb4200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================