================================================================== BUG: KASAN: slab-out-of-bounds in mcp2221_raw_event+0x10b0/0x12a0 drivers/hid/hid-mcp2221.c:964 Read of size 1 at addr ffff8880549ebfff by task syz.3.161/6429 CPU: 0 UID: 0 PID: 6429 Comm: syz.3.161 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/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+0x10b0/0x12a0 drivers/hid/hid-mcp2221.c:964 __hid_input_report+0x41c/0x580 drivers/hid/hid-core.c:2161 hid_irq_in+0x492/0x710 drivers/hid/usbhid/hid-core.c:287 __usb_hcd_giveback_urb+0x374/0x530 drivers/usb/core/hcd.c:1657 dummy_timer+0xac3/0x4b40 drivers/usb/gadget/udc/dummy_hcd.c:2005 __run_hrtimer kernel/time/hrtimer.c:2032 [inline] __hrtimer_run_queues+0x3bc/0xa10 kernel/time/hrtimer.c:2096 hrtimer_run_softirq+0x17a/0x240 kernel/time/hrtimer.c:2113 handle_softirqs+0x225/0x840 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xca/0x220 kernel/softirq.c:735 irq_exit_rcu+0x9/0x30 kernel/softirq.c:752 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 RIP: 0010:mem_cgroup_lruvec include/linux/memcontrol.h:706 [inline] RIP: 0010:lruvec_stat_mod_folio+0x1f1/0x3e0 mm/memcontrol.c:992 Code: 03 80 3c 28 00 74 08 4c 89 f7 e8 fa 2f f8 ff 4d 8b 26 49 83 c4 48 4d 8d ac 24 58 06 00 00 4d 89 ee 49 c1 ee 03 41 80 3c 2e 00 <74> 08 4c 89 ef e8 d5 2f f8 ff 4d 39 7d 00 0f 85 0e 01 00 00 41 80 RSP: 0018:ffffc90006cd70e8 EFLAGS: 00000246 RAX: 1ffff110038ddda6 RBX: ffffffff823bb4fe RCX: 0000000080000001 RDX: 00000000e45cbcbe RSI: ffffffff8e25db1e RDI: ffffffff8c2ab780 RBP: dffffc0000000000 R08: ffffffff823bb4fe R09: 0000000000000000 R10: 0000000000000000 R11: ffffffff8e959c20 R12: ffff88801d6cba08 R13: ffff88801d6cc060 R14: 1ffff11003ad980c R15: ffff88813fffb140 __folio_mod_stat mm/rmap.c:1336 [inline] __folio_remove_rmap mm/rmap.c:1873 [inline] folio_remove_rmap_ptes+0x343/0xe40 mm/rmap.c:1900 try_to_migrate_one+0x1ac9/0x2ac0 mm/rmap.c:2720 rmap_walk_anon+0x5e3/0x7d0 mm/rmap.c:3001 try_to_migrate+0x33d/0x400 mm/rmap.c:-1 migrate_folio_unmap mm/migrate.c:1328 [inline] migrate_pages_batch+0x1c00/0x4e50 mm/migrate.c:1907 migrate_pages_sync mm/migrate.c:2024 [inline] migrate_pages+0x1b9f/0x2920 mm/migrate.c:2133 do_mbind mm/mempolicy.c:1614 [inline] kernel_mbind mm/mempolicy.c:1757 [inline] __do_sys_mbind mm/mempolicy.c:1831 [inline] __se_sys_mbind+0xe82/0x10e0 mm/mempolicy.c:1827 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fc9f919ce59 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc9f9f89028 EFLAGS: 00000246 ORIG_RAX: 00000000000000ed RAX: ffffffffffffffda RBX: 00007fc9f9416090 RCX: 00007fc9f919ce59 RDX: 0000000000000000 RSI: 0000000000800000 RDI: 0000200000001000 RBP: 00007fc9f9232e6f R08: 0000000000000000 R09: 0000000000000002 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fc9f9416128 R14: 00007fc9f9416090 R15: 00007fc9f953fa48 Allocated by task 6292: 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:4612 [inline] slab_alloc_node mm/slub.c:4945 [inline] kmem_cache_alloc_node_noprof+0x355/0x610 mm/slub.c:5017 kmalloc_reserve net/core/skbuff.c:615 [inline] __alloc_skb+0x276/0x7a0 net/core/skbuff.c:715 alloc_skb include/linux/skbuff.h:1384 [inline] alloc_uevent_skb+0x7d/0x230 lib/kobject_uevent.c:289 uevent_net_broadcast_tagged lib/kobject_uevent.c:352 [inline] kobject_uevent_net_broadcast+0x184/0x560 lib/kobject_uevent.c:415 kobject_uevent_env+0x566/0x9e0 lib/kobject_uevent.c:611 netdev_queue_add_kobject net/core/net-sysfs.c:1992 [inline] netdev_queue_update_kobjects+0x33a/0x6b0 net/core/net-sysfs.c:2035 register_queue_kobjects net/core/net-sysfs.c:2098 [inline] netdev_register_kobject+0x258/0x310 net/core/net-sysfs.c:2341 register_netdevice+0x1433/0x1eb0 net/core/dev.c:11440 vxcan_newlink+0x491/0x5d0 drivers/net/can/vxcan.c:262 rtnl_newlink_create+0x310/0xb00 net/core/rtnetlink.c:3913 __rtnl_newlink net/core/rtnetlink.c:4044 [inline] rtnl_newlink+0x167f/0x1bd0 net/core/rtnetlink.c:4159 rtnetlink_rcv_msg+0x802/0xc00 net/core/rtnetlink.c:7076 netlink_rcv_skb+0x226/0x4a0 net/netlink/af_netlink.c:2556 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x7bb/0x940 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1900 sock_sendmsg_nosec+0x13a/0x180 net/socket.c:775 __sock_sendmsg net/socket.c:790 [inline] __sys_sendto+0x408/0x5a0 net/socket.c:2252 __do_sys_sendto net/socket.c:2259 [inline] __se_sys_sendto net/socket.c:2255 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2255 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 6292: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x40/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:2705 [inline] slab_free mm/slub.c:6405 [inline] kfree+0x1c5/0x640 mm/slub.c:6720 skb_kfree_head net/core/skbuff.c:1077 [inline] skb_free_head net/core/skbuff.c:1089 [inline] skb_release_data+0x85e/0xab0 net/core/skbuff.c:1116 skb_release_all net/core/skbuff.c:1191 [inline] __kfree_skb+0x5d/0x210 net/core/skbuff.c:1205 netlink_broadcast_filtered+0xd9d/0xea0 net/netlink/af_netlink.c:1541 netlink_broadcast+0x37/0x50 net/netlink/af_netlink.c:1563 uevent_net_broadcast_tagged lib/kobject_uevent.c:373 [inline] kobject_uevent_net_broadcast+0x4bc/0x560 lib/kobject_uevent.c:415 kobject_uevent_env+0x566/0x9e0 lib/kobject_uevent.c:611 netdev_queue_add_kobject net/core/net-sysfs.c:1992 [inline] netdev_queue_update_kobjects+0x33a/0x6b0 net/core/net-sysfs.c:2035 register_queue_kobjects net/core/net-sysfs.c:2098 [inline] netdev_register_kobject+0x258/0x310 net/core/net-sysfs.c:2341 register_netdevice+0x1433/0x1eb0 net/core/dev.c:11440 vxcan_newlink+0x491/0x5d0 drivers/net/can/vxcan.c:262 rtnl_newlink_create+0x310/0xb00 net/core/rtnetlink.c:3913 __rtnl_newlink net/core/rtnetlink.c:4044 [inline] rtnl_newlink+0x167f/0x1bd0 net/core/rtnetlink.c:4159 rtnetlink_rcv_msg+0x802/0xc00 net/core/rtnetlink.c:7076 netlink_rcv_skb+0x226/0x4a0 net/netlink/af_netlink.c:2556 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x7bb/0x940 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1900 sock_sendmsg_nosec+0x13a/0x180 net/socket.c:775 __sock_sendmsg net/socket.c:790 [inline] __sys_sendto+0x408/0x5a0 net/socket.c:2252 __do_sys_sendto net/socket.c:2259 [inline] __se_sys_sendto net/socket.c:2255 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2255 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff8880549eba80 which belongs to the cache skbuff_small_head of size 704 The buggy address is located 703 bytes to the right of allocated 704-byte region [ffff8880549eba80, ffff8880549ebd40) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x549e8 head: order:2 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 ffff88801f6d8b40 dead000000000100 dead000000000122 raw: 0000000000000000 0000000800130013 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801f6d8b40 dead000000000100 dead000000000122 head: 0000000000000000 0000000800130013 00000000f5000000 0000000000000000 head: 00fff00000000002 ffffffffffffff01 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 68, tgid 68 (kworker/u8:4), ts 85932790162, free_ts 24879091431 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1859 prep_new_page mm/page_alloc.c:1867 [inline] get_page_from_freelist+0x21fa/0x2270 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5304 alloc_slab_page mm/slub.c:3294 [inline] allocate_slab+0x79/0x5e0 mm/slub.c:3408 new_slab mm/slub.c:3454 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7338 refill_sheaf mm/slub.c:2832 [inline] __pcs_replace_empty_main+0x2bf/0x6b0 mm/slub.c:4703 alloc_from_pcs mm/slub.c:4801 [inline] slab_alloc_node mm/slub.c:4933 [inline] kmem_cache_alloc_node_noprof+0x42f/0x610 mm/slub.c:5017 kmalloc_reserve net/core/skbuff.c:615 [inline] __alloc_skb+0x276/0x7a0 net/core/skbuff.c:715 alloc_skb include/linux/skbuff.h:1384 [inline] ndisc_alloc_skb+0xa0/0x480 net/ipv6/ndisc.c:420 ndisc_ns_create+0x21c/0x650 net/ipv6/ndisc.c:626 ndisc_send_ns+0xba/0x160 net/ipv6/ndisc.c:668 addrconf_dad_work+0xa8d/0x15c0 net/ipv6/addrconf.c:4317 process_one_work kernel/workqueue.c:3322 [inline] process_scheduled_works+0xa8e/0x14e0 kernel/workqueue.c:3405 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3486 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 page last free pid 1 tgid 1 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1406 [inline] free_pages_prepare+0x960/0xa60 mm/page_alloc.c:1451 __free_contig_range_common+0x174/0x340 mm/page_alloc.c:6897 destroy_args+0x4e5/0x570 mm/debug_vm_pgtable.c:993 debug_vm_pgtable+0x3f8/0x410 mm/debug_vm_pgtable.c:1368 do_one_initcall+0x250/0x870 init/main.c:1347 do_initcall_level+0x10a/0x1a0 init/main.c:1409 do_initcalls+0x59/0xa0 init/main.c:1425 kernel_init_freeable+0x29d/0x3e0 init/main.c:1658 kernel_init+0x1d/0x1d0 init/main.c:1548 ret_from_fork+0x514/0xb70 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: ffff8880549ebe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880549ebf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880549ebf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880549ec000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880549ec080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess): 0: 03 80 3c 28 00 74 add 0x7400283c(%rax),%eax 6: 08 4c 89 f7 or %cl,-0x9(%rcx,%rcx,4) a: e8 fa 2f f8 ff call 0xfff83009 f: 4d 8b 26 mov (%r14),%r12 12: 49 83 c4 48 add $0x48,%r12 16: 4d 8d ac 24 58 06 00 lea 0x658(%r12),%r13 1d: 00 1e: 4d 89 ee mov %r13,%r14 21: 49 c1 ee 03 shr $0x3,%r14 25: 41 80 3c 2e 00 cmpb $0x0,(%r14,%rbp,1) * 2a: 74 08 je 0x34 <-- trapping instruction 2c: 4c 89 ef mov %r13,%rdi 2f: e8 d5 2f f8 ff call 0xfff83009 34: 4d 39 7d 00 cmp %r15,0x0(%r13) 38: 0f 85 0e 01 00 00 jne 0x14c 3e: 41 rex.B 3f: 80 .byte 0x80