================================================================== BUG: KASAN: out-of-bounds in ath9k_hif_usb_rx_stream drivers/net/wireless/ath/ath9k/hif_usb.c:589 [inline] BUG: KASAN: out-of-bounds in ath9k_hif_usb_rx_cb+0xcca/0x1050 drivers/net/wireless/ath/ath9k/hif_usb.c:680 Read of size 4 at addr ffff888141564184 by task kworker/0:4/6885 CPU: 0 PID: 6885 Comm: kworker/0:4 Not tainted 5.12.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events request_firmware_work_func Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x143/0x1db lib/dump_stack.c:120 print_address_description.constprop.0.cold+0x5b/0x2f8 mm/kasan/report.c:232 __kasan_report mm/kasan/report.c:399 [inline] kasan_report.cold+0x7c/0xd8 mm/kasan/report.c:416 ath9k_hif_usb_rx_stream drivers/net/wireless/ath/ath9k/hif_usb.c:589 [inline] ath9k_hif_usb_rx_cb+0xcca/0x1050 drivers/net/wireless/ath/ath9k/hif_usb.c:680 __usb_hcd_giveback_urb+0x2b0/0x5c0 drivers/usb/core/hcd.c:1656 usb_hcd_giveback_urb+0x367/0x410 drivers/usb/core/hcd.c:1726 dummy_timer+0x11f4/0x32a0 drivers/usb/gadget/udc/dummy_hcd.c:1971 call_timer_fn+0x1a5/0x630 kernel/time/timer.c:1431 expire_timers kernel/time/timer.c:1476 [inline] __run_timers.part.0+0x67c/0xa10 kernel/time/timer.c:1745 __run_timers kernel/time/timer.c:1726 [inline] run_timer_softirq+0x80/0x120 kernel/time/timer.c:1758 __do_softirq+0x1b0/0x944 kernel/softirq.c:345 invoke_softirq kernel/softirq.c:221 [inline] __irq_exit_rcu kernel/softirq.c:422 [inline] irq_exit_rcu+0x110/0x1a0 kernel/softirq.c:434 sysvec_apic_timer_interrupt+0x6a/0x90 arch/x86/kernel/apic/apic.c:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:632 RIP: 0010:preempt_count arch/x86/include/asm/preempt.h:27 [inline] RIP: 0010:check_kcov_mode kernel/kcov.c:163 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x0/0x60 kernel/kcov.c:197 Code: 89 03 e9 04 fd ff ff b9 ff ff ff ff ba 08 00 00 00 4d 8b 03 48 0f bd ca 49 8b 45 00 48 63 c9 e9 64 ff ff ff 66 0f 1f 44 00 00 <65> 8b 05 c9 bc c1 7e 89 c1 48 8b 34 24 81 e1 00 01 00 00 65 48 8b RSP: 0018:ffffc90004517950 EFLAGS: 00000293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff888102ec0000 RSI: ffffffff812986b1 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffff8a1f86e7 R10: ffffffff812986a7 R11: 0000000000000000 R12: ffffffff82cced00 R13: 0000000000000200 R14: dffffc0000000000 R15: ffffc900045179b0 console_unlock+0x807/0xc60 kernel/printk/printk.c:2586 vprintk_emit+0x20a/0x580 kernel/printk/printk.c:2098 vprintk_func+0x8b/0x140 kernel/printk/printk_safe.c:401 printk+0xba/0xed kernel/printk/printk.c:2146 ath9k_htc_hw_init.cold+0x17/0x1c drivers/net/wireless/ath/ath9k/htc_hst.c:504 ath9k_hif_usb_firmware_cb+0x274/0x530 drivers/net/wireless/ath/ath9k/hif_usb.c:1239 request_firmware_work_func+0x12c/0x230 drivers/base/firmware_loader/main.c:1079 process_one_work+0x98d/0x1580 kernel/workqueue.c:2275 worker_thread+0x64c/0x1120 kernel/workqueue.c:2421 kthread+0x38c/0x460 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Allocated by task 28464: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:427 [inline] __kasan_slab_alloc+0x58/0x70 mm/kasan/common.c:460 kasan_slab_alloc include/linux/kasan.h:223 [inline] slab_post_alloc_hook mm/slab.h:516 [inline] slab_alloc_node mm/slub.c:2907 [inline] slab_alloc mm/slub.c:2915 [inline] kmem_cache_alloc+0x141/0x330 mm/slub.c:2920 getname_kernel+0x4e/0x370 fs/namei.c:218 kernel_execve+0x24/0x460 fs/exec.c:1936 call_usermodehelper_exec_async+0x2de/0x580 kernel/umh.c:110 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Freed by task 28464: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track+0x1c/0x30 mm/kasan/common.c:46 kasan_set_free_info+0x20/0x30 mm/kasan/generic.c:357 ____kasan_slab_free mm/kasan/common.c:360 [inline] ____kasan_slab_free mm/kasan/common.c:325 [inline] __kasan_slab_free+0xda/0x110 mm/kasan/common.c:367 kasan_slab_free include/linux/kasan.h:199 [inline] slab_free_hook mm/slub.c:1562 [inline] slab_free_freelist_hook+0x6b/0x160 mm/slub.c:1600 slab_free mm/slub.c:3161 [inline] kmem_cache_free+0x82/0x330 mm/slub.c:3177 putname+0xe1/0x120 fs/namei.c:259 kernel_execve+0x38d/0x460 fs/exec.c:1977 call_usermodehelper_exec_async+0x2de/0x580 kernel/umh.c:110 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 The buggy address belongs to the object at ffff888141563300 which belongs to the cache names_cache of size 4096 The buggy address is located 3716 bytes inside of 4096-byte region [ffff888141563300, ffff888141564300) The buggy address belongs to the page: page:ffffea0005055800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x141560 head:ffffea0005055800 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x200000000010200(slab|head) raw: 0200000000010200 dead000000000100 dead000000000122 ffff888100161000 raw: 0000000000000000 0000000080070007 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888141564080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888141564100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888141564180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888141564200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888141564280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================