================================================================== BUG: KASAN: slab-out-of-bounds in mcp2221_raw_event+0x103c/0x10a0 drivers/hid/hid-mcp2221.c:948 Read of size 1 at addr ffff888134187fff by task syz-executor/2962 CPU: 0 UID: 0 PID: 2962 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 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+0x156/0x4c9 mm/kasan/report.c:482 kasan_report+0xdf/0x1a0 mm/kasan/report.c:595 mcp2221_raw_event+0x103c/0x10a0 drivers/hid/hid-mcp2221.c:948 __hid_input_report.constprop.0+0x314/0x460 drivers/hid/hid-core.c:2139 hid_irq_in+0x52e/0x6b0 drivers/hid/usbhid/hid-core.c:286 __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+0xd85/0x3670 drivers/usb/gadget/udc/dummy_hcd.c:1995 __run_hrtimer kernel/time/hrtimer.c:1777 [inline] __hrtimer_run_queues+0x516/0x990 kernel/time/hrtimer.c:1841 hrtimer_run_softirq+0x17d/0x350 kernel/time/hrtimer.c:1858 handle_softirqs+0x1dd/0x8f0 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xed/0x150 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0x8f/0xb0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 RIP: 0010:finish_task_switch.isra.0+0x160/0x700 kernel/sched/core.c:5118 Code: 8d 7b 18 31 f6 e8 20 d0 0a 00 31 f6 48 89 df e8 d6 f9 ff ff 48 89 df e8 1e c3 d2 05 e8 09 be 35 00 fb 49 8d bc 24 40 15 00 00 <48> b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 0f b6 04 02 5a RSP: 0018:ffffc9000180f560 EFLAGS: 00000206 RAX: 00000000000e4ca9 RBX: ffff8881f56390c0 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff88dec6f5 RDI: ffff888111a31540 RBP: ffffc9000180f5a8 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff888111a30000 R13: ffff888114509d40 R14: 0000000000000000 R15: 0000000000002001 context_switch kernel/sched/core.c:5263 [inline] __schedule+0xeb8/0x3e50 kernel/sched/core.c:6867 preempt_schedule_common+0x42/0xc0 kernel/sched/core.c:7051 __cond_resched+0x22/0x30 kernel/sched/core.c:7378 _cond_resched include/linux/sched.h:2061 [inline] do_select+0x1090/0x1850 fs/select.c:572 core_sys_select+0x55b/0xbb0 fs/select.c:677 do_pselect.constprop.0+0x238/0x270 fs/select.c:759 __do_sys_pselect6 fs/select.c:798 [inline] __se_sys_pselect6 fs/select.c:789 [inline] __x64_sys_pselect6+0x149/0x1c0 fs/select.c:789 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0x570 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f75936b60d7 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:00007ffe4e35e350 EFLAGS: 00000202 ORIG_RAX: 000000000000010e RAX: ffffffffffffffda RBX: 000055556c6b8500 RCX: 00007f75936b60d7 RDX: 0000000000000000 RSI: 00007ffe4e35e470 RDI: 0000000000000023 RBP: 00007ffe4e35e8d0 R08: 00007ffe4e35e390 R09: 00007ffe4e35e3a0 R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffe4e35e710 R13: 00007ffe4e35e500 R14: 585858582e7a7973 R15: 00007ffe4e35e940 Allocated by task 5199: 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:4953 [inline] slab_alloc_node mm/slub.c:5263 [inline] kmem_cache_alloc_noprof+0x266/0x760 mm/slub.c:5270 getname_flags.part.0+0x4c/0x540 fs/namei.c:146 getname_flags include/linux/audit.h:345 [inline] getname include/linux/fs.h:2498 [inline] __do_sys_unlink fs/namei.c:5483 [inline] __se_sys_unlink fs/namei.c:5481 [inline] __x64_sys_unlink+0xb0/0x110 fs/namei.c:5481 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0x570 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 5199: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 kasan_save_free_info+0x3b/0x70 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x43/0x70 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2540 [inline] slab_free mm/slub.c:6670 [inline] kmem_cache_free+0x124/0x6d0 mm/slub.c:6781 putname+0xf5/0x1a0 fs/namei.c:297 do_unlinkat+0x178/0x690 fs/namei.c:5467 __do_sys_unlink fs/namei.c:5483 [inline] __se_sys_unlink fs/namei.c:5481 [inline] __x64_sys_unlink+0xc5/0x110 fs/namei.c:5481 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0x570 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888134186600 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 [ffff888134186600, ffff888134187600) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x134180 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x200000000000040(head|node=0|zone=2) page_type: f5(slab) raw: 0200000000000040 ffff8881012a2000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000070007 00000000f5000000 0000000000000000 head: 0200000000000040 ffff8881012a2000 dead000000000122 0000000000000000 head: 0000000000000000 0000000000070007 00000000f5000000 0000000000000000 head: 0200000000000003 ffffea0004d06001 00000000ffffffff 00000000ffffffff head: 0000000000000000 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 12549, tgid 12549 (dhcpcd-run-hook), ts 1085716370860, free_ts 1085133169179 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1e1/0x250 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0xd57/0x3b20 mm/page_alloc.c:3945 __alloc_frozen_pages_noprof+0x269/0x2230 mm/page_alloc.c:5240 alloc_pages_mpol+0xe8/0x410 mm/mempolicy.c:2486 alloc_slab_page mm/slub.c:3075 [inline] allocate_slab mm/slub.c:3248 [inline] new_slab+0x2c4/0x440 mm/slub.c:3302 ___slab_alloc+0xda3/0x1ca0 mm/slub.c:4656 __slab_alloc.isra.0+0x63/0x110 mm/slub.c:4779 __slab_alloc_node mm/slub.c:4855 [inline] slab_alloc_node mm/slub.c:5251 [inline] kmem_cache_alloc_noprof+0x4ad/0x760 mm/slub.c:5270 getname_flags.part.0+0x4c/0x540 fs/namei.c:146 getname_flags+0x93/0xf0 include/linux/audit.h:345 getname include/linux/fs.h:2498 [inline] getname_maybe_null include/linux/fs.h:2505 [inline] getname_maybe_null include/linux/fs.h:2502 [inline] vfs_fstatat+0xe1/0xf0 fs/stat.c:370 __do_sys_newfstatat+0x9d/0x120 fs/stat.c:542 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0x570 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5199 tgid 5199 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0x7d1/0x1010 mm/page_alloc.c:2973 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x47/0xe0 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x1a0/0x1f0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x4e/0x70 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4953 [inline] slab_alloc_node mm/slub.c:5263 [inline] kmem_cache_alloc_noprof+0x266/0x760 mm/slub.c:5270 getname_flags.part.0+0x4c/0x540 fs/namei.c:146 getname_flags+0x93/0xf0 include/linux/audit.h:345 getname include/linux/fs.h:2498 [inline] do_sys_openat2+0xc5/0x220 fs/open.c:1426 do_sys_open fs/open.c:1436 [inline] __do_sys_openat fs/open.c:1452 [inline] __se_sys_openat fs/open.c:1447 [inline] __x64_sys_openat+0x12d/0x210 fs/open.c:1447 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0x570 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff888134187e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888134187f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888134187f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888134188000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888134188080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess): 0: 8d 7b 18 lea 0x18(%rbx),%edi 3: 31 f6 xor %esi,%esi 5: e8 20 d0 0a 00 call 0xad02a a: 31 f6 xor %esi,%esi c: 48 89 df mov %rbx,%rdi f: e8 d6 f9 ff ff call 0xfffff9ea 14: 48 89 df mov %rbx,%rdi 17: e8 1e c3 d2 05 call 0x5d2c33a 1c: e8 09 be 35 00 call 0x35be2a 21: fb sti 22: 49 8d bc 24 40 15 00 lea 0x1540(%r12),%rdi 29: 00 * 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: 5a pop %rdx