================================================================== 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.4/4229 CPU: 0 PID: 4229 Comm: syz-executor.4 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:_raw_spin_unlock_irq+0x27/0x30 kernel/locking/spinlock.c:200 Code: 44 00 00 55 48 8b 74 24 08 48 89 fd 48 8d 7f 18 e8 2e 72 90 fb 48 89 ef e8 c6 6e 91 fb e8 b1 13 af fb fb 65 ff 0d c1 86 6b 7a <5d> c3 0f 1f 80 00 00 00 00 55 48 89 fd 48 83 c7 18 53 48 89 f3 48 RSP: 0018:ffff8881c8ea76c0 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000007 RBX: ffff8881ab948450 RCX: 1ffffffff1271bad RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8881c759887c RBP: ffff8881ab948458 R08: 0000000000000001 R09: fffffbfff126c8cb R10: ffffffff89364657 R11: fffffbfff126c8ca R12: 0000000000000000 R13: ffff8881d9c2a680 R14: ffff8881c8ea7768 R15: 0000000000000000 spin_unlock_irq include/linux/spinlock.h:403 [inline] __add_to_page_cache_locked+0x40e/0xc00 mm/filemap.c:874 add_to_page_cache_lru+0xe6/0x2e0 mm/filemap.c:921 pagecache_get_page+0x345/0x9f0 mm/filemap.c:1656 grab_cache_page_write_begin+0x6d/0xa0 mm/filemap.c:3252 ext4_da_write_begin+0x303/0xc70 fs/ext4/inode.c:2964 generic_perform_write+0x20a/0x4f0 mm/filemap.c:3302 ext4_buffered_write_iter+0x235/0x4a0 fs/ext4/file.c:270 ext4_file_write_iter+0x1a1/0x1780 fs/ext4/file.c:642 call_write_iter include/linux/fs.h:1907 [inline] new_sync_write+0x426/0x650 fs/read_write.c:484 __vfs_write+0xc9/0x100 fs/read_write.c:497 vfs_write+0x268/0x5d0 fs/read_write.c:559 ksys_write+0x12d/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:00007fb12ec3ac78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000050cc80 RCX: 000000000045ca69 RDX: 00000001000001d1 RSI: 0000000020001200 RDI: 0000000000000006 RBP: 000000000078c040 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000cf8 R14: 00000000004cf48c R15: 00007fb12ec3b6d4 The buggy address belongs to the page: page:ffffea00076c8240 refcount:1 mapcount:0 mapping:0000000028896403 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 ==================================================================