aiptek 7-1:17.0: aiptek_irq - usb_submit_urb failed with result -19
==================================================================
BUG: KASAN: slab-out-of-bounds in mcp2221_raw_event+0x1070/0x10a0 drivers/hid/hid-mcp2221.c:948
Read of size 1 at addr ffff888079d0ffff by task syz.0.1106/10566
CPU: 0 UID: 0 PID: 10566 Comm: syz.0.1106 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120
print_address_description mm/kasan/report.c:378 [inline]
print_report+0xcd/0x630 mm/kasan/report.c:482
kasan_report+0xe0/0x110 mm/kasan/report.c:595
mcp2221_raw_event+0x1070/0x10a0 drivers/hid/hid-mcp2221.c:948
__hid_input_report.constprop.0+0x314/0x450 drivers/hid/hid-core.c:2139
hid_irq_in+0x35e/0x870 drivers/hid/usbhid/hid-core.c:286
__usb_hcd_giveback_urb+0x38b/0x610 drivers/usb/core/hcd.c:1661
usb_hcd_giveback_urb+0x39b/0x450 drivers/usb/core/hcd.c:1745
dummy_timer+0x1809/0x3a00 drivers/usb/gadget/udc/dummy_hcd.c:1995
__run_hrtimer kernel/time/hrtimer.c:1777 [inline]
__hrtimer_run_queues+0x202/0xad0 kernel/time/hrtimer.c:1841
hrtimer_run_softirq+0x17d/0x350 kernel/time/hrtimer.c:1858
handle_softirqs+0x219/0x8e0 kernel/softirq.c:622
__do_softirq kernel/softirq.c:656 [inline]
invoke_softirq kernel/softirq.c:496 [inline]
__irq_exit_rcu+0x109/0x170 kernel/softirq.c:723
irq_exit_rcu+0x9/0x30 kernel/softirq.c:739
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1052 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1052
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697
RIP: 0010:preempt_schedule_irq+0x4c/0x90 kernel/sched/core.c:7256
Code: df 55 65 48 8b 2d ac e2 3f 08 53 48 89 eb 48 c1 eb 03 48 01 c3 bf 01 00 00 00 e8 5f 38 28 f6 e8 ba 8f 63 f6 fb bf 01 00 00 00 af 99 ff ff 9c 58 fa f6 c4 02 75 1e bf 01 00 00 00 e8 4d c3 27
RSP: 0000:ffffc9000457fe58 EFLAGS: 00000206
RAX: 000000000000300f RBX: ffffed100b624920 RCX: ffffffff81c50c3f
RDX: 0000000000000000 RSI: ffffffff8da2a259 RDI: 0000000000000001
RBP: ffff88805b124900 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff9081f6d7 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
irqentry_exit+0x36/0x90 kernel/entry/common.c:211
asm_sysvec_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:exit_to_user_mode_loop kernel/entry/common.c:30 [inline]
RIP: 0010:exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline]
RIP: 0010:irqentry_exit_to_user_mode+0x15a/0x310 kernel/entry/common.c:73
Code: 85 2e 01 00 00 e8 d6 0f 00 00 65 48 8b 05 c6 14 41 08 48 8b 18 f7 c3 37 03 00 00 0f 84 f3 fe ff ff e8 da c1 64 f6 fb f6 c3 30 <75> b9 f6 c7 01 74 be 4c 89 e7 e8 57 f3 92 f6 f6 c3 06 74 b6 4c 89
RSP: 0000:ffffc9000457ff28 EFLAGS: 00000202
RAX: 000000000000300d RBX: 0000000000000010 RCX: ffffffff81c50c3f
RDX: 0000000000000000 RSI: ffffffff8da2a259 RDI: ffffffff8bf06e40
RBP: ffff88805b124900 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff9081f6d7 R11: 0000000000000000 R12: ffffc9000457ff48
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
asm_sysvec_call_function_single+0x1a/0x20 arch/x86/include/asm/idtentry.h:704
RIP: 0033:0x7fb729c68210
Code: 72 48 39 f0 0f 82 b9 00 00 00 48 39 f2 72 6e 41 0f 11 0c 24 48 8b 77 f8 48 89 f8 48 89 eb eb 12 66 2e 0f 1f 84 00 00 00 00 00 <48> 8b 4b 08 48 83 c3 08 48 39 d1 72 f3 48 83 e8 08 48 39 f2 73 17
RSP: 002b:00007fff44a8f150 EFLAGS: 00000287
RAX: 00007fb729013378 RBX: 00007fb7290126c0 RCX: ffffffff8461d51d
RDX: ffffffff8461d70b RSI: ffffffff8461d51d RDI: 00007fb729013790
RBP: 00007fb729011810 R08: 00007fb7290127c8 R09: 00007fb729fd2000
R10: 00007fb728ffb008 R11: 000000000000000d R12: 00007fb729011808
R13: 0000000000000015 R14: 00007fff44a8f2a8 R15: 00007fb728ffb008
Allocated by task 5812:
kasan_save_stack+0x33/0x60 mm/kasan/common.c:56
kasan_save_track+0x14/0x30 mm/kasan/common.c:77
unpoison_slab_object mm/kasan/common.c:342 [inline]
__kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:368
kasan_slab_alloc include/linux/kasan.h:252 [inline]
slab_post_alloc_hook mm/slub.c:4970 [inline]
slab_alloc_node mm/slub.c:5280 [inline]
kmem_cache_alloc_noprof+0x250/0x6e0 mm/slub.c:5287
getname_flags.part.0+0x4c/0x550 fs/namei.c:146
getname_flags+0x93/0xf0 include/linux/audit.h:345
user_path_at+0x24/0x60 fs/namei.c:3214
ksys_umount fs/namespace.c:2061 [inline]
__do_sys_umount fs/namespace.c:2069 [inline]
__se_sys_umount fs/namespace.c:2067 [inline]
__x64_sys_umount+0x10a/0x1a0 fs/namespace.c:2067
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Freed by task 5812:
kasan_save_stack+0x33/0x60 mm/kasan/common.c:56
kasan_save_track+0x14/0x30 mm/kasan/common.c:77
__kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:587
kasan_save_free_info mm/kasan/kasan.h:406 [inline]
poison_slab_object mm/kasan/common.c:252 [inline]
__kasan_slab_free+0x5f/0x80 mm/kasan/common.c:284
kasan_slab_free include/linux/kasan.h:234 [inline]
slab_free_hook mm/slub.c:2539 [inline]
slab_free mm/slub.c:6630 [inline]
kmem_cache_free+0x2d4/0x6c0 mm/slub.c:6740
putname+0x154/0x1a0 fs/namei.c:297
user_path_at+0x44/0x60 fs/namei.c:3217
ksys_umount fs/namespace.c:2061 [inline]
__do_sys_umount fs/namespace.c:2069 [inline]
__se_sys_umount fs/namespace.c:2067 [inline]
__x64_sys_umount+0x10a/0x1a0 fs/namespace.c:2067
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
The buggy address belongs to the object at ffff888079d0e600
which belongs to the cache names_cache of size 4096
The buggy address is located 2559 bytes to the right of
allocated 4096-byte region [ffff888079d0e600, ffff888079d0f600)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x79d08
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
anon flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000040 ffff888140436140 0000000000000000 dead000000000001
raw: 0000000000000000 0000000000070007 00000000f5000000 0000000000000000
head: 00fff00000000040 ffff888140436140 0000000000000000 dead000000000001
head: 0000000000000000 0000000000070007 00000000f5000000 0000000000000000
head: 00fff00000000003 ffffea0001e74201 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 5478, tgid 5478 (dhcpcd), ts 271781012694, free_ts 271779023005
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1850
prep_new_page mm/page_alloc.c:1858 [inline]
get_page_from_freelist+0x10a3/0x3a30 mm/page_alloc.c:3884
__alloc_frozen_pages_noprof+0x25f/0x2470 mm/page_alloc.c:5183
alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2416
alloc_slab_page mm/slub.c:3055 [inline]
allocate_slab mm/slub.c:3228 [inline]
new_slab+0x24a/0x360 mm/slub.c:3282
___slab_alloc+0xdae/0x1a60 mm/slub.c:4651
__slab_alloc.constprop.0+0x63/0x110 mm/slub.c:4770
__slab_alloc_node mm/slub.c:4846 [inline]
slab_alloc_node mm/slub.c:5268 [inline]
kmem_cache_alloc_noprof+0x43f/0x6e0 mm/slub.c:5287
getname_flags.part.0+0x4c/0x550 fs/namei.c:146
getname_flags+0x93/0xf0 include/linux/audit.h:345
getname include/linux/fs.h:2922 [inline]
do_sys_openat2+0xb8/0x1d0 fs/open.c:1431
do_sys_open fs/open.c:1452 [inline]
__do_sys_openat fs/open.c:1468 [inline]
__se_sys_openat fs/open.c:1463 [inline]
__x64_sys_openat+0x174/0x210 fs/open.c:1463
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 10028 tgid 10027 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1394 [inline]
__free_frozen_pages+0x7df/0x1160 mm/page_alloc.c:2906
bpf_check+0x911/0xb710 kernel/bpf/verifier.c:24783
bpf_prog_load+0x112e/0x2850 kernel/bpf/syscall.c:3077
__sys_bpf+0x3e72/0x4980 kernel/bpf/syscall.c:6149
__do_sys_bpf kernel/bpf/syscall.c:6259 [inline]
__se_sys_bpf kernel/bpf/syscall.c:6257 [inline]
__x64_sys_bpf+0x78/0xc0 kernel/bpf/syscall.c:6257
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Memory state around the buggy address:
ffff888079d0fe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff888079d0ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888079d0ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff888079d10000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff888079d10080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================
----------------
Code disassembly (best guess):
0: df 55 65 fists 0x65(%rbp)
3: 48 8b 2d ac e2 3f 08 mov 0x83fe2ac(%rip),%rbp # 0x83fe2b6
a: 53 push %rbx
b: 48 89 eb mov %rbp,%rbx
e: 48 c1 eb 03 shr $0x3,%rbx
12: 48 01 c3 add %rax,%rbx
15: bf 01 00 00 00 mov $0x1,%edi
1a: e8 5f 38 28 f6 call 0xf628387e
1f: e8 ba 8f 63 f6 call 0xf6638fde
24: fb sti
25: bf 01 00 00 00 mov $0x1,%edi
* 2a: e8 af 99 ff ff call 0xffff99de <-- trapping instruction
2f: 9c pushf
30: 58 pop %rax
31: fa cli
32: f6 c4 02 test $0x2,%ah
35: 75 1e jne 0x55
37: bf 01 00 00 00 mov $0x1,%edi
3c: e8 .byte 0xe8
3d: 4d c3 rex.WRB ret
3f: 27 (bad)