================================================================== 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 ffff8881d0e840d0 by task systemd-udevd/150 CPU: 1 PID: 150 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: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:get_current arch/x86/include/asm/current.h:15 [inline] RIP: 0010:lock_acquire+0x58/0x7c0 kernel/locking/lockdep.c:4909 Code: 44 24 20 b3 8a b5 41 48 8d 44 24 20 48 c7 44 24 28 b5 df dd 86 48 c1 e8 03 48 89 44 24 08 48 01 c8 48 c7 44 24 30 80 01 27 81 <65> 48 8b 14 25 40 0f 02 00 c7 00 f1 f1 f1 f1 48 8d ba 7c 08 00 00 RSP: 0018:ffff8881cfecfcb0 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13 RAX: ffffed1039fd9f9a RBX: 0000000000000001 RCX: dffffc0000000000 RDX: 0000000000000001 RSI: 0000000000000000 RDI: ffff8881d45d3a80 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000003 R11: ffffed1039fd9faa R12: 0000000000000000 R13: ffff8881d45d3a80 R14: 0000000000000001 R15: 0000000000000000 __raw_spin_trylock include/linux/spinlock_api_smp.h:90 [inline] _raw_spin_trylock+0x3c/0x50 kernel/locking/spinlock.c:135 spin_trylock include/linux/spinlock.h:363 [inline] dentry_kill fs/dcache.c:675 [inline] dput+0x604/0xdf0 fs/dcache.c:859 do_unlinkat+0x3b2/0x650 fs/namei.c:3875 do_syscall_64+0xb6/0x5a0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x7f206b5a60e7 Code: f0 ff ff 73 01 c3 48 8b 0d ae bd 2b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 b8 57 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 81 bd 2b 00 f7 d8 64 89 01 48 RSP: 002b:00007ffcacf8ba08 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 000055d02dcec580 RCX: 00007f206b5a60e7 RDX: 000055d02dce9028 RSI: 0000000000000000 RDI: 000055d02be51369 RBP: 0000000000000096 R08: 000055d02dceda40 R09: 0000000000000018 R10: ce6c90ea5bb3884f R11: 0000000000000246 R12: 0000000200000001 R13: 00007ffcacf8bab0 R14: 00007ffcacf8ba60 R15: 00007ffcacf8ba5f Allocated by task 0: (stack is not available) Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff8881d0e83300 which belongs to the cache names_cache of size 4096 The buggy address is located 3536 bytes inside of 4096-byte region [ffff8881d0e83300, ffff8881d0e84300) The buggy address belongs to the page: page:ffffea000743a000 refcount:1 mapcount:0 mapping:0000000038c91981 index:0x0 head:ffffea000743a000 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x200000000010200(slab|head) raw: 0200000000010200 dead000000000100 dead000000000122 ffff8881da11e000 raw: 0000000000000000 0000000080070007 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881d0e83f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881d0e84000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8881d0e84080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8881d0e84100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881d0e84180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================