================================================================== BUG: KASAN: slab-out-of-bounds in mcp2221_raw_event+0x110d/0x1140 drivers/hid/hid-mcp2221.c:975 Read of size 1 at addr ffff88811cafbfff by task syz-executor/2977 CPU: 0 UID: 0 PID: 2977 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(lazy) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/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 mcp2221_raw_event+0x110d/0x1140 drivers/hid/hid-mcp2221.c:975 __hid_input_report.constprop.0+0x319/0x470 drivers/hid/hid-core.c:2175 hid_irq_in+0x55d/0x710 drivers/hid/usbhid/hid-core.c:287 __usb_hcd_giveback_urb+0x38e/0x610 drivers/usb/core/hcd.c:1657 usb_hcd_giveback_urb+0x3ca/0x4a0 drivers/usb/core/hcd.c:1741 dummy_timer+0xdaf/0x3820 drivers/usb/gadget/udc/dummy_hcd.c:2023 __run_hrtimer kernel/time/hrtimer.c:2074 [inline] __hrtimer_run_queues+0x462/0x9c0 kernel/time/hrtimer.c:2131 hrtimer_run_softirq+0x1ca/0x360 kernel/time/hrtimer.c:2148 handle_softirqs+0x1d9/0x9b0 kernel/softirq.c:645 __do_softirq kernel/softirq.c:679 [inline] invoke_softirq kernel/softirq.c:519 [inline] __irq_exit_rcu+0x168/0x210 kernel/softirq.c:758 irq_exit_rcu+0x9/0x30 kernel/softirq.c:775 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+0x214/0xad0 kernel/sched/core.c:5384 Code: 74 08 3c 03 0f 8e aa 06 00 00 c7 83 40 0d 00 00 00 00 00 00 48 8d 7b 48 e8 49 97 07 06 e8 44 82 38 00 fb 49 8d bf 38 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:ffffc900005e7b08 EFLAGS: 00000202 RAX: 0000000000046515 RBX: ffff8881f5639e40 RCX: 0000000000000000 RDX: 0000000000000001 RSI: ffffffff892df1e1 RDI: ffff888111a0d2b8 RBP: ffffc900005e7b48 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff88811ddc5ac0 R13: 0000000000000000 R14: ffff8881f563ab80 R15: ffff888111a0bc80 context_switch kernel/sched/core.c:5536 [inline] __schedule+0x132d/0x47e0 kernel/sched/core.c:7284 __schedule_loop kernel/sched/core.c:7361 [inline] schedule+0xdd/0x2c0 kernel/sched/core.c:7376 do_nanosleep+0x113/0x500 kernel/time/hrtimer.c:2436 hrtimer_nanosleep+0x14f/0x350 kernel/time/hrtimer.c:2482 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:61 [inline] do_syscall_64+0x119/0x710 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd811459357 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:00007ffe0b037d10 EFLAGS: 00000202 ORIG_RAX: 00000000000000e6 RAX: ffffffffffffffda RBX: 000055558ca29500 RCX: 00007fd811459357 RDX: 00007ffe0b037d50 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007ffe0b037dbc R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000001388 R13: 00000000000927c0 R14: 0000000000028c2f R15: 00007ffe0b037e10 Allocated by task 5243: 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:351 [inline] __kasan_slab_alloc+0x6e/0x70 mm/kasan/common.c:377 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4683 [inline] slab_alloc_node mm/slub.c:4996 [inline] kmem_cache_alloc_noprof+0x264/0x650 mm/slub.c:5010 kmem_alloc_batch+0x49/0x170 lib/debugobjects.c:371 fill_pool lib/debugobjects.c:420 [inline] debug_objects_fill_pool lib/debugobjects.c:780 [inline] debug_objects_fill_pool+0x24d/0x590 lib/debugobjects.c:758 debug_object_assert_init+0x101/0x310 lib/debugobjects.c:1066 debug_hrtimer_assert_init kernel/time/hrtimer.c:496 [inline] hrtimer_start_range_ns+0x4e/0x460 kernel/time/hrtimer.c:1533 hrtimer_start include/linux/hrtimer.h:222 [inline] dummy_timer+0x21ac/0x3820 drivers/usb/gadget/udc/dummy_hcd.c:2036 __run_hrtimer kernel/time/hrtimer.c:2074 [inline] __hrtimer_run_queues+0x462/0x9c0 kernel/time/hrtimer.c:2131 hrtimer_run_softirq+0x1ca/0x360 kernel/time/hrtimer.c:2148 handle_softirqs+0x1d9/0x9b0 kernel/softirq.c:645 __do_softirq kernel/softirq.c:679 [inline] invoke_softirq kernel/softirq.c:519 [inline] __irq_exit_rcu+0x168/0x210 kernel/softirq.c:758 irq_exit_rcu+0x9/0x30 kernel/softirq.c:775 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 The buggy address belongs to the object at ffff88811cafbfc0 which belongs to the cache debug_objects_cache of size 40 The buggy address is located 23 bytes to the right of allocated 40-byte region [ffff88811cafbfc0, ffff88811cafbfe8) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11cafb flags: 0x200000000000000(node=0|zone=2) page_type: f5(slab) raw: 0200000000000000 ffff88810004b8c0 dead000000000100 dead000000000122 raw: 0000000000000000 0000000200490049 00000000f5000000 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 0x52020(__GFP_HIGH|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 2865, tgid 2865 (udevd), ts 103142688920 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1871 prep_new_page mm/page_alloc.c:1879 [inline] get_page_from_freelist+0xf4b/0x3440 mm/page_alloc.c:3943 __alloc_frozen_pages_noprof+0x2d7/0x2f70 mm/page_alloc.c:5436 alloc_pages_mpol+0xeb/0x420 mm/mempolicy.c:2486 alloc_slab_page mm/slub.c:3345 [inline] allocate_slab mm/slub.c:3462 [inline] new_slab+0x407/0x6e0 mm/slub.c:3513 ___slab_alloc+0x2a1/0x810 mm/slub.c:4568 slab_alloc_node mm/slub.c:4987 [inline] kmem_cache_alloc_noprof+0x34a/0x650 mm/slub.c:5010 kmem_alloc_batch+0x49/0x170 lib/debugobjects.c:371 fill_pool lib/debugobjects.c:420 [inline] debug_objects_fill_pool lib/debugobjects.c:780 [inline] debug_objects_fill_pool+0x24d/0x590 lib/debugobjects.c:758 debug_object_activate+0x103/0x4b0 lib/debugobjects.c:869 debug_rcu_head_queue kernel/rcu/rcu.h:245 [inline] __call_rcu_common.constprop.0+0x35/0x9b0 kernel/rcu/tree.c:3166 dentry_free+0x152/0x2c0 fs/dcache.c:450 dentry_kill+0x5e8/0xc20 fs/dcache.c:845 finish_dput fs/dcache.c:1001 [inline] dput.part.0+0xd7/0x240 fs/dcache.c:1042 dput+0x1f/0x30 fs/dcache.c:1037 end_dirop fs/namei.c:2956 [inline] filename_unlinkat+0x3b0/0x700 fs/namei.c:5722 page last free pid 23 tgid 23 ts 103109363609 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1418 [inline] __free_frozen_pages+0x714/0xfc0 mm/page_alloc.c:2962 rcu_do_batch kernel/rcu/tree.c:2650 [inline] rcu_core+0x5f0/0x1260 kernel/rcu/tree.c:2919 handle_softirqs+0x1d9/0x9b0 kernel/softirq.c:645 run_ksoftirqd kernel/softirq.c:1099 [inline] run_ksoftirqd+0x38/0x60 kernel/softirq.c:1091 smpboot_thread_fn+0x3d3/0xab0 kernel/smpboot.c:160 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x69f/0xc90 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: ffff88811cafbe80: 00 00 00 fc fc 00 00 00 00 00 fc fc 00 00 00 00 ffff88811cafbf00: 00 fc fc 00 00 00 00 00 fc fc 00 00 00 00 00 fc >ffff88811cafbf80: fc 00 00 00 00 00 fc fc 00 00 00 00 00 fc fc fc ^ ffff88811cafc000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811cafc080: 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 aa 06 00 00 jle 0x6b4 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 49 97 07 06 call 0x6079766 1d: e8 44 82 38 00 call 0x388266 22: fb sti 23: 49 8d bf 38 16 00 00 lea 0x1638(%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