================================================================== BUG: KASAN: slab-out-of-bounds in mcp2221_raw_event+0x106a/0x1240 drivers/hid/hid-mcp2221.c:950 Read of size 1 at addr ffff88807b0e7fff by task syz.3.20/6688 CPU: 1 UID: 0 PID: 6688 Comm: syz.3.20 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/27/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 mcp2221_raw_event+0x106a/0x1240 drivers/hid/hid-mcp2221.c:950 __hid_input_report drivers/hid/hid-core.c:2139 [inline] hid_input_report+0x41d/0x580 drivers/hid/hid-core.c:2166 hid_irq_in+0x47e/0x6d0 drivers/hid/usbhid/hid-core.c:286 __usb_hcd_giveback_urb+0x376/0x540 drivers/usb/core/hcd.c:1657 dummy_timer+0xbc0/0x45e0 drivers/usb/gadget/udc/dummy_hcd.c:1995 __run_hrtimer kernel/time/hrtimer.c:1928 [inline] __hrtimer_run_queues+0x46f/0xb60 kernel/time/hrtimer.c:1992 hrtimer_run_softirq+0x17a/0x240 kernel/time/hrtimer.c:2009 handle_softirqs+0x22a/0x870 kernel/softirq.c:626 __do_softirq kernel/softirq.c:660 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xca/0x220 kernel/softirq.c:739 irq_exit_rcu+0x9/0x30 kernel/softirq.c:756 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1061 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1061 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:179 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x47/0x80 kernel/locking/spinlock.c:194 Code: f7 e8 5d 55 e2 f5 f7 c3 00 02 00 00 74 05 e8 d0 db 0d f6 9c 58 a9 00 02 00 00 75 27 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 54 eb d3 f5 65 8b 05 ed 4c a2 07 85 c0 74 18 5b 41 5e e9 91 48 RSP: 0018:ffffc900033d7be8 EFLAGS: 00000206 RAX: 0000000000000006 RBX: 0000000000000246 RCX: 0000000080000001 RDX: 0000000000000000 RSI: ffffffff8e2333b6 RDI: 0000000000000001 RBP: ffffc900033d7cf0 R08: ffffffff905455f7 R09: 1ffffffff20a8abe R10: dffffc0000000000 R11: fffffbfff20a8abf R12: 000000000bebc200 R13: ffff88807f285b80 R14: ffff8880b8528280 R15: ffffc900033d7d40 hrtimer_start_expires include/linux/hrtimer.h:239 [inline] hrtimer_sleeper_start_expires kernel/time/hrtimer.c:2212 [inline] do_nanosleep+0x189/0x620 kernel/time/hrtimer.c:2286 hrtimer_nanosleep+0x18f/0x3a0 kernel/time/hrtimer.c:2335 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1391 [inline] __se_sys_clock_nanosleep+0x35b/0x3b0 kernel/time/posix-timers.c:1368 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7facb4f5ae0e 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:00007facb5d5ff38 EFLAGS: 00000246 ORIG_RAX: 00000000000000e6 RAX: ffffffffffffffda RBX: 00007facb5d616c0 RCX: 00007facb4f5ae0e RDX: 00007facb5d5ff90 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00002000000004c0 R13: 0000000000000000 R14: 00007facb5205fa0 R15: 00007ffc53c54688 Allocated by task 6433: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 unpoison_slab_object mm/kasan/common.c:340 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:366 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4538 [inline] kmem_cache_alloc_from_sheaf_noprof+0x9f/0x180 mm/slub.c:5173 mas_pop_node lib/maple_tree.c:1065 [inline] dst_setup+0x7e5/0x1160 lib/maple_tree.c:2350 mas_wr_split lib/maple_tree.c:3460 [inline] mas_wr_store_entry+0x2f4e/0x7fb0 lib/maple_tree.c:3537 mas_store_prealloc+0x699/0xa20 lib/maple_tree.c:4936 vma_iter_store_new mm/vma.h:614 [inline] vma_complete+0x21f/0x9e0 mm/vma.c:356 __split_vma+0x8ed/0xa40 mm/vma.c:566 split_vma mm/vma.c:596 [inline] vma_modify+0xa30/0x2060 mm/vma.c:1680 vma_modify_flags+0x24b/0x330 mm/vma.c:1700 mprotect_fixup+0x47a/0xa80 mm/mprotect.c:756 do_mprotect_pkey+0x8ab/0xcd0 mm/mprotect.c:930 __do_sys_mprotect mm/mprotect.c:951 [inline] __se_sys_mprotect mm/mprotect.c:948 [inline] __x64_sys_mprotect+0x80/0x90 mm/mprotect.c:948 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 15: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2685 [inline] __rcu_free_sheaf_prepare+0x12d/0x2a0 mm/slub.c:2954 rcu_free_sheaf+0x31/0x200 mm/slub.c:5811 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x7cd/0x1070 kernel/rcu/tree.c:2869 handle_softirqs+0x22a/0x870 kernel/softirq.c:626 run_ksoftirqd+0x36/0x60 kernel/softirq.c:1080 smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff88807b0e7e00 which belongs to the cache maple_node of size 256 The buggy address is located 255 bytes to the right of allocated 256-byte region [ffff88807b0e7e00, ffff88807b0e7f00) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7b0e6 head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88813ff36c80 dead000000000100 dead000000000122 raw: 0000000000000000 0000000800100010 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88813ff36c80 dead000000000100 dead000000000122 head: 0000000000000000 0000000800100010 00000000f5000000 0000000000000000 head: 00fff00000000001 ffffffffffffff81 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 1, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 6156, tgid 6156 (dhcpcd-run-hook), ts 101061567730, free_ts 86230353601 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1857 prep_new_page mm/page_alloc.c:1865 [inline] get_page_from_freelist+0x2418/0x24b0 mm/page_alloc.c:3924 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5211 alloc_slab_page mm/slub.c:3292 [inline] allocate_slab+0x77/0x660 mm/slub.c:3481 new_slab mm/slub.c:3539 [inline] refill_objects+0x331/0x3c0 mm/slub.c:7175 refill_sheaf mm/slub.c:2812 [inline] __prefill_sheaf_pfmemalloc mm/slub.c:4936 [inline] kmem_cache_prefill_sheaf+0x2e6/0x540 mm/slub.c:5025 mt_get_sheaf lib/maple_tree.c:154 [inline] mas_alloc_nodes+0x1c2/0x350 lib/maple_tree.c:1119 mas_preallocate+0x2d6/0x640 lib/maple_tree.c:4961 vma_iter_prealloc mm/vma.h:568 [inline] __mmap_new_vma mm/vma.c:2526 [inline] __mmap_region mm/vma.c:2759 [inline] mmap_region+0x125d/0x2240 mm/vma.c:2837 do_mmap+0xc39/0x10c0 mm/mmap.c:559 vm_mmap_pgoff+0x2c9/0x4f0 mm/util.c:581 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 802 tgid 802 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1401 [inline] __free_frozen_pages+0xbf0/0xd00 mm/page_alloc.c:2942 __slab_free+0x263/0x2b0 mm/slub.c:5573 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:350 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_node_noprof+0x384/0x690 mm/slub.c:4918 __alloc_skb+0x1d0/0x7d0 net/core/skbuff.c:702 alloc_skb include/linux/skbuff.h:1383 [inline] mld_newpack+0x14c/0xc90 net/ipv6/mcast.c:1775 add_grhead+0x5a/0x2a0 net/ipv6/mcast.c:1886 add_grec+0x1452/0x1740 net/ipv6/mcast.c:2025 mld_send_initial_cr+0x288/0x550 net/ipv6/mcast.c:2268 mld_dad_work+0x45/0x5b0 net/ipv6/mcast.c:2294 process_one_work+0x9ab/0x1780 kernel/workqueue.c:3289 process_scheduled_works kernel/workqueue.c:3380 [inline] worker_thread+0xb49/0x1140 kernel/workqueue.c:3461 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158 Memory state around the buggy address: ffff88807b0e7e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807b0e7f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88807b0e7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88807b0e8000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88807b0e8080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess): 0: f7 e8 imul %eax 2: 5d pop %rbp 3: 55 push %rbp 4: e2 f5 loop 0xfffffffb 6: f7 c3 00 02 00 00 test $0x200,%ebx c: 74 05 je 0x13 e: e8 d0 db 0d f6 call 0xf60ddbe3 13: 9c pushf 14: 58 pop %rax 15: a9 00 02 00 00 test $0x200,%eax 1a: 75 27 jne 0x43 1c: f7 c3 00 02 00 00 test $0x200,%ebx 22: 74 01 je 0x25 24: fb sti 25: bf 01 00 00 00 mov $0x1,%edi * 2a: e8 54 eb d3 f5 call 0xf5d3eb83 <-- trapping instruction 2f: 65 8b 05 ed 4c a2 07 mov %gs:0x7a24ced(%rip),%eax # 0x7a24d23 36: 85 c0 test %eax,%eax 38: 74 18 je 0x52 3a: 5b pop %rbx 3b: 41 5e pop %r14 3d: e9 .byte 0xe9 3e: 91 xchg %eax,%ecx 3f: 48 rex.W