================================================================== 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 48924 at addr ffff88807c158000 by task systemd-journal/4893 CPU: 0 PID: 4893 Comm: systemd-journal Not tainted 5.10.0-rc1-next-20201030-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/0x6b0 kernel/time/timer.c:1410 expire_timers kernel/time/timer.c:1455 [inline] __run_timers.part.0+0x67c/0xa50 kernel/time/timer.c:1747 __run_timers kernel/time/timer.c:1728 [inline] run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1760 __do_softirq+0x2a0/0x9f6 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+0xaa/0xd0 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+0x132/0x200 kernel/softirq.c:435 sysvec_apic_timer_interrupt+0x4d/0x100 arch/x86/kernel/apic/apic.c:1091 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:631 RIP: 0010:devkmsg_read+0x3da/0x740 kernel/printk/printk.c:801 Code: 01 80 3c 02 00 0f 85 19 03 00 00 48 c7 c7 00 92 32 8b 4c 89 6d 00 e8 e5 a8 8f 07 e8 00 47 00 00 e8 fb 56 1d 00 fb 48 8b 2c 24 <4c> 89 ff 48 c7 c3 ea ff ff ff 48 89 ee e8 d4 83 17 00 49 39 ef 77 RSP: 0018:ffffc9000166fd68 EFLAGS: 00000202 RAX: 000000000024f597 RBX: ffff8880125720f8 RCX: ffffffff8155b477 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000002000 R08: 0000000000000001 R09: ffffffff8ebb570f R10: fffffbfff1d76ae1 R11: 0000000000000000 R12: 1ffff920002cdfb2 R13: 0000000000001a9f R14: ffff888012570068 R15: 000000000000005c vfs_read+0x1b5/0x570 fs/read_write.c:494 ksys_read+0x12d/0x250 fs/read_write.c:634 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7f54a1c1c210 Code: 73 01 c3 48 8b 0d 98 7d 20 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 83 3d b9 c1 20 00 00 75 10 b8 00 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 4e fc ff ff 48 89 04 24 RSP: 002b:00007ffe584685f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007ffe5846b070 RCX: 00007f54a1c1c210 RDX: 0000000000002000 RSI: 00007ffe58468e70 RDI: 0000000000000009 RBP: 0000000000000000 R08: 0000000000000008 R09: 00007ffe5849c0f0 R10: 0000000000060566 R11: 0000000000000246 R12: 00007ffe58468e70 R13: 00007ffe5846afc8 R14: 0000556900a2c958 R15: 0005b3041925a665 The buggy address belongs to the page: page:0000000000a16821 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7c158 head:0000000000a16821 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010000(head) raw: 00fff00000010000 dead000000000100 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88807c15ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88807c15ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88807c160000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88807c160080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88807c160100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================