==================================================================
BUG: KASAN: slab-out-of-bounds in mcp2221_raw_event+0x10b0/0x12a0 drivers/hid/hid-mcp2221.c:964
Read of size 1 at addr ffff8880b2b67fff by task kworker/u8:6/19034
CPU: 0 UID: 0 PID: 19034 Comm: kworker/u8:6 Tainted: G L syzkaller #0 PREEMPT(full)
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
Workqueue: iou_exit io_ring_exit_work
Call Trace:
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
print_address_description+0x55/0x1e0 mm/kasan/report.c:378
print_report+0x58/0x70 mm/kasan/report.c:482
kasan_report+0x117/0x150 mm/kasan/report.c:595
mcp2221_raw_event+0x10b0/0x12a0 drivers/hid/hid-mcp2221.c:964
__hid_input_report+0x428/0x590 drivers/hid/hid-core.c:2161
hid_irq_in+0x495/0x710 drivers/hid/usbhid/hid-core.c:286
__usb_hcd_giveback_urb+0x376/0x540 drivers/usb/core/hcd.c:1655
dummy_timer+0xbc0/0x4650 drivers/usb/gadget/udc/dummy_hcd.c:2005
__run_hrtimer kernel/time/hrtimer.c:1930 [inline]
__hrtimer_run_queues+0x3c0/0xa20 kernel/time/hrtimer.c:1994
hrtimer_run_softirq+0x17a/0x240 kernel/time/hrtimer.c:2011
handle_softirqs+0x22a/0x840 kernel/softirq.c:622
__do_softirq kernel/softirq.c:656 [inline]
invoke_softirq kernel/softirq.c:496 [inline]
__irq_exit_rcu+0xca/0x220 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+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1061
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:179 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0x47/0x80 kernel/locking/spinlock.c:198
Code: f7 e8 9d 38 f8 f5 f7 c3 00 02 00 00 74 05 e8 d0 d2 23 f6 9c 58 a9 00 02 00 00 75 27 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 b4 b7 e9 f5 65 8b 05 ad 2e 8e 07 85 c0 74 18 5b 41 5e e9 51 48
RSP: 0018:ffffc90005faf780 EFLAGS: 00000206
RAX: 0000000000000002 RBX: 0000000000000296 RCX: 0000000080000001
RDX: 0000000000000006 RSI: ffffffff8dfa4398 RDI: 0000000000000001
RBP: 0000000000000000 R08: ffffffff90302af7 R09: 1ffffffff206055e
R10: dffffc0000000000 R11: fffffbfff206055f R12: ffff8880677437b8
R13: ffff8880677437a8 R14: ffffffff9a6ed260 R15: 1ffff1100cee86f7
debug_object_activate+0x320/0x580 lib/debugobjects.c:863
debug_rcu_head_queue kernel/rcu/rcu.h:236 [inline]
__call_rcu_common kernel/rcu/tree.c:3116 [inline]
call_rcu+0x43/0x890 kernel/rcu/tree.c:3251
slab_free_hook mm/slub.c:2653 [inline]
slab_free mm/slub.c:6251 [inline]
kmem_cache_free+0x462/0x650 mm/slub.c:6378
__io_req_caches_free+0x1c1/0x270 io_uring/io_uring.c:2152
io_req_caches_free+0x1c/0x40 io_uring/io_uring.c:2164
io_ring_exit_work+0x42f/0x980 io_uring/io_uring.c:2366
process_one_work kernel/workqueue.c:3314 [inline]
process_scheduled_works+0xb5d/0x1860 kernel/workqueue.c:3397
worker_thread+0xa53/0xfc0 kernel/workqueue.c:3478
kthread+0x389/0x470 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Allocated by task 19917:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:78
unpoison_slab_object mm/kasan/common.c:340 [inline]
__kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:366
kasan_slab_alloc include/linux/kasan.h:253 [inline]
slab_post_alloc_hook mm/slub.c:4570 [inline]
kmem_cache_alloc_bulk_noprof+0x55e/0x7c0 mm/slub.c:7385
__io_alloc_req_refill+0xb4/0x360 io_uring/io_uring.c:983
io_alloc_req io_uring/io_uring.h:535 [inline]
io_submit_sqes+0xe51/0x22e0 io_uring/io_uring.c:2050
__do_sys_io_uring_enter io_uring/io_uring.c:2651 [inline]
__se_sys_io_uring_enter+0x341/0x1c40 io_uring/io_uring.c:2600
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
The buggy address belongs to the object at ffff8880b2b67dc0
which belongs to the cache io_kiocb of size 248
The buggy address is located 327 bytes to the right of
allocated 248-byte region [ffff8880b2b67dc0, ffff8880b2b67eb8)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xb2b67
memcg:ffff8880b2b67f01
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000000 ffff88801f3a58c0 dead000000000100 dead000000000122
raw: 0000000000000000 00000008000c000c 00000000f5000000 ffff8880b2b67f01
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x52cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 19917, tgid 19916 (syz.5.4570), ts 887291688866, free_ts 857438820953
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x22d/0x280 mm/page_alloc.c:1853
prep_new_page mm/page_alloc.c:1861 [inline]
get_page_from_freelist+0x2593/0x2610 mm/page_alloc.c:3941
__alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5221
alloc_slab_page mm/slub.c:3278 [inline]
allocate_slab+0x77/0x660 mm/slub.c:3467
new_slab mm/slub.c:3525 [inline]
refill_objects+0x339/0x3d0 mm/slub.c:7272
__kmem_cache_alloc_bulk+0x3c/0x1a0 mm/slub.c:7309
kmem_cache_alloc_bulk_noprof+0x4c7/0x7c0 mm/slub.c:7361
__io_alloc_req_refill+0xb4/0x360 io_uring/io_uring.c:983
io_alloc_req io_uring/io_uring.h:535 [inline]
io_submit_sqes+0xe51/0x22e0 io_uring/io_uring.c:2050
__do_sys_io_uring_enter io_uring/io_uring.c:2651 [inline]
__se_sys_io_uring_enter+0x341/0x1c40 io_uring/io_uring.c:2600
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 15 tgid 15 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
__free_pages_prepare mm/page_alloc.c:1397 [inline]
__free_frozen_pages+0xc1c/0xd30 mm/page_alloc.c:2938
__tlb_remove_table_free mm/mmu_gather.c:228 [inline]
tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:291
rcu_do_batch kernel/rcu/tree.c:2617 [inline]
rcu_core+0x7cd/0x1070 kernel/rcu/tree.c:2869
handle_softirqs+0x22a/0x840 kernel/softirq.c:622
run_ksoftirqd+0x36/0x60 kernel/softirq.c:1076
smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160
kthread+0x389/0x470 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 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:
ffff8880b2b67e80: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc
ffff8880b2b67f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff8880b2b67f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff8880b2b68000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff8880b2b68080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================
----------------
Code disassembly (best guess):
0: f7 e8 imul %eax
2: 9d popf
3: 38 f8 cmp %bh,%al
5: f5 cmc
6: f7 c3 00 02 00 00 test $0x200,%ebx
c: 74 05 je 0x13
e: e8 d0 d2 23 f6 call 0xf623d2e3
13: 9c pushf
14: 58 pop %rax
15: a9 00 02 00 00 test $0x200,%eax
1a: 75 27 jne 0x43
1c: f7 c3 00 02 00 00 test $0x200,%ebx
22: 74 01 je 0x25
24: fb sti
25: bf 01 00 00 00 mov $0x1,%edi
* 2a: e8 b4 b7 e9 f5 call 0xf5e9b7e3 <-- trapping instruction
2f: 65 8b 05 ad 2e 8e 07 mov %gs:0x78e2ead(%rip),%eax # 0x78e2ee3
36: 85 c0 test %eax,%eax
38: 74 18 je 0x52
3a: 5b pop %rbx
3b: 41 5e pop %r14
3d: e9 .byte 0xe9
3e: 51 push %rcx
3f: 48 rex.W