usb 2-1: received invalid command response:got 60, instead of 0 usb 2-1: restart device (9) usb 2-1: received invalid command response:got 60, instead of 4 ================================================================== BUG: KASAN: stack-out-of-bounds in carl9170_cmd_callback drivers/net/wireless/ath/carl9170/rx.c:153 [inline] BUG: KASAN: stack-out-of-bounds in carl9170_handle_command_response+0x21f/0xc50 drivers/net/wireless/ath/carl9170/rx.c:168 Write of size 60 at addr ffffc90001de7a30 by task kworker/0:0/9 CPU: 0 UID: 0 PID: 9 Comm: kworker/0:0 Not tainted syzkaller #0 PREEMPT(lazy) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x13d/0x4b0 mm/kasan/report.c:482 kasan_report+0xdf/0x1c0 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:186 [inline] kasan_check_range+0x10f/0x1e0 mm/kasan/generic.c:200 __asan_memcpy+0x3c/0x60 mm/kasan/shadow.c:106 carl9170_cmd_callback drivers/net/wireless/ath/carl9170/rx.c:153 [inline] carl9170_handle_command_response+0x21f/0xc50 drivers/net/wireless/ath/carl9170/rx.c:168 carl9170_usb_rx_irq_complete+0xfc/0x1b0 drivers/net/wireless/ath/carl9170/usb.c:307 __usb_hcd_giveback_urb+0x38d/0x610 drivers/usb/core/hcd.c:1657 usb_hcd_giveback_urb+0x3ca/0x4a0 drivers/usb/core/hcd.c:1741 dummy_timer+0xda1/0x36c0 drivers/usb/gadget/udc/dummy_hcd.c:2005 __run_hrtimer kernel/time/hrtimer.c:2032 [inline] __hrtimer_run_queues+0x462/0x9c0 kernel/time/hrtimer.c:2096 hrtimer_run_softirq+0x17d/0x2c0 kernel/time/hrtimer.c:2113 handle_softirqs+0x1dd/0x990 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0x160/0x210 kernel/softirq.c:735 irq_exit_rcu+0x9/0x30 kernel/softirq.c:752 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0x8f/0xb0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 RIP: 0010:__read_once_word_nocheck+0x3/0x10 include/asm-generic/rwonce.h:68 Code: ff ff 48 c7 c7 58 b2 86 87 e8 59 e2 ac 00 e9 1e fa ff ff 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 48 8b 07 cc cc cc cc 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000009f110 EFLAGS: 00000202 RAX: ffffffff821c2ad0 RBX: 0000000000000001 RCX: ffffffff8b5b6982 RDX: ffffc9000009f201 RSI: ffffc9000009f2b0 RDI: ffffc9000009f2b0 RBP: ffffc9000009f1d0 R08: ffffffff8b5b6986 R09: 0000000000000000 R10: ffffc9000009f188 R11: 0000000000009e87 R12: ffffc9000009f1d8 R13: ffffc9000009f188 R14: ffffc9000009f2b8 R15: ffffc9000009f1bc deref_stack_reg arch/x86/kernel/unwind_orc.c:422 [inline] unwind_next_frame+0xd07/0x2090 arch/x86/kernel/unwind_orc.c:614 arch_stack_walk+0x94/0xf0 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x8e/0xc0 kernel/stacktrace.c:122 kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x8f/0xa0 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __do_kmalloc_node mm/slub.c:5362 [inline] __kmalloc_noprof+0x309/0x7c0 mm/slub.c:5387 _kmalloc_noprof include/linux/slab.h:973 [inline] _kzalloc_noprof include/linux/slab.h:1290 [inline] rh_call_control drivers/usb/core/hcd.c:486 [inline] rh_urb_enqueue drivers/usb/core/hcd.c:817 [inline] usb_hcd_submit_urb+0x5e8/0x2150 drivers/usb/core/hcd.c:1538 usb_submit_urb+0x827/0x19b0 drivers/usb/core/urb.c:586 usb_start_wait_urb+0x10e/0x580 drivers/usb/core/message.c:62 usb_internal_control_msg drivers/usb/core/message.c:117 [inline] usb_control_msg+0x328/0x4b0 drivers/usb/core/message.c:167 get_port_status drivers/usb/core/hub.c:607 [inline] hub_ext_port_status+0x152/0x600 drivers/usb/core/hub.c:624 usb_hub_port_status drivers/usb/core/hub.c:674 [inline] hub_port_debounce+0x1a3/0x3f0 drivers/usb/core/hub.c:4705 hub_port_debounce_be_stable drivers/usb/core/hub.h:184 [inline] hub_port_connect drivers/usb/core/hub.c:5419 [inline] hub_port_connect_change drivers/usb/core/hub.c:5707 [inline] port_event drivers/usb/core/hub.c:5871 [inline] hub_event+0x375e/0x4af0 drivers/usb/core/hub.c:5953 process_one_work+0xa23/0x1940 kernel/workqueue.c:3322 process_scheduled_works kernel/workqueue.c:3405 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3486 kthread+0x370/0x450 kernel/kthread.c:436 ret_from_fork+0x69a/0xc80 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to a 8-page vmalloc region starting at 0xffffc90001de0000 allocated at kernel_clone+0x176/0x9d0 kernel/fork.c:2746 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x133427 flags: 0x200000000000000(node=0|zone=2) raw: 0200000000000000 0000000000000000 ffffea0004cd09c8 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x29c2(GFP_NOWAIT|__GFP_HIGHMEM|__GFP_IO|__GFP_FS|__GFP_ZERO), pid 2, tgid 2 (kthreadd), ts 62087259954, free_ts 58458192466 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1859 prep_new_page mm/page_alloc.c:1867 [inline] get_page_from_freelist+0xf25/0x3400 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x28f/0x2b90 mm/page_alloc.c:5304 __alloc_pages_noprof+0xb/0x110 mm/page_alloc.c:5338 __alloc_pages_node_noprof include/linux/gfp.h:291 [inline] alloc_pages_node_noprof include/linux/gfp.h:318 [inline] vm_area_alloc_pages mm/vmalloc.c:3669 [inline] __vmalloc_area_node mm/vmalloc.c:3892 [inline] __vmalloc_node_range_noprof+0xe0c/0x1630 mm/vmalloc.c:4082 __vmalloc_node_noprof+0xad/0xf0 mm/vmalloc.c:4143 alloc_thread_stack_node kernel/fork.c:359 [inline] dup_task_struct kernel/fork.c:929 [inline] copy_process+0x7fb/0x7d90 kernel/fork.c:2110 kernel_clone+0x176/0x9d0 kernel/fork.c:2746 kernel_thread+0xdb/0x120 kernel/fork.c:2807 create_kthread kernel/kthread.c:459 [inline] kthreadd+0x498/0x7a0 kernel/kthread.c:817 ret_from_fork+0x69a/0xc80 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 page last free pid 2962 tgid 2962 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1406 [inline] free_pages_prepare+0x558/0xcb0 mm/page_alloc.c:1451 __free_contig_range_common.constprop.0+0x12c/0x230 mm/page_alloc.c:6895 __free_contig_range mm/page_alloc.c:6940 [inline] free_pages_bulk+0x126/0x1f0 mm/page_alloc.c:5257 vm_area_free_pages+0xad/0x2b0 mm/vmalloc.c:3439 vfree mm/vmalloc.c:3488 [inline] vfree+0x107/0x750 mm/vmalloc.c:3462 delayed_vfree_work+0x56/0x80 mm/vmalloc.c:3392 process_one_work+0xa23/0x1940 kernel/workqueue.c:3322 process_scheduled_works kernel/workqueue.c:3405 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3486 kthread+0x370/0x450 kernel/kthread.c:436 ret_from_fork+0x69a/0xc80 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffffc90001de7900: f1 f1 00 00 00 f3 f3 f3 f3 f3 00 00 00 00 00 00 ffffc90001de7980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90001de7a00: f1 f1 f1 f1 f1 f1 04 f2 04 f3 f3 f3 00 00 00 00 ^ ffffc90001de7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90001de7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 48 c7 c7 58 b2 86 87 mov $0xffffffff8786b258,%rdi 7: e8 59 e2 ac 00 call 0xace265 c: e9 1e fa ff ff jmp 0xfffffa2f 11: 0f 1f 40 00 nopl 0x0(%rax) 15: 90 nop 16: 90 nop 17: 90 nop 18: 90 nop 19: 90 nop 1a: 90 nop 1b: 90 nop 1c: 90 nop 1d: 90 nop 1e: 90 nop 1f: 90 nop 20: 90 nop 21: 90 nop 22: 90 nop 23: 90 nop 24: 90 nop 25: 48 8b 07 mov (%rdi),%rax * 28: c3 ret <-- trapping instruction 29: cc int3 2a: cc int3 2b: cc int3 2c: cc int3 2d: 0f 1f 84 00 00 00 00 nopl 0x0(%rax,%rax,1) 34: 00 35: 90 nop 36: 90 nop 37: 90 nop 38: 90 nop 39: 90 nop 3a: 90 nop 3b: 90 nop 3c: 90 nop 3d: 90 nop