================================================================== BUG: KASAN: slab-out-of-bounds in mcp2221_raw_event+0x103c/0x10a0 drivers/hid/hid-mcp2221.c:950 Read of size 1 at addr ffff8881139d3fff by task syz-executor/2964 CPU: 1 UID: 0 PID: 2964 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/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+0x156/0x4c9 mm/kasan/report.c:482 kasan_report+0xdf/0x1e0 mm/kasan/report.c:595 mcp2221_raw_event+0x103c/0x10a0 drivers/hid/hid-mcp2221.c:950 __hid_input_report.constprop.0+0x314/0x460 drivers/hid/hid-core.c:2140 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+0xda1/0x36c0 drivers/usb/gadget/udc/dummy_hcd.c:2005 __run_hrtimer kernel/time/hrtimer.c:1785 [inline] __hrtimer_run_queues+0x50e/0xa70 kernel/time/hrtimer.c:1849 hrtimer_run_softirq+0x17d/0x350 kernel/time/hrtimer.c:1866 handle_softirqs+0x1de/0x9d0 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:lock_acquire+0x5e/0x380 kernel/locking/lockdep.c:5872 Code: 05 3b 98 66 0b 83 f8 07 0f 87 f0 00 00 00 48 0f a3 05 c6 47 61 09 0f 82 c2 02 00 00 8b 35 6e 57 61 09 85 f6 0f 85 dd 00 00 00 <48> 8b 44 24 30 65 48 2b 05 dd 97 66 0b 0f 85 02 03 00 00 48 83 c4 RSP: 0018:ffffc9000142f340 EFLAGS: 00000206 RAX: 0000000000000046 RBX: 0000000000000000 RCX: 0000000000000007 RDX: 0000000000000000 RSI: ffffffff890036c1 RDI: ffffffff87afd320 RBP: ffffffff896de6a0 R08: 00000000b32f38d8 R09: 000000000000001e R10: 0000000000000200 R11: 0000000000000000 R12: 0000000000000002 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 rcu_lock_acquire include/linux/rcupdate.h:312 [inline] rcu_read_lock_sched include/linux/rcupdate.h:948 [inline] pfn_valid include/linux/mmzone.h:2197 [inline] page_table_check_set+0x6b/0xa10 mm/page_table_check.c:105 __page_table_check_ptes_set+0x1db/0x230 mm/page_table_check.c:215 page_table_check_ptes_set include/linux/page_table_check.h:83 [inline] set_ptes include/linux/pgtable.h:413 [inline] __copy_present_ptes mm/memory.c:1115 [inline] copy_present_ptes+0xcc4/0x44f0 mm/memory.c:1194 copy_pte_range mm/memory.c:1317 [inline] copy_pmd_range mm/memory.c:1405 [inline] copy_pud_range mm/memory.c:1442 [inline] copy_p4d_range mm/memory.c:1466 [inline] copy_page_range+0xe88/0x2760 mm/memory.c:1552 dup_mmap+0xcb9/0x1f30 mm/mmap.c:1841 dup_mm kernel/fork.c:1531 [inline] copy_mm kernel/fork.c:1583 [inline] copy_process+0x424b/0x7820 kernel/fork.c:2223 kernel_clone+0xfc/0x9a0 kernel/fork.c:2653 __do_sys_clone+0xd9/0x120 kernel/fork.c:2794 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x106/0x7b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd4d9795292 Code: 89 e7 e8 71 8b f7 ff 45 31 c0 31 d2 31 f6 64 48 8b 04 25 10 00 00 00 bf 11 00 20 01 4c 8d 90 d0 02 00 00 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 66 89 c5 85 c0 75 3b 64 48 8b 04 25 10 00 00 RSP: 002b:00007ffc9e336400 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007ffc9e336400 RCX: 00007fd4d9795292 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 00007ffc9e33658c R08: 0000000000000000 R09: 0000000000000001 R10: 000055558b9e47d0 R11: 0000000000000246 R12: 0000000000000000 R13: 00000000000927c0 R14: 0000000000053f58 R15: 00007ffc9e3365e0 Allocated by task 5292: 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:4538 [inline] slab_alloc_node mm/slub.c:4866 [inline] kmem_cache_alloc_noprof+0x2e7/0x6a0 mm/slub.c:4873 anon_vma_alloc mm/rmap.c:94 [inline] anon_vma_fork+0x8d/0x6b0 mm/rmap.c:391 dup_mmap+0x1137/0x1f30 mm/mmap.c:1804 dup_mm kernel/fork.c:1531 [inline] copy_mm kernel/fork.c:1583 [inline] copy_process+0x424b/0x7820 kernel/fork.c:2223 kernel_clone+0xfc/0x9a0 kernel/fork.c:2653 __do_sys_clone+0xd9/0x120 kernel/fork.c:2794 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x106/0x7b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 22: 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:2685 [inline] slab_free_after_rcu_debug+0x95/0xf0 mm/slub.c:6230 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x5a2/0x10d0 kernel/rcu/tree.c:2869 handle_softirqs+0x1de/0x9d0 kernel/softirq.c:622 run_ksoftirqd kernel/softirq.c:1063 [inline] run_ksoftirqd+0x38/0x60 kernel/softirq.c:1055 smpboot_thread_fn+0x3d3/0xaa0 kernel/smpboot.c:160 kthread+0x370/0x450 kernel/kthread.c:436 ret_from_fork+0x6c3/0xcb0 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Last potentially related work creation: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_record_aux_stack+0x8c/0xa0 mm/kasan/generic.c:556 slab_free_hook mm/slub.c:2646 [inline] slab_free mm/slub.c:6165 [inline] kmem_cache_free+0x415/0x640 mm/slub.c:6295 anon_vma_free mm/rmap.c:137 [inline] __put_anon_vma+0x114/0x3a0 mm/rmap.c:2909 put_anon_vma mm/internal.h:215 [inline] unlink_anon_vmas+0x5f3/0x8e0 mm/rmap.c:536 free_pgtables+0x2e7/0xd80 mm/memory.c:427 exit_mmap+0x44c/0xa30 mm/mmap.c:1314 __mmput kernel/fork.c:1175 [inline] mmput+0xe0/0x430 kernel/fork.c:1198 exec_mmap fs/exec.c:893 [inline] begin_new_exec+0x10f0/0x38a0 fs/exec.c:1148 load_elf_binary+0x886/0x50d0 fs/binfmt_elf.c:1011 search_binary_handler fs/exec.c:1664 [inline] exec_binprm fs/exec.c:1696 [inline] bprm_execve fs/exec.c:1748 [inline] bprm_execve+0x8ef/0x1600 fs/exec.c:1724 do_execveat_common.isra.0+0x4a5/0x580 fs/exec.c:1846 __do_sys_execve fs/exec.c:1930 [inline] __se_sys_execve fs/exec.c:1924 [inline] __x64_sys_execve+0x93/0xd0 fs/exec.c:1924 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x106/0x7b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff8881139d3ee0 which belongs to the cache anon_vma of size 208 The buggy address is located 79 bytes to the right of allocated 208-byte region [ffff8881139d3ee0, ffff8881139d3fb0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8881139d3550 pfn:0x1139d3 memcg:ffff888114a46c01 flags: 0x200000000000200(workingset|node=0|zone=2) page_type: f5(slab) raw: 0200000000000200 ffff8881012d9140 ffffea00044e18d0 ffffea00044d2cd0 raw: ffff8881139d3550 00000008000f000c 00000000f5000000 ffff888114a46c01 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 4174, tgid 4174 (modprobe), ts 73165137449, free_ts 73146835149 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x153/0x170 mm/page_alloc.c:1889 prep_new_page mm/page_alloc.c:1897 [inline] get_page_from_freelist+0xf10/0x39f0 mm/page_alloc.c:3962 __alloc_frozen_pages_noprof+0x273/0x2860 mm/page_alloc.c:5250 alloc_slab_page mm/slub.c:3292 [inline] allocate_slab mm/slub.c:3481 [inline] new_slab+0xa6/0x6c0 mm/slub.c:3539 refill_objects+0x26b/0x400 mm/slub.c:7175 refill_sheaf mm/slub.c:2812 [inline] __pcs_replace_empty_main+0x1ab/0x660 mm/slub.c:4615 alloc_from_pcs mm/slub.c:4717 [inline] slab_alloc_node mm/slub.c:4851 [inline] kmem_cache_alloc_noprof+0x520/0x6a0 mm/slub.c:4873 anon_vma_alloc mm/rmap.c:94 [inline] __anon_vma_prepare+0x344/0x5e0 mm/rmap.c:201 __vmf_anon_prepare+0x11f/0x250 mm/memory.c:3734 vmf_anon_prepare mm/internal.h:502 [inline] do_cow_fault mm/memory.c:5819 [inline] do_fault mm/memory.c:5935 [inline] do_pte_missing mm/memory.c:4477 [inline] handle_pte_fault mm/memory.c:6317 [inline] __handle_mm_fault+0x82c/0x2d60 mm/memory.c:6455 handle_mm_fault+0x36d/0xa20 mm/memory.c:6624 do_user_addr_fault+0x74c/0x11d0 arch/x86/mm/fault.c:1385 handle_page_fault arch/x86/mm/fault.c:1474 [inline] exc_page_fault+0x66/0xc0 arch/x86/mm/fault.c:1527 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:618 page last free pid 22 tgid 22 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0x7b1/0xfb0 mm/page_alloc.c:2978 __pagetable_free include/linux/mm.h:3414 [inline] pagetable_free include/linux/mm.h:3438 [inline] pagetable_dtor_free include/linux/mm.h:3537 [inline] __tlb_remove_table include/asm-generic/tlb.h:221 [inline] __tlb_remove_table_free mm/mmu_gather.c:228 [inline] tlb_remove_table_rcu+0x2cf/0x380 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x5a2/0x10d0 kernel/rcu/tree.c:2869 handle_softirqs+0x1de/0x9d0 kernel/softirq.c:622 run_ksoftirqd kernel/softirq.c:1063 [inline] run_ksoftirqd+0x38/0x60 kernel/softirq.c:1055 smpboot_thread_fn+0x3d3/0xaa0 kernel/smpboot.c:160 kthread+0x370/0x450 kernel/kthread.c:436 ret_from_fork+0x6c3/0xcb0 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: ffff8881139d3e80: fb fb fb fb fc fc fc fc fc fc fc fc fa fb fb fb ffff8881139d3f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8881139d3f80: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc ^ ffff8881139d4000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881139d4080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess): 0: 05 3b 98 66 0b add $0xb66983b,%eax 5: 83 f8 07 cmp $0x7,%eax 8: 0f 87 f0 00 00 00 ja 0xfe e: 48 0f a3 05 c6 47 61 bt %rax,0x96147c6(%rip) # 0x96147dc 15: 09 16: 0f 82 c2 02 00 00 jb 0x2de 1c: 8b 35 6e 57 61 09 mov 0x961576e(%rip),%esi # 0x9615790 22: 85 f6 test %esi,%esi 24: 0f 85 dd 00 00 00 jne 0x107 * 2a: 48 8b 44 24 30 mov 0x30(%rsp),%rax <-- trapping instruction 2f: 65 48 2b 05 dd 97 66 sub %gs:0xb6697dd(%rip),%rax # 0xb669814 36: 0b 37: 0f 85 02 03 00 00 jne 0x33f 3d: 48 rex.W 3e: 83 .byte 0x83 3f: c4 .byte 0xc4