================================================================== BUG: KASAN: slab-out-of-bounds in mcp2221_raw_event+0x103c/0x10a0 drivers/hid/hid-mcp2221.c:948 Read of size 1 at addr ffff88813fb1ffff by task syz.1.1774/11165 CPU: 0 UID: 0 PID: 11165 Comm: syz.1.1774 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:debug_lockdep_rcu_enabled+0xa/0x40 kernel/rcu/update.c:320 Code: 24 04 e8 a9 fa ff ff 8b 44 24 04 eb aa 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 8b 05 2e 71 72 03 <85> c0 74 20 8b 05 e0 7c 72 03 85 c0 74 16 65 48 8b 05 78 df 70 05 RSP: 0018:ffffc900129efb48 EFLAGS: 00000246 RAX: 0000000000000002 RBX: ffff8881f56390c0 RCX: 0000000000000001 RDX: 0000000000000046 RSI: ffffffff88d3784a RDI: ffffffff878a8920 RBP: ffffc900129efc38 R08: 0000000000000000 R09: fffffbfff158bc1a R10: ffffffff8ac5e0d7 R11: 0000000000000000 R12: ffff88810a6f1d40 R13: 0000000000000000 R14: ffffffff8cc5e0c0 R15: 0000000000000000 schedule_debug kernel/sched/core.c:5835 [inline] __schedule+0x200/0x4040 kernel/sched/core.c:6740 __schedule_loop kernel/sched/core.c:6945 [inline] schedule+0xdd/0x390 kernel/sched/core.c:6960 do_nanosleep+0x206/0x560 kernel/time/hrtimer.c:2116 hrtimer_nanosleep+0x156/0x360 kernel/time/hrtimer.c:2163 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+0x336/0x480 kernel/time/posix-timers.c:1375 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:0x7f3e7875b58e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007f3e771f5f38 EFLAGS: 00000246 ORIG_RAX: 00000000000000e6 RAX: ffffffffffffffda RBX: 00007f3e771f76c0 RCX: 00007f3e7875b58e RDX: 00007f3e771f5f90 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000000040 R13: 0000000000000000 R14: 00007f3e78a15fa0 R15: 00007ffde7ea7218 Allocated by task 8422: kasan_save_stack+0x30/0x50 mm/kasan/common.c:56 kasan_save_track+0x14/0x30 mm/kasan/common.c:77 unpoison_slab_object mm/kasan/common.c:339 [inline] __kasan_slab_alloc+0x6e/0x70 mm/kasan/common.c:365 kasan_slab_alloc include/linux/kasan.h:252 [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 fs/namei.c:3566 [inline] user_path_at+0x9b/0x100 fs/namei.c:3566 do_utimes_path fs/utimes.c:96 [inline] do_utimes+0xf5/0x290 fs/utimes.c:141 __do_sys_utimensat fs/utimes.c:160 [inline] __se_sys_utimensat fs/utimes.c:144 [inline] __x64_sys_utimensat+0x1c6/0x290 fs/utimes.c:144 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 8422: kasan_save_stack+0x30/0x50 mm/kasan/common.c:56 kasan_save_track+0x14/0x30 mm/kasan/common.c:77 kasan_save_free_info+0x3b/0x70 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:252 [inline] __kasan_slab_free+0x43/0x70 mm/kasan/common.c:284 kasan_slab_free include/linux/kasan.h:234 [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 user_path_at+0xc0/0x100 fs/namei.c:3569 do_utimes_path fs/utimes.c:96 [inline] do_utimes+0xf5/0x290 fs/utimes.c:141 __do_sys_utimensat fs/utimes.c:160 [inline] __se_sys_utimensat fs/utimes.c:144 [inline] __x64_sys_utimensat+0x1c6/0x290 fs/utimes.c:144 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 ffff88813fb1e600 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 [ffff88813fb1e600, ffff88813fb1f600) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x13fb18 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 ffff8881012a1000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000070007 00000000f5000000 0000000000000000 head: 0200000000000040 ffff8881012a1000 dead000000000122 0000000000000000 head: 0000000000000000 0000000000070007 00000000f5000000 0000000000000000 head: 0200000000000003 ffffea0004fec601 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 8422, tgid 8422 (udevd), ts 1089819499455, free_ts 1089027154072 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1e1/0x250 mm/page_alloc.c:1846 prep_new_page mm/page_alloc.c:1854 [inline] get_page_from_freelist+0xd57/0x3b20 mm/page_alloc.c:3915 __alloc_frozen_pages_noprof+0x269/0x2230 mm/page_alloc.c:5210 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 2859 tgid 2859 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0x7d1/0x1010 mm/page_alloc.c:2943 discard_slab mm/slub.c:3346 [inline] __put_partials+0x127/0x160 mm/slub.c:3886 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:349 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4953 [inline] slab_alloc_node mm/slub.c:5263 [inline] kmem_cache_alloc_node_noprof+0x292/0x7d0 mm/slub.c:5315 __alloc_skb+0x156/0x410 net/core/skbuff.c:679 alloc_skb include/linux/skbuff.h:1383 [inline] netlink_alloc_large_skb+0x69/0x150 net/netlink/af_netlink.c:1184 netlink_sendmsg+0x680/0xda0 net/netlink/af_netlink.c:1869 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] ____sys_sendmsg+0xa54/0xc30 net/socket.c:2592 ___sys_sendmsg+0x190/0x1e0 net/socket.c:2646 __sys_sendmsg+0x170/0x220 net/socket.c:2678 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: ffff88813fb1fe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88813fb1ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88813fb1ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88813fb20000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88813fb20080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess): 0: 24 04 and $0x4,%al 2: e8 a9 fa ff ff call 0xfffffab0 7: 8b 44 24 04 mov 0x4(%rsp),%eax b: eb aa jmp 0xffffffb7 d: 0f 1f 00 nopl (%rax) 10: 90 nop 11: 90 nop 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: f3 0f 1e fa endbr64 24: 8b 05 2e 71 72 03 mov 0x372712e(%rip),%eax # 0x3727158 * 2a: 85 c0 test %eax,%eax <-- trapping instruction 2c: 74 20 je 0x4e 2e: 8b 05 e0 7c 72 03 mov 0x3727ce0(%rip),%eax # 0x3727d14 34: 85 c0 test %eax,%eax 36: 74 16 je 0x4e 38: 65 48 8b 05 78 df 70 mov %gs:0x570df78(%rip),%rax # 0x570dfb8 3f: 05