================================================================== 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 49149 at addr ffff88813e910000 by task systemd-udevd/6087 CPU: 1 PID: 6087 Comm: systemd-udevd 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:qlink_to_object mm/kasan/quarantine.c:137 [inline] RIP: 0010:qlink_free mm/kasan/quarantine.c:142 [inline] RIP: 0010:qlist_free_all+0x46/0xc0 mm/kasan/quarantine.c:168 Code: 49 be 00 00 00 00 00 ea ff ff 49 89 fd 49 bc 00 00 00 00 00 fc ff df eb 2d 48 63 87 c0 00 00 00 48 c7 c2 b5 62 6a 81 4c 8b 3e <48> 29 c6 48 89 f0 48 c1 e8 03 42 c6 04 20 fb e8 c6 c9 ff ff 4d 85 RSP: 0018:ffffc90006547bc0 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffff888119044400 RCX: ffffea0004241dbf RDX: ffffffff816a62b5 RSI: ffff888108ad1420 RDI: ffff88810004d640 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000001 R12: dffffc0000000000 R13: ffffc90006547bf8 R14: ffffea0000000000 R15: ffff888108ad15a0 quarantine_reduce+0x17e/0x200 mm/kasan/quarantine.c:261 __kasan_kmalloc.constprop.0+0x9e/0xd0 mm/kasan/common.c:442 slab_post_alloc_hook mm/slab.h:526 [inline] slab_alloc_node mm/slub.c:2891 [inline] slab_alloc mm/slub.c:2899 [inline] kmem_cache_alloc+0x10d/0x390 mm/slub.c:2904 getname_flags.part.0+0x50/0x4f0 fs/namei.c:138 getname_flags fs/namei.c:2647 [inline] user_path_at_empty+0xa1/0x100 fs/namei.c:2647 user_path_at include/linux/namei.h:59 [inline] vfs_statx+0x142/0x390 fs/stat.c:185 vfs_fstatat fs/stat.c:207 [inline] vfs_lstat include/linux/fs.h:3109 [inline] __do_sys_newlstat+0x91/0x110 fs/stat.c:362 do_syscall_64+0x2d/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7fd7524e1335 Code: 69 db 2b 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 83 ff 01 48 89 f0 77 30 48 89 c7 48 89 d6 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 03 f3 c3 90 48 8b 15 31 db 2b 00 f7 d8 64 89 RSP: 002b:00007ffee899d9c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000006 RAX: ffffffffffffffda RBX: 000055ae178d5f00 RCX: 00007fd7524e1335 RDX: 00007ffee899da70 RSI: 00007ffee899da70 RDI: 00007ffee899d9d0 RBP: 00007ffee899db40 R08: 0000000000000040 R09: 0000000000000010 R10: 000055ae178d5f05 R11: 0000000000000246 R12: 00007ffee899db50 R13: 00007ffee899da48 R14: 0000000000000018 R15: 000055ae178d2220 The buggy address belongs to the page: page:00000000ea86fcae refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x13e910 head:00000000ea86fcae 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: ffff88813e917f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88813e917f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88813e918000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88813e918080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88813e918100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================