================================================================== BUG: KASAN: stack-out-of-bounds in ath9k_hif_usb_rx_stream drivers/net/wireless/ath/ath9k/hif_usb.c:626 [inline] BUG: KASAN: stack-out-of-bounds in ath9k_hif_usb_rx_cb+0xe11/0xf90 drivers/net/wireless/ath/ath9k/hif_usb.c:666 Write of size 8 at addr ffff8881db309a08 by task kworker/1:0/17 CPU: 1 PID: 17 Comm: kworker/1:0 Not tainted 5.7.0-rc5-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:77 [inline] dump_stack+0xef/0x16e lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xd3/0x314 mm/kasan/report.c:382 __kasan_report.cold+0x37/0x92 mm/kasan/report.c:511 kasan_report+0x33/0x50 mm/kasan/common.c:625 ath9k_hif_usb_rx_stream drivers/net/wireless/ath/ath9k/hif_usb.c:626 [inline] ath9k_hif_usb_rx_cb+0xe11/0xf90 drivers/net/wireless/ath/ath9k/hif_usb.c:666 __usb_hcd_giveback_urb+0x1f2/0x470 drivers/usb/core/hcd.c:1648 usb_hcd_giveback_urb+0x368/0x420 drivers/usb/core/hcd.c:1713 dummy_timer+0x125e/0x32b4 drivers/usb/gadget/udc/dummy_hcd.c:1966 call_timer_fn+0x1ac/0x700 kernel/time/timer.c:1405 expire_timers kernel/time/timer.c:1450 [inline] __run_timers kernel/time/timer.c:1774 [inline] __run_timers kernel/time/timer.c:1741 [inline] run_timer_softirq+0x5f9/0x1500 kernel/time/timer.c:1787 __do_softirq+0x21e/0x9aa kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x178/0x1a0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:546 [inline] smp_apic_timer_interrupt+0x141/0x540 arch/x86/kernel/apic/apic.c:1140 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 RIP: 0010:lock_acquire+0x1d1/0x7c0 kernel/locking/lockdep.c:4906 Code: 0f b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 63 05 00 00 83 ab 7c 08 00 00 01 0f 85 02 04 00 00 ff 34 24 9d <48> b8 00 00 00 00 00 fc ff df 48 03 44 24 08 48 c7 00 00 00 00 00 RSP: 0018:ffff8881da25f4d0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000007 RBX: ffff8881da243180 RCX: c8fcef9443454467 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff8881da2439fc RBP: 0000000000000000 R08: 0000000000000001 R09: fffffbfff126c8be R10: ffffffff893645ef R11: fffffbfff126c8bd R12: 0000000000000000 R13: ffffffff871ec568 R14: 0000000000000000 R15: 0000000000000000 __mutex_lock_common kernel/locking/mutex.c:956 [inline] __mutex_lock+0x158/0x1360 kernel/locking/mutex.c:1103 kernfs_drain fs/kernfs/dir.c:484 [inline] __kernfs_remove fs/kernfs/dir.c:1323 [inline] __kernfs_remove+0x59e/0x9b0 fs/kernfs/dir.c:1282 kernfs_remove+0x1f/0x30 fs/kernfs/dir.c:1357 sysfs_remove_dir+0xca/0x100 fs/sysfs/dir.c:102 kobject_del+0xa2/0x170 lib/kobject.c:623 device_del+0x872/0xd30 drivers/base/core.c:2727 device_unregister+0x22/0xc0 drivers/base/core.c:2747 usb_remove_ep_devs+0x3e/0x80 drivers/usb/core/endpoint.c:215 remove_intf_ep_devs+0x108/0x1d0 drivers/usb/core/message.c:1120 usb_disable_device+0x235/0x790 drivers/usb/core/message.c:1244 usb_disconnect+0x293/0x900 drivers/usb/core/hub.c:2216 hub_port_connect drivers/usb/core/hub.c:5058 [inline] hub_port_connect_change drivers/usb/core/hub.c:5347 [inline] port_event drivers/usb/core/hub.c:5493 [inline] hub_event+0x1abf/0x43c0 drivers/usb/core/hub.c:5575 process_one_work+0x965/0x1630 kernel/workqueue.c:2268 worker_thread+0x96/0xe20 kernel/workqueue.c:2414 kthread+0x326/0x430 kernel/kthread.c:268 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:351 The buggy address belongs to the page: page:ffffea00076cc240 refcount:1 mapcount:0 mapping:000000007337d136 index:0x0 flags: 0x200000000001000(reserved) raw: 0200000000001000 ffffea00076cc248 ffffea00076cc248 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881db309900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881db309980: 00 f1 f1 f1 f1 f1 f1 00 00 00 00 00 00 00 00 00 >ffff8881db309a00: 00 f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 ^ ffff8881db309a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881db309b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================