================================================================== BUG: KASAN: slab-out-of-bounds in mcp2221_raw_event+0x1070/0x10a0 drivers/hid/hid-mcp2221.c:948 Read of size 1 at addr ffff888125047fff by task syz.6.4487/32227 CPU: 1 UID: 0 PID: 32227 Comm: syz.6.4487 Not tainted syzkaller #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/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+0x311/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+0x1ff/0xad0 kernel/time/hrtimer.c:1841 hrtimer_run_softirq+0x17d/0x350 kernel/time/hrtimer.c:1858 handle_softirqs+0x205/0x8d0 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xfa/0x160 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+0x90/0xb0 arch/x86/kernel/apic/apic.c:1052 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:get_current arch/x86/include/asm/current.h:25 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x8/0x70 kernel/kcov.c:216 Code: e9 7d df 57 00 be 03 00 00 00 5b e9 02 a4 0b 01 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 8b 34 24 <65> 48 8b 15 a8 6a 19 0b 65 8b 05 b9 6a 19 0b a9 00 01 ff 00 74 1d RSP: 0018:ffffc900096ffd18 EFLAGS: 00000283 RAX: 00000000000000e9 RBX: 0000000000000001 RCX: ffffc900029ad000 RDX: 0000000000080000 RSI: ffffffff816b11fe RDI: ffffc900096ffd78 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff8aa0cfd7 R11: 0000000000000000 R12: ffffc900096ffd78 R13: 0000000000000001 R14: 000000000bebc200 R15: dffffc0000000000 trace_hrtimer_setup+0x1e/0x220 include/trace/events/timer.h:193 debug_setup_on_stack kernel/time/hrtimer.c:471 [inline] hrtimer_setup_sleeper_on_stack kernel/time/hrtimer.c:2083 [inline] hrtimer_nanosleep+0xae/0x380 kernel/time/hrtimer.c:2161 common_nsleep+0xa1/0xd0 kernel/time/posix-timers.c:1352 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1398 [inline] __se_sys_clock_nanosleep kernel/time/posix-timers.c:1375 [inline] __x64_sys_clock_nanosleep+0x34d/0x4a0 kernel/time/posix-timers.c:1375 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4d0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fdb259c1785 Code: 24 0c 89 3c 24 48 89 4c 24 18 e8 f6 54 ff ff 4c 8b 54 24 18 48 8b 54 24 10 41 89 c0 8b 74 24 0c 8b 3c 24 b8 e6 00 00 00 0f 05 <44> 89 c7 48 89 04 24 e8 4f 55 ff ff 48 8b 04 24 48 83 c4 28 f7 d8 RSP: 002b:00007fdb243edf60 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007fdb259c1785 RDX: 00007fdb243edfa0 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000200000000040 R13: 0000000000000000 R14: 00007fdb25be5fa0 R15: 00007ffd6e79e408 Allocated by task 26080: 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+0x6e/0x70 mm/kasan/common.c:368 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4947 [inline] slab_alloc_node mm/slub.c:5246 [inline] kmem_cache_alloc_noprof+0x260/0x6c0 mm/slub.c:5253 vm_area_dup+0x25/0x6c0 mm/vma_init.c:123 dup_mmap+0x847/0x2040 mm/mmap.c:1780 dup_mm kernel/fork.c:1489 [inline] copy_mm kernel/fork.c:1541 [inline] copy_process+0x707a/0x75a0 kernel/fork.c:2181 kernel_clone+0xfc/0x930 kernel/fork.c:2609 __do_sys_clone+0xce/0x120 kernel/fork.c:2750 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4d0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888125047dc0 which belongs to the cache vm_area_struct of size 256 The buggy address is located 319 bytes to the right of allocated 256-byte region [ffff888125047dc0, ffff888125047ec0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x125047 memcg:ffff88812c2fda01 flags: 0x200000000000000(node=0|zone=2) page_type: f5(slab) raw: 0200000000000000 ffff8881012a1b40 dead000000000122 0000000000000000 raw: 0000000000000000 00000000000c000c 00000000f5000000 ffff88812c2fda01 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 32210, tgid 32210 (fido_id), ts 2595299401013, free_ts 2587229152339 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+0x1003/0x2dc0 mm/page_alloc.c:3884 __alloc_frozen_pages_noprof+0x259/0x21f0 mm/page_alloc.c:5183 alloc_pages_mpol+0xe4/0x410 mm/mempolicy.c:2416 alloc_slab_page mm/slub.c:3031 [inline] allocate_slab mm/slub.c:3204 [inline] new_slab+0x24a/0x360 mm/slub.c:3258 ___slab_alloc+0xd73/0x1a70 mm/slub.c:4628 __kmem_cache_alloc_bulk+0x1fb/0x6d0 mm/slub.c:7338 refill_sheaf mm/slub.c:2609 [inline] alloc_full_sheaf mm/slub.c:2630 [inline] __pcs_replace_empty_main+0x2aa/0x430 mm/slub.c:5023 alloc_from_pcs mm/slub.c:5111 [inline] slab_alloc_node mm/slub.c:5231 [inline] kmem_cache_alloc_noprof+0x554/0x6c0 mm/slub.c:5253 vm_area_alloc+0x1f/0x160 mm/vma_init.c:32 do_brk_flags+0x296/0x13a0 mm/vma.c:2802 __do_sys_brk+0x6ba/0xa50 mm/mmap.c:194 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4d0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 28697 tgid 28697 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0x78f/0x1000 mm/page_alloc.c:2906 vfree+0x1fd/0xb50 mm/vmalloc.c:3440 delayed_vfree_work+0x56/0x70 mm/vmalloc.c:3359 process_one_work+0x9cc/0x1b70 kernel/workqueue.c:3263 process_scheduled_works kernel/workqueue.c:3346 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3427 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x56a/0x700 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: ffff888125047e80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff888125047f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888125047f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888125048000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888125048080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess): 0: e9 7d df 57 00 jmp 0x57df82 5: be 03 00 00 00 mov $0x3,%esi a: 5b pop %rbx b: e9 02 a4 0b 01 jmp 0x10ba412 10: 66 90 xchg %ax,%ax 12: 90 nop 13: 90 nop 14: 90 nop 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: f3 0f 1e fa endbr64 26: 48 8b 34 24 mov (%rsp),%rsi * 2a: 65 48 8b 15 a8 6a 19 mov %gs:0xb196aa8(%rip),%rdx # 0xb196ada <-- trapping instruction 31: 0b 32: 65 8b 05 b9 6a 19 0b mov %gs:0xb196ab9(%rip),%eax # 0xb196af2 39: a9 00 01 ff 00 test $0xff0100,%eax 3e: 74 1d je 0x5d