================================================================== BUG: KASAN: slab-out-of-bounds in mcp2221_raw_event+0x1062/0x1240 drivers/hid/hid-mcp2221.c:858 Read of size 1 at addr ffff888026e5ffff by task udevd/5878 CPU: 0 PID: 5878 Comm: udevd Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xa8/0x210 mm/kasan/report.c:468 kasan_report+0x117/0x150 mm/kasan/report.c:581 mcp2221_raw_event+0x1062/0x1240 drivers/hid/hid-mcp2221.c:858 hid_input_report+0x3ed/0x500 drivers/hid/hid-core.c:2125 hid_irq_in+0x478/0x6d0 drivers/hid/usbhid/hid-core.c:284 __usb_hcd_giveback_urb+0x35d/0x520 drivers/usb/core/hcd.c:1648 dummy_timer+0xa58/0x34e0 drivers/usb/gadget/udc/dummy_hcd.c:2017 __run_hrtimer kernel/time/hrtimer.c:1754 [inline] __hrtimer_run_queues+0x525/0xc10 kernel/time/hrtimer.c:1818 hrtimer_run_softirq+0x177/0x290 kernel/time/hrtimer.c:1835 handle_softirqs+0x27d/0x820 kernel/softirq.c:578 __do_softirq kernel/softirq.c:612 [inline] invoke_softirq kernel/softirq.c:452 [inline] __irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661 irq_exit_rcu+0x9/0x20 kernel/softirq.c:673 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1088 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687 RIP: 0010:sysfs_kf_seq_show+0x37d/0x4c0 fs/sysfs/file.c:67 Code: 89 c6 e8 16 cb 70 ff 48 85 db 0f 88 a4 00 00 00 bf ff 0f 00 00 48 89 de e8 00 cb 70 ff 48 81 fb ff 0f 00 00 0f 87 91 00 00 00 ae c6 70 ff 4c 8b 64 24 08 48 b8 00 00 00 00 00 fc ff df 41 80 RSP: 0018:ffffc90004a8fbd0 EFLAGS: 00000293 RAX: ffffffff8216abb0 RBX: 0000000000000037 RCX: ffff888029df0000 RDX: 0000000000000000 RSI: 0000000000000037 RDI: 0000000000000fff RBP: 1ffffffff1684144 R08: ffffffff911ef5b7 R09: 1ffffffff223deb6 R10: dffffc0000000000 R11: fffffbfff223deb7 R12: ffff88802d095000 R13: ffff88802e9da018 R14: ffff8880286f6000 R15: 1ffff11005d3b401 seq_read_iter+0x464/0xc50 fs/seq_file.c:230 call_read_iter include/linux/fs.h:2012 [inline] new_sync_read fs/read_write.c:389 [inline] vfs_read+0x486/0x990 fs/read_write.c:470 ksys_read+0x151/0x260 fs/read_write.c:613 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f86f3aa7407 Code: 48 89 fa 4c 89 df e8 38 aa 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:00007ffdf49f3ff0 EFLAGS: 00000202 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007f86f415f880 RCX: 00007f86f3aa7407 RDX: 0000000000001000 RSI: 0000565577a0cf10 RDI: 0000000000000009 RBP: 00007f86f3befff0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 000000000000000a R13: 00007f86f3befea0 R14: 0000000000000000 R15: 0000565577a048a0 Allocated by task 5781: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4e/0x70 mm/kasan/common.c:53 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0x8f/0xa0 mm/kasan/common.c:384 kasan_kmalloc include/linux/kasan.h:198 [inline] __do_kmalloc_node mm/slab_common.c:1007 [inline] __kmalloc+0xb7/0x240 mm/slab_common.c:1020 kmalloc include/linux/slab.h:604 [inline] kzalloc include/linux/slab.h:721 [inline] fib6_info_alloc+0x30/0xf0 net/ipv6/ip6_fib.c:155 ip6_route_info_create+0x455/0x1260 net/ipv6/route.c:3805 addrconf_f6i_alloc+0x1fa/0x440 net/ipv6/route.c:4633 fixup_permanent_addr net/ipv6/addrconf.c:3585 [inline] addrconf_permanent_addr+0x294/0xa50 net/ipv6/addrconf.c:3624 addrconf_notify+0x996/0x1010 net/ipv6/addrconf.c:3696 notifier_call_chain+0x18f/0x380 kernel/notifier.c:93 call_netdevice_notifiers_extack net/core/dev.c:2077 [inline] call_netdevice_notifiers net/core/dev.c:2091 [inline] __dev_notify_flags+0x1ab/0x310 net/core/dev.c:8780 dev_change_flags+0xde/0x1a0 net/core/dev.c:8818 do_setlink+0xb69/0x3f40 net/core/rtnetlink.c:2917 __rtnl_newlink net/core/rtnetlink.c:3715 [inline] rtnl_newlink+0x1848/0x2170 net/core/rtnetlink.c:3762 rtnetlink_rcv_msg+0x843/0xf90 net/core/rtnetlink.c:6484 netlink_rcv_skb+0x235/0x4c0 net/netlink/af_netlink.c:2550 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x7b1/0x930 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8d0/0xbf0 net/netlink/af_netlink.c:1899 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] __sys_sendto+0x4a9/0x6b0 net/socket.c:2201 __do_sys_sendto net/socket.c:2213 [inline] __se_sys_sendto net/socket.c:2209 [inline] __x64_sys_sendto+0xde/0xf0 net/socket.c:2209 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff888026e5fc00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 735 bytes to the right of allocated 288-byte region [ffff888026e5fc00, ffff888026e5fd20) The buggy address belongs to the physical page: page:ffffea00009b9700 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x26e5c head:ffffea00009b9700 order:2 entire_mapcount:0 nr_pages_mapped:0 pincount:0 ksm flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000840 ffff888017c41c80 ffffea0000974e00 dead000000000003 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 2150, tgid 2150 (kworker/u4:6), ts 18324426586, free_ts 0 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1582 prep_new_page mm/page_alloc.c:1589 [inline] get_page_from_freelist+0x2181/0x22a0 mm/page_alloc.c:3221 __alloc_pages+0x1f0/0x460 mm/page_alloc.c:4501 alloc_slab_page+0x5d/0x180 mm/slub.c:1881 allocate_slab mm/slub.c:2028 [inline] new_slab+0x87/0x2d0 mm/slub.c:2081 ___slab_alloc+0xc5c/0x12f0 mm/slub.c:3253 __slab_alloc mm/slub.c:3339 [inline] __slab_alloc_node mm/slub.c:3392 [inline] slab_alloc_node mm/slub.c:3485 [inline] __kmem_cache_alloc_node+0x11f/0x250 mm/slub.c:3534 kmalloc_trace+0x2a/0xe0 mm/slab_common.c:1098 kmalloc include/linux/slab.h:600 [inline] kzalloc include/linux/slab.h:721 [inline] alloc_bprm+0x56/0x9a0 fs/exec.c:1538 kernel_execve+0x98/0x980 fs/exec.c:2023 call_usermodehelper_exec_async+0x20b/0x350 kernel/umh.c:110 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 page_owner free stack trace missing Memory state around the buggy address: ffff888026e5fe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888026e5ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888026e5ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888026e60000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888026e60080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess): 0: 89 c6 mov %eax,%esi 2: e8 16 cb 70 ff call 0xff70cb1d 7: 48 85 db test %rbx,%rbx a: 0f 88 a4 00 00 00 js 0xb4 10: bf ff 0f 00 00 mov $0xfff,%edi 15: 48 89 de mov %rbx,%rsi 18: e8 00 cb 70 ff call 0xff70cb1d 1d: 48 81 fb ff 0f 00 00 cmp $0xfff,%rbx 24: 0f 87 91 00 00 00 ja 0xbb * 2a: e8 ae c6 70 ff call 0xff70c6dd <-- trapping instruction 2f: 4c 8b 64 24 08 mov 0x8(%rsp),%r12 34: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 3b: fc ff df 3e: 41 rex.B 3f: 80 .byte 0x80