usb 4-1: received invalid command response:got 60, instead of 4
usb 4-1: restart device (9)
==================================================================
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 ffffc900001e7a38 by task modprobe/7680
CPU: 1 UID: 0 PID: 7680 Comm: modprobe 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/0x1d0 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:1930 [inline]
__hrtimer_run_queues+0x470/0xa00 kernel/time/hrtimer.c:1994
hrtimer_run_softirq+0x17d/0x2c0 kernel/time/hrtimer.c:2011
handle_softirqs+0x1dd/0x9e0 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:1061 [inline]
sysvec_apic_timer_interrupt+0x8f/0xb0 arch/x86/kernel/apic/apic.c:1061
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697
RIP: 0010:__orc_find+0x92/0xf0 arch/x86/kernel/unwind_orc.c:100
Code: 48 c1 ea 03 0f b6 34 0a 48 89 da 83 e2 07 83 c2 03 40 38 f2 7c 05 40 84 f6 75 4b 48 63 13 48 01 da 49 39 d5 73 af 4c 8d 63 fc <49> 39 ec 73 b2 4d 29 f7 49 c1 ff 02 4b 8d 14 7f 48 8d 04 50 48 83
RSP: 0000:ffffc90003c477d8 EFLAGS: 00000297
RAX: ffffffff8b611cde RBX: ffffffff8b067eb4 RCX: dffffc0000000000
RDX: ffffffff82187398 RSI: 0000000000000000 RDI: ffffffff8b067e88
RBP: ffffffff8b067eb4 R08: ffffffff8b611d4a R09: 0000000000000007
R10: 0000000000000200 R11: 0000000000011873 R12: ffffffff8b067eb0
R13: ffffffff82187383 R14: ffffffff8b067e88 R15: ffffffff8b067eb0
orc_find arch/x86/kernel/unwind_orc.c:238 [inline]
unwind_next_frame+0x2ec/0x2090 arch/x86/kernel/unwind_orc.c:510
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
unpoison_slab_object mm/kasan/common.c:340 [inline]
__kasan_slab_alloc+0x6e/0x70 mm/kasan/common.c:366
kasan_slab_alloc include/linux/kasan.h:253 [inline]
slab_post_alloc_hook mm/slub.c:4570 [inline]
slab_alloc_node mm/slub.c:4899 [inline]
kmem_cache_alloc_noprof+0x2e7/0x6a0 mm/slub.c:4906
anon_vma_chain_alloc mm/rmap.c:142 [inline]
__anon_vma_prepare+0xae/0x5e0 mm/rmap.c:194
__vmf_anon_prepare+0x11f/0x250 mm/memory.c:3829
vmf_anon_prepare mm/internal.h:503 [inline]
do_anonymous_page mm/memory.c:5388 [inline]
do_pte_missing mm/memory.c:4564 [inline]
handle_pte_fault mm/memory.c:6427 [inline]
__handle_mm_fault+0x14ec/0x2780 mm/memory.c:6565
handle_mm_fault+0x37b/0xa30 mm/memory.c:6734
do_user_addr_fault+0x5ae/0x11d0 arch/x86/mm/fault.c:1334
handle_page_fault arch/x86/mm/fault.c:1474 [inline]
exc_page_fault+0x66/0xc0 arch/x86/mm/fault.c:1527
asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:618
RIP: 0033:0x7fda7b2205ca
Code: 14 cd 02 00 4c 8d 2d fb 36 02 00 48 c1 e3 03 48 8d 05 5a 1a 02 00 4c 89 35 eb f4 02 00 c7 05 e1 cc 02 00 00 00 00 00 4d 89 37 <4d> 89 6e 08 49 c7 46 10 00 00 00 00 49 89 46 18 49 c7 46 20 07 00
RSP: 002b:00007ffeb9bc0670 EFLAGS: 00010206
RAX: 00007fda7b242010 RBX: 0000000000000050 RCX: 00007fda7b2100a0
RDX: 0000000000000003 RSI: 0000000000001100 RDI: 0000000000000020
RBP: 00007ffeb9bc06b0 R08: 00007fda7b24e400 R09: 0000000000000000
R10: 0000000000000022 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fda7b243ca6 R14: 00007fda7b210000 R15: 00007fda7b250f50
The buggy address belongs to a 8-page vmalloc region starting at 0xffffc900001e0000 allocated at kernel_clone+0x176/0x9e0 kernel/fork.c:2722
The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a9f
flags: 0x200000000000000(node=0|zone=2)
raw: 0200000000000000 ffffea00040aa7c8 ffffea00040aa7c8 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 2484169009, free_ts 0
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1853
prep_new_page mm/page_alloc.c:1861 [inline]
get_page_from_freelist+0x20a5/0x3850 mm/page_alloc.c:3941
__alloc_frozen_pages_noprof+0x273/0x28a0 mm/page_alloc.c:5221
__alloc_pages_noprof+0xb/0x110 mm/page_alloc.c:5255
__alloc_pages_node_noprof include/linux/gfp.h:289 [inline]
alloc_pages_node_noprof include/linux/gfp.h:316 [inline]
vm_area_alloc_pages mm/vmalloc.c:3655 [inline]
__vmalloc_area_node mm/vmalloc.c:3878 [inline]
__vmalloc_node_range_noprof+0xe0c/0x1630 mm/vmalloc.c:4064
__vmalloc_node_noprof+0xad/0xf0 mm/vmalloc.c:4124
alloc_thread_stack_node kernel/fork.c:357 [inline]
dup_task_struct kernel/fork.c:926 [inline]
copy_process+0x7fb/0x7c70 kernel/fork.c:2090
kernel_clone+0x176/0x9e0 kernel/fork.c:2722
kernel_thread+0xdb/0x120 kernel/fork.c:2783
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_owner free stack trace missing
Memory state around the buggy address:
ffffc900001e7900: f1 f1 f1 00 00 00 f3 f3 f3 f3 f3 00 00 00 00 00
ffffc900001e7980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffffc900001e7a00: 00 f1 f1 f1 f1 f1 f1 04 f2 04 f3 f3 f3 00 00 00
^
ffffc900001e7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffffc900001e7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================
----------------
Code disassembly (best guess):
0: 48 c1 ea 03 shr $0x3,%rdx
4: 0f b6 34 0a movzbl (%rdx,%rcx,1),%esi
8: 48 89 da mov %rbx,%rdx
b: 83 e2 07 and $0x7,%edx
e: 83 c2 03 add $0x3,%edx
11: 40 38 f2 cmp %sil,%dl
14: 7c 05 jl 0x1b
16: 40 84 f6 test %sil,%sil
19: 75 4b jne 0x66
1b: 48 63 13 movslq (%rbx),%rdx
1e: 48 01 da add %rbx,%rdx
21: 49 39 d5 cmp %rdx,%r13
24: 73 af jae 0xffffffd5
26: 4c 8d 63 fc lea -0x4(%rbx),%r12
* 2a: 49 39 ec cmp %rbp,%r12 <-- trapping instruction
2d: 73 b2 jae 0xffffffe1
2f: 4d 29 f7 sub %r14,%r15
32: 49 c1 ff 02 sar $0x2,%r15
36: 4b 8d 14 7f lea (%r15,%r15,2),%rdx
3a: 48 8d 04 50 lea (%rax,%rdx,2),%rax
3e: 48 rex.W
3f: 83 .byte 0x83