================================================================== 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 49063 at addr ffff888103800000 by task kworker/0:6/7688 CPU: 0 PID: 7688 Comm: kworker/0:6 Not tainted 5.10.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: usb_hub_wq hub_event 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:__preempt_count_sub arch/x86/include/asm/preempt.h:84 [inline] RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x25/0x40 kernel/locking/spinlock.c:191 Code: 80 00 00 00 00 55 48 89 fd 48 83 c7 18 53 48 89 f3 48 8b 74 24 10 e8 2a a7 89 fb 48 89 ef e8 c2 64 8a fb f6 c7 02 75 0c 53 9d <65> ff 0d 94 3e 65 7a 5b 5d c3 e8 4c c2 a7 fb eb ed 66 2e 0f 1f 84 RSP: 0018:ffffc900005d7700 EFLAGS: 00000246 RAX: 000000000077374b RBX: 0000000000000246 RCX: ffffffff8125c797 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff859cb074 RBP: ffff88810b7f2908 R08: 0000000000000001 R09: ffffffff898c84ef R10: fffffbfff131909d R11: 0000000000000000 R12: 0000000000000000 R13: ffff88810b7f4028 R14: ffff88810b7f2828 R15: ffff88810b7f4000 __led_set_brightness drivers/leds/led-core.c:48 [inline] led_set_brightness_nopm drivers/leds/led-core.c:275 [inline] led_set_brightness_nosleep+0xe6/0x1a0 drivers/leds/led-core.c:292 led_set_brightness+0x134/0x170 drivers/leds/led-core.c:267 led_classdev_unregister.part.0+0xa2/0x270 drivers/leds/led-class.c:452 led_classdev_unregister+0x58/0x70 include/linux/err.h:41 xpad_led_disconnect drivers/input/joystick/xpad.c:1468 [inline] xpad_deinit_input drivers/input/joystick/xpad.c:1609 [inline] xpad_deinit_input drivers/input/joystick/xpad.c:1605 [inline] xpad_disconnect+0x376/0x530 drivers/input/joystick/xpad.c:1863 usb_unbind_interface+0x1d8/0x8d0 drivers/usb/core/driver.c:458 __device_release_driver+0x3bd/0x6f0 drivers/base/dd.c:1154 device_release_driver_internal drivers/base/dd.c:1185 [inline] device_release_driver+0x26/0x40 drivers/base/dd.c:1208 bus_remove_device+0x2eb/0x5a0 drivers/base/bus.c:533 device_del+0x502/0xec0 drivers/base/core.c:3115 usb_disable_device+0x35b/0x7b0 drivers/usb/core/message.c:1417 usb_disconnect.cold+0x27d/0x780 drivers/usb/core/hub.c:2218 hub_port_connect drivers/usb/core/hub.c:5074 [inline] hub_port_connect_change drivers/usb/core/hub.c:5363 [inline] port_event drivers/usb/core/hub.c:5509 [inline] hub_event+0x1c8a/0x42d0 drivers/usb/core/hub.c:5591 process_one_work+0x933/0x1520 kernel/workqueue.c:2272 worker_thread+0x64c/0x1120 kernel/workqueue.c:2418 kthread+0x38c/0x460 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 The buggy address belongs to the page: page:00000000350541a1 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103800 head:00000000350541a1 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: ffff888103807f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888103807f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888103808000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888103808080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888103808100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================