==================================================================
BUG: KASAN: slab-out-of-bounds in ath9k_hif_usb_rx_stream drivers/net/wireless/ath/ath9k/hif_usb.c:622 [inline]
BUG: KASAN: slab-out-of-bounds in ath9k_hif_usb_rx_cb+0xe64/0xf90 drivers/net/wireless/ath/ath9k/hif_usb.c:666
Read of size 4 at addr ffff8881d0a140d0 by task kworker/u4:5/402
CPU: 0 PID: 402 Comm: kworker/u4:5 Not tainted 5.7.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: ext4-rsv-conversion ext4_end_io_rsv_work
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:622 [inline]
ath9k_hif_usb_rx_cb+0xe64/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:ffff8881aca07ac0 EFLAGS: 00000293 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000007 RBX: 0000000000000293 RCX: 1ffffffff1272619
RDX: 0000000000000000 RSI: ffff8881d3cd6bd0 RDI: ffff8881d3cd6b7c
RBP: ffff8881ab7b15f8 R08: 0000000000000001 R09: fffffbfff126c8cd
R10: ffffffff89364667 R11: fffffbfff126c8cc R12: ffff8881da17e000
R13: 0000000000000001 R14: ffff8881da0ba800 R15: ffff8881ab7b15f8
spin_unlock_irqrestore include/linux/spinlock.h:408 [inline]
test_clear_page_writeback+0x2cf/0xa10 mm/page-writeback.c:2745
end_page_writeback+0x101/0x1d0 mm/filemap.c:1317
ext4_finish_bio+0x513/0x5f0 fs/ext4/page-io.c:146
ext4_release_io_end+0x118/0x3e0 fs/ext4/page-io.c:161
ext4_end_io_end fs/ext4/page-io.c:195 [inline]
ext4_do_flush_completed_IO fs/ext4/page-io.c:260 [inline]
ext4_end_io_rsv_work+0x17e/0x6a0 fs/ext4/page-io.c:274
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
Allocated by task 0:
(stack is not available)
Freed by task 0:
(stack is not available)
The buggy address belongs to the object at ffff8881d0a14000
which belongs to the cache kmalloc-4k of size 4096
The buggy address is located 208 bytes inside of
4096-byte region [ffff8881d0a14000, ffff8881d0a15000)
The buggy address belongs to the page:
page:ffffea0007428400 refcount:1 mapcount:0 mapping:00000000bcb917f1 index:0x0 head:ffffea0007428400 order:3 compound_mapcount:0 compound_pincount:0
flags: 0x200000000010200(slab|head)
raw: 0200000000010200 dead000000000100 dead000000000122 ffff8881da00c280
raw: 0000000000000000 0000000080040004 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff8881d0a13f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff8881d0a14000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff8881d0a14080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff8881d0a14100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff8881d0a14180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================