================================================================== 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 ffff8881db309a00 by task systemd-udevd/11923 CPU: 1 PID: 11923 Comm: systemd-udevd 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: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:ffff8881cc4e7750 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000007 RBX: ffff8881cd1eb180 RCX: ca3a0aa657ec2bb4 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff8881cd1eb9fc RBP: 0000000000000000 R08: 0000000000000001 R09: fffffbfff126c8be R10: ffffffff893645ef R11: fffffbfff126c8bd R12: 0000000000000000 R13: ffff8881d3ab37a0 R14: 0000000000000000 R15: 0000000000000000 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x27/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:353 [inline] __d_lookup+0x1c6/0x750 fs/dcache.c:2374 lookup_fast+0x2d7/0x6d0 fs/namei.c:1488 walk_component+0xc6/0x6a0 fs/namei.c:1842 link_path_walk.part.0+0x631/0xb50 fs/namei.c:2169 link_path_walk fs/namei.c:2097 [inline] path_lookupat.isra.0+0x8d/0x530 fs/namei.c:2318 filename_lookup+0x1a3/0x3e0 fs/namei.c:2352 user_path_at include/linux/namei.h:59 [inline] vfs_statx+0x119/0x1e0 fs/stat.c:197 vfs_lstat include/linux/fs.h:3284 [inline] __do_sys_newlstat+0x96/0x120 fs/stat.c:364 do_syscall_64+0xb6/0x5a0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x7f851827a335 Code: 69 db 2b 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 83 ff 01 48 89 f0 77 30 48 89 c7 48 89 d6 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 03 f3 c3 90 48 8b 15 31 db 2b 00 f7 d8 64 89 RSP: 002b:00007ffea1534418 EFLAGS: 00000246 ORIG_RAX: 0000000000000006 RAX: ffffffffffffffda RBX: 000055abb8ef39b0 RCX: 00007f851827a335 RDX: 00007ffea1534450 RSI: 00007ffea1534450 RDI: 000055abb8ef29b0 RBP: 00007ffea1534510 R08: 00007f85185391d8 R09: 0000000000001010 R10: 0000000000000020 R11: 0000000000000246 R12: 000055abb8ef29b0 R13: 000055abb8ef29d1 R14: 000055abb8edebc6 R15: 000055abb8edebd1 The buggy address belongs to the page: page:ffffea00076cc240 refcount:1 mapcount:0 mapping:00000000548d8f90 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: f1 f1 f1 f1 f1 f1 00 00 00 00 00 00 00 00 00 00 >ffff8881db309a00: f3 f3 f3 f3 00 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 ==================================================================