usb 5-1: received invalid command response:got 14, 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 14 at addr ffffc9000367fa30 by task syz-executor/2977 CPU: 1 UID: 0 PID: 2977 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(lazy) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 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:finish_task_switch.isra.0+0x217/0xad0 kernel/sched/core.c:5361 Code: 74 08 3c 03 0f 8e 9f 06 00 00 c7 83 40 0d 00 00 00 00 00 00 48 8d 7b 48 e8 16 9a f9 05 e8 91 d1 37 00 fb 49 8d bf 18 16 00 00 <48> b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 0f b6 04 02 84 RSP: 0018:ffffc9000187fb00 EFLAGS: 00000202 RAX: 00000000002dd607 RBX: ffff8881f5739740 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff890f1796 RDI: ffff88812279b418 RBP: ffffc9000187fb40 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff888101ee1e00 R13: ffff888123e60c80 R14: ffff8881f573a480 R15: ffff888122799e00 context_switch kernel/sched/core.c:5513 [inline] __schedule+0x132d/0x47d0 kernel/sched/core.c:7234 __schedule_loop kernel/sched/core.c:7311 [inline] schedule+0xdd/0x2c0 kernel/sched/core.c:7326 do_nanosleep+0x113/0x500 kernel/time/hrtimer.c:2399 hrtimer_nanosleep+0x14f/0x350 kernel/time/hrtimer.c:2445 common_nsleep+0xa1/0xd0 kernel/time/posix-timers.c:1360 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1406 [inline] __se_sys_clock_nanosleep kernel/time/posix-timers.c:1383 [inline] __x64_sys_clock_nanosleep+0x336/0x480 kernel/time/posix-timers.c:1383 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0x7f0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fc4c6989017 Code: 48 89 fa 4c 89 df e8 a8 56 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff RSP: 002b:00007ffe63317120 EFLAGS: 00000202 ORIG_RAX: 00000000000000e6 RAX: ffffffffffffffda RBX: 0000555565e67500 RCX: 00007fc4c6989017 RDX: 00007ffe63317160 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007ffe633171cc R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000001388 R13: 00000000000927c0 R14: 00000000000e64ec R15: 00007ffe63317220 The buggy address belongs to a vmalloc virtual mapping The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10dfaf flags: 0x200000000000000(node=0|zone=2) raw: 0200000000000000 ffffea000437ebc8 ffffea000437ebc8 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 166, tgid 166 (kworker/u8:6), ts 9824377202, free_ts 0 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_mpol+0xe8/0x410 mm/mempolicy.c:2490 alloc_pages_noprof+0x1a/0x160 mm/mempolicy.c:2581 vm_area_alloc_pages mm/vmalloc.c:3667 [inline] __vmalloc_area_node mm/vmalloc.c:3892 [inline] __vmalloc_node_range_noprof+0xf9a/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/0x7dd0 kernel/fork.c:2115 kernel_clone+0x176/0x9d0 kernel/fork.c:2748 user_mode_thread+0xcc/0x110 kernel/fork.c:2824 call_usermodehelper_exec_work kernel/umh.c:171 [inline] call_usermodehelper_exec_work+0xcb/0x180 kernel/umh.c:157 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 page_owner free stack trace missing Memory state around the buggy address: ffffc9000367f900: f1 f1 00 00 00 f3 f3 f3 f3 f3 00 00 00 00 00 00 ffffc9000367f980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc9000367fa00: f1 f1 f1 f1 f1 f1 04 f2 04 f3 f3 f3 00 00 00 00 ^ ffffc9000367fa80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc9000367fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess): 0: 74 08 je 0xa 2: 3c 03 cmp $0x3,%al 4: 0f 8e 9f 06 00 00 jle 0x6a9 a: c7 83 40 0d 00 00 00 movl $0x0,0xd40(%rbx) 11: 00 00 00 14: 48 8d 7b 48 lea 0x48(%rbx),%rdi 18: e8 16 9a f9 05 call 0x5f99a33 1d: e8 91 d1 37 00 call 0x37d1b3 22: fb sti 23: 49 8d bf 18 16 00 00 lea 0x1618(%r15),%rdi * 2a: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax <-- trapping instruction 31: fc ff df 34: 48 89 fa mov %rdi,%rdx 37: 48 c1 ea 03 shr $0x3,%rdx 3b: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax 3f: 84 .byte 0x84