================================================================== BUG: KASAN: use-after-free in memcpy include/linux/string.h:399 [inline] BUG: KASAN: use-after-free in ath9k_hif_usb_rx_stream drivers/net/wireless/ath/ath9k/hif_usb.c:562 [inline] BUG: KASAN: use-after-free in ath9k_hif_usb_rx_cb+0x3ab/0x1020 drivers/net/wireless/ath/ath9k/hif_usb.c:680 Read of size 33284 at addr ffff888102f38000 by task syz-executor.3/16256 CPU: 0 PID: 16256 Comm: syz-executor.3 Not tainted 5.10.0-rc3-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+0x107/0x163 lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xae/0x4c8 mm/kasan/report.c:385 __kasan_report mm/kasan/report.c:545 [inline] kasan_report.cold+0x1f/0x37 mm/kasan/report.c:562 check_memory_region_inline mm/kasan/generic.c:186 [inline] check_memory_region+0x13d/0x180 mm/kasan/generic.c:192 memcpy+0x20/0x60 mm/kasan/common.c:105 memcpy include/linux/string.h:399 [inline] ath9k_hif_usb_rx_stream drivers/net/wireless/ath/ath9k/hif_usb.c:562 [inline] ath9k_hif_usb_rx_cb+0x3ab/0x1020 drivers/net/wireless/ath/ath9k/hif_usb.c:680 __usb_hcd_giveback_urb+0x2b0/0x5c0 drivers/usb/core/hcd.c:1657 usb_hcd_giveback_urb+0x367/0x410 drivers/usb/core/hcd.c:1728 dummy_timer+0x11f4/0x3280 drivers/usb/gadget/udc/dummy_hcd.c:1969 call_timer_fn+0x1a5/0x630 kernel/time/timer.c:1410 expire_timers kernel/time/timer.c:1455 [inline] __run_timers.part.0+0x67c/0xa10 kernel/time/timer.c:1747 __run_timers kernel/time/timer.c:1728 [inline] run_timer_softirq+0x80/0x120 kernel/time/timer.c:1760 __do_softirq+0x1b2/0x945 kernel/softirq.c:298 asm_call_irq_on_stack+0xf/0x20 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] do_softirq_own_stack+0x80/0xa0 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:393 [inline] __irq_exit_rcu kernel/softirq.c:423 [inline] irq_exit_rcu+0x110/0x1a0 kernel/softirq.c:435 sysvec_apic_timer_interrupt+0x43/0xa0 arch/x86/kernel/apic/apic.c:1091 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:631 RIP: 0010:__sanitizer_cov_trace_pc+0x4e/0x60 kernel/kcov.c:204 Code: 00 00 85 c0 74 2b 8b 82 40 13 00 00 83 f8 02 75 20 48 8b 8a 48 13 00 00 8b 92 44 13 00 00 48 8b 01 48 83 c0 01 48 39 c2 76 07 <48> 89 34 c1 48 89 01 c3 66 2e 0f 1f 84 00 00 00 00 00 41 55 41 54 RSP: 0018:ffffc900130bf760 EFLAGS: 00000216 RAX: 00000000000006de RBX: ffff8881039f3300 RCX: ffffc900094df000 RDX: 0000000000040000 RSI: ffffffff81d685ba RDI: 0000000000000000 RBP: dffffc0000000000 R08: 0000000000000001 R09: 0000000000000001 R10: 0000000000000002 R11: ffffc900130bff58 R12: ffffc900130bf860 R13: ffff8881026a7190 R14: 0000000000000002 R15: 0000000000000000 tomoyo_check_acl+0x23a/0x450 security/tomoyo/domain.c:171 tomoyo_path_permission security/tomoyo/file.c:586 [inline] tomoyo_path_permission+0x1ff/0x3a0 security/tomoyo/file.c:573 tomoyo_check_open_permission+0x33e/0x380 security/tomoyo/file.c:777 tomoyo_file_open security/tomoyo/tomoyo.c:313 [inline] tomoyo_file_open+0xa3/0xd0 security/tomoyo/tomoyo.c:308 security_file_open+0x52/0x4f0 security/security.c:1575 do_dentry_open+0x353/0x1090 fs/open.c:804 do_open fs/namei.c:3252 [inline] path_openat+0x1b9a/0x2730 fs/namei.c:3369 do_filp_open+0x17e/0x3c0 fs/namei.c:3396 do_sys_openat2+0x16d/0x420 fs/open.c:1168 do_sys_open fs/open.c:1184 [inline] __do_sys_open fs/open.c:1192 [inline] __se_sys_open fs/open.c:1188 [inline] __x64_sys_open+0x119/0x1c0 fs/open.c:1188 do_syscall_64+0x2d/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x4179b1 Code: 75 14 b8 02 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 04 19 00 00 c3 48 83 ec 08 e8 6a fa ff ff 48 89 04 24 b8 02 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 b3 fa ff ff 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007f5fd1d89b80 EFLAGS: 00000293 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 000000000118bf20 RCX: 00000000004179b1 RDX: 0000000020000000 RSI: 0000000000000002 RDI: 00000000004c29d6 RBP: 000000000118bf68 R08: 0000000000402050 R09: 0000000000000000 R10: ffffffffffffffff R11: 0000000000000293 R12: 000000000000005d R13: 0000000000000000 R14: 0000000000402050 R15: 0000000020000000 The buggy address belongs to the page: page:00000000d3a07771 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102f38 head:00000000d3a07771 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x200000000010000(head) raw: 0200000000010000 dead000000000100 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888102f3ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888102f3ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888102f40000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888102f40080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888102f40100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================