================================================================== BUG: KASAN: slab-out-of-bounds in mcp2221_raw_event+0x110d/0x1140 drivers/hid/hid-mcp2221.c:975 Read of size 1 at addr ffff888113a17fff by task syz-executor/2984 CPU: 1 UID: 0 PID: 2984 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(lazy) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/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+0xdb2/0x3700 drivers/usb/gadget/udc/dummy_hcd.c:2019 __run_hrtimer kernel/time/hrtimer.c:2067 [inline] __hrtimer_run_queues+0x462/0x9c0 kernel/time/hrtimer.c:2124 hrtimer_run_softirq+0x1ca/0x360 kernel/time/hrtimer.c:2141 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:variable_test_bit arch/x86/include/asm/bitops.h:222 [inline] RIP: 0010:arch_test_bit arch/x86/include/asm/bitops.h:233 [inline] RIP: 0010:_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:142 [inline] RIP: 0010:cpumask_test_cpu include/linux/cpumask.h:650 [inline] RIP: 0010:cpu_online include/linux/cpumask.h:1232 [inline] RIP: 0010:trace_sched_process_wait include/trace/events/sched.h:371 [inline] RIP: 0010:do_wait+0x62/0x570 kernel/exit.c:1747 Code: 78 04 00 00 e8 cf b5 3d 00 48 89 d8 be 08 00 00 00 48 c1 e8 06 48 8d 3c c5 d8 ab 15 8b e8 36 ac a8 00 48 0f a3 1d d6 68 9e 09 <0f> 92 c3 31 ff 89 de e8 b2 af 3d 00 84 db 0f 85 fd 03 00 00 e8 95 RSP: 0018:ffffc9000164fc68 EFLAGS: 00000247 RAX: 0000000000000001 RBX: 0000000000000001 RCX: ffffffff817742fa RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffffff8b15abd8 RBP: 1ffff920002c9f97 R08: 0000000000000000 R09: fffffbfff162b57b R10: ffffffff8b15abdf R11: 0000000000000000 R12: 0000000000000000 R13: ffffc9000164fcd8 R14: 0000000000000000 R15: 0000000000000004 kernel_wait4+0x16d/0x280 kernel/exit.c:1914 __do_sys_wait4+0x161/0x170 kernel/exit.c:1942 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:0x7f0e71de92d7 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:00007ffe88354c90 EFLAGS: 00000202 ORIG_RAX: 000000000000003d RAX: ffffffffffffffda RBX: 0000555589c2b500 RCX: 00007f0e71de92d7 RDX: 0000000040000001 RSI: 00007ffe88354d1c RDI: ffffffffffffffff RBP: 00007ffe88354d1c R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000001388 R13: 00000000000927c0 R14: 000000000009e268 R15: 00007ffe88354d70 Allocated by task 5509: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x8f/0xa0 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __kmalloc_cache_noprof+0x2d8/0x680 mm/slub.c:5563 _kmalloc_noprof include/linux/slab.h:991 [inline] selinux_genfs_get_sid security/selinux/hooks.c:1341 [inline] inode_doinit_with_dentry+0x7b1/0x1340 security/selinux/hooks.c:1565 selinux_d_instantiate+0x26/0x40 security/selinux/hooks.c:6685 security_d_instantiate+0x62/0xc0 security/security.c:3703 d_splice_alias_ops+0xd7/0x15b0 fs/dcache.c:3249 kernfs_iop_lookup+0x23f/0x2d0 fs/kernfs/dir.c:1288 __lookup_slow+0x155/0x320 fs/namei.c:1919 lookup_slow+0x50/0x70 fs/namei.c:1936 walk_component fs/namei.c:2282 [inline] lookup_last fs/namei.c:2789 [inline] path_lookupat+0x5e8/0xc40 fs/namei.c:2813 filename_lookup+0x202/0x590 fs/namei.c:2842 vfs_statx+0xff/0x3f0 fs/stat.c:353 vfs_fstatat+0x77/0xe0 fs/stat.c:373 __do_sys_newfstatat+0x9d/0x120 fs/stat.c:538 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 Freed by task 5509: 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:2748 [inline] slab_free mm/slub.c:6499 [inline] kfree+0x20c/0x650 mm/slub.c:6792 selinux_genfs_get_sid security/selinux/hooks.c:1366 [inline] inode_doinit_with_dentry+0x9b7/0x1340 security/selinux/hooks.c:1565 selinux_d_instantiate+0x26/0x40 security/selinux/hooks.c:6685 security_d_instantiate+0x62/0xc0 security/security.c:3703 d_splice_alias_ops+0xd7/0x15b0 fs/dcache.c:3249 kernfs_iop_lookup+0x23f/0x2d0 fs/kernfs/dir.c:1288 __lookup_slow+0x155/0x320 fs/namei.c:1919 lookup_slow+0x50/0x70 fs/namei.c:1936 walk_component fs/namei.c:2282 [inline] lookup_last fs/namei.c:2789 [inline] path_lookupat+0x5e8/0xc40 fs/namei.c:2813 filename_lookup+0x202/0x590 fs/namei.c:2842 vfs_statx+0xff/0x3f0 fs/stat.c:353 vfs_fstatat+0x77/0xe0 fs/stat.c:373 __do_sys_newfstatat+0x9d/0x120 fs/stat.c:538 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 The buggy address belongs to the object at ffff888113a16000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 4095 bytes to the right of allocated 4096-byte region [ffff888113a16000, ffff888113a17000) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x113a10 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 ffff888100042140 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000040004 00000000f5000000 0000000000000000 head: 0200000000000040 ffff888100042140 dead000000000100 dead000000000122 head: 0000000000000000 0000000000040004 00000000f5000000 0000000000000000 head: 0200000000000003 fffffffffffffe01 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 2969, tgid 2969 (syz-executor), ts 263223943502 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_slab_page mm/slub.c:3347 [inline] allocate_slab mm/slub.c:3462 [inline] new_slab+0xa9/0x6e0 mm/slub.c:3513 refill_objects+0xe3/0x410 mm/slub.c:7410 refill_sheaf mm/slub.c:2885 [inline] __pcs_replace_empty_main+0x35e/0x650 mm/slub.c:4774 alloc_from_pcs mm/slub.c:4850 [inline] slab_alloc_node mm/slub.c:4984 [inline] __kmalloc_cache_noprof+0x4a1/0x680 mm/slub.c:5559 _kmalloc_noprof include/linux/slab.h:991 [inline] poll_get_entry fs/select.c:168 [inline] __pollwait+0x2c3/0x490 fs/select.c:223 poll_wait include/linux/poll.h:45 [inline] pipe_poll+0x115/0x6c0 fs/pipe.c:759 vfs_poll include/linux/poll.h:82 [inline] select_poll_one fs/select.c:480 [inline] do_select+0xd54/0x1850 fs/select.c:536 core_sys_select+0x55b/0xbb0 fs/select.c:677 do_pselect.constprop.0+0x238/0x270 fs/select.c:770 __do_sys_pselect6 fs/select.c:809 [inline] __se_sys_pselect6 fs/select.c:800 [inline] __x64_sys_pselect6+0x149/0x1c0 fs/select.c:800 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 page last free pid 2864 tgid 2864 ts 260654528222 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 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x47/0xf0 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:4683 [inline] slab_alloc_node mm/slub.c:4996 [inline] kmem_cache_alloc_node_noprof+0x27d/0x690 mm/slub.c:5068 __alloc_skb+0x140/0x710 net/core/skbuff.c:704 alloc_skb include/linux/skbuff.h:1384 [inline] netlink_alloc_large_skb+0x69/0x150 net/netlink/af_netlink.c:1185 netlink_sendmsg+0x680/0xda0 net/netlink/af_netlink.c:1875 sock_sendmsg_nosec net/socket.c:800 [inline] __sock_sendmsg net/socket.c:815 [inline] ____sys_sendmsg+0xa4d/0xbe0 net/socket.c:2713 ___sys_sendmsg+0x190/0x1e0 net/socket.c:2767 __sys_sendmsg+0x160/0x210 net/socket.c:2799 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 Memory state around the buggy address: ffff888113a17e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888113a17f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888113a17f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888113a18000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888113a18080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess): 0: 78 04 js 0x6 2: 00 00 add %al,(%rax) 4: e8 cf b5 3d 00 call 0x3db5d8 9: 48 89 d8 mov %rbx,%rax c: be 08 00 00 00 mov $0x8,%esi 11: 48 c1 e8 06 shr $0x6,%rax 15: 48 8d 3c c5 d8 ab 15 lea -0x74ea5428(,%rax,8),%rdi 1c: 8b 1d: e8 36 ac a8 00 call 0xa8ac58 22: 48 0f a3 1d d6 68 9e bt %rbx,0x99e68d6(%rip) # 0x99e6900 29: 09 * 2a: 0f 92 c3 setb %bl <-- trapping instruction 2d: 31 ff xor %edi,%edi 2f: 89 de mov %ebx,%esi 31: e8 b2 af 3d 00 call 0x3dafe8 36: 84 db test %bl,%bl 38: 0f 85 fd 03 00 00 jne 0x43b 3e: e8 .byte 0xe8 3f: 95 xchg %eax,%ebp