================================================================== 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 ffff8881db209a00 by task syz-executor.5/3152 CPU: 0 PID: 3152 Comm: syz-executor.5 Not tainted 5.7.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 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/0x415 mm/kasan/report.c:382 __kasan_report.cold+0x37/0x7d 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+0x29a/0x550 drivers/usb/core/hcd.c:1650 usb_hcd_giveback_urb+0x368/0x420 drivers/usb/core/hcd.c:1716 dummy_timer+0x125e/0x32b4 drivers/usb/gadget/udc/dummy_hcd.c:1967 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:arch_local_irq_restore arch/x86/include/asm/irqflags.h:85 [inline] RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x3b/0x40 kernel/locking/spinlock.c:191 Code: e8 fa 71 90 fb 48 89 ef e8 92 6e 91 fb f6 c7 02 75 11 53 9d e8 76 15 af fb 65 ff 0d 87 86 6b 7a 5b 5d c3 e8 67 13 af fb 53 9d ed 0f 1f 00 55 48 89 fd 65 ff 05 6d 86 6b 7a 45 31 c9 41 b8 01 RSP: 0018:ffff8881c85d7cc8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000007 RBX: 0000000000000246 RCX: 1ffffffff12728cb RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8881da27eb7c RBP: ffff8881d695a218 R08: 0000000000000001 R09: fffffbfff126c8cd R10: ffffffff89364667 R11: fffffbfff126c8cc R12: 0000000000000000 R13: 0000000000000000 R14: ffff8881d695a000 R15: ffff8881d695a218 spin_unlock_irqrestore include/linux/spinlock.h:408 [inline] input_inject_event+0x214/0x31e drivers/input/input.c:474 evdev_write+0x2c9/0x410 drivers/input/evdev.c:539 __vfs_write+0x76/0x100 fs/read_write.c:495 vfs_write+0x268/0x5d0 fs/read_write.c:559 ksys_write+0x1ee/0x250 fs/read_write.c:612 do_syscall_64+0xb6/0x5a0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x45ca69 Code: 0d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fa43decdc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000050d500 RCX: 000000000045ca69 RDX: 00000000128e84bc RSI: 0000000020001200 RDI: 0000000000000008 RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000d10 R14: 00000000004cf688 R15: 00007fa43dece6d4 The buggy address belongs to the page: page:ffffea00076c8240 refcount:1 mapcount:0 mapping:00000000520a634a index:0x0 flags: 0x200000000001000(reserved) raw: 0200000000001000 ffffea00076c8248 ffffea00076c8248 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881db209900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881db209980: f1 f1 f1 f1 f1 f1 00 00 00 00 00 00 00 00 00 00 >ffff8881db209a00: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff8881db209a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881db209b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================