================================================================== BUG: KASAN: slab-out-of-bounds in string_nocheck lib/vsprintf.c:641 [inline] BUG: KASAN: slab-out-of-bounds in string+0x21f/0x2b0 lib/vsprintf.c:723 Read of size 1 at addr ffff88811ace3d78 by task syz.6.4155/15395 CPU: 0 PID: 15395 Comm: syz.6.4155 Tainted: G W 5.10.238-syzkaller-00282-gd76d4cd0623a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x169/0x1d8 lib/dump_stack.c:118 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report+0xe2/0x130 mm/kasan/report.c:452 __asan_report_load1_noabort+0x14/0x20 mm/kasan/report_generic.c:306 string_nocheck lib/vsprintf.c:641 [inline] string+0x21f/0x2b0 lib/vsprintf.c:723 vsnprintf+0xf20/0x1960 lib/vsprintf.c:2689 seq_vprintf fs/seq_file.c:398 [inline] seq_printf+0x175/0x260 fs/seq_file.c:413 input_devices_seq_show+0x14b/0x650 drivers/input/input.c:1184 seq_read_iter+0x93f/0xd30 fs/seq_file.c:272 seq_read+0x3cc/0x4d0 fs/seq_file.c:162 pde_read fs/proc/inode.c:321 [inline] proc_reg_read+0x1c4/0x2b0 fs/proc/inode.c:333 vfs_read+0x1fe/0xa10 fs/read_write.c:494 ksys_read+0x140/0x240 fs/read_write.c:634 __do_sys_read fs/read_write.c:644 [inline] __se_sys_read fs/read_write.c:642 [inline] __x64_sys_read+0x7b/0x90 fs/read_write.c:642 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f4456994929 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f4454ffd038 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007f4456bbbfa0 RCX: 00007f4456994929 RDX: 0000000000000ffc RSI: 00002000000000c0 RDI: 0000000000000004 RBP: 00007f4456a16b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f4456bbbfa0 R15: 00007ffed39ac8f8 Allocated by task 9804: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:430 [inline] ____kasan_kmalloc mm/kasan/common.c:509 [inline] __kasan_kmalloc+0xda/0x110 mm/kasan/common.c:518 kasan_kmalloc include/linux/kasan.h:254 [inline] __kmalloc+0x1a7/0x330 mm/slub.c:4033 kmalloc include/linux/slab.h:557 [inline] kzalloc include/linux/slab.h:664 [inline] new_dir fs/proc/proc_sysctl.c:954 [inline] get_subdir fs/proc/proc_sysctl.c:999 [inline] __register_sysctl_table+0xa38/0x1250 fs/proc/proc_sysctl.c:1348 register_net_sysctl+0x2c/0x40 net/sysctl_net.c:121 neigh_sysctl_register+0x998/0xa70 net/core/neighbour.c:3718 addrconf_sysctl_register+0xb3/0x1a0 net/ipv6/addrconf.c:7092 ipv6_add_dev+0xbaf/0x10a0 net/ipv6/addrconf.c:448 addrconf_notify+0x582/0xe90 net/ipv6/addrconf.c:3567 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0x90/0x100 kernel/notifier.c:410 call_netdevice_notifiers_info net/core/dev.c:2054 [inline] call_netdevice_notifiers_extack net/core/dev.c:2066 [inline] call_netdevice_notifiers+0x111/0x190 net/core/dev.c:2080 register_netdevice+0x1043/0x13c0 net/core/dev.c:10087 veth_newlink+0x641/0xbb0 drivers/net/veth.c:1360 __rtnl_newlink net/core/rtnetlink.c:3482 [inline] rtnl_newlink+0x11bd/0x1640 net/core/rtnetlink.c:3530 rtnetlink_rcv_msg+0x9db/0xb90 net/core/rtnetlink.c:5610 netlink_rcv_skb+0x1e0/0x430 net/netlink/af_netlink.c:2485 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5628 netlink_unicast_kernel net/netlink/af_netlink.c:1307 [inline] netlink_unicast+0x87c/0xa40 net/netlink/af_netlink.c:1333 netlink_sendmsg+0x88d/0xb30 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:652 [inline] __sock_sendmsg net/socket.c:664 [inline] __sys_sendto+0x41d/0x580 net/socket.c:2006 __do_sys_sendto net/socket.c:2018 [inline] __se_sys_sendto net/socket.c:2014 [inline] __x64_sys_sendto+0xe5/0x100 net/socket.c:2014 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:38 __kasan_record_aux_stack+0xd2/0x100 mm/kasan/generic.c:348 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358 __call_rcu kernel/rcu/tree.c:2976 [inline] call_rcu+0x105/0x1040 kernel/rcu/tree.c:3050 inetdev_destroy net/ipv4/devinet.c:330 [inline] inetdev_event+0x83c/0x1030 net/ipv4/devinet.c:1613 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0x90/0x100 kernel/notifier.c:410 call_netdevice_notifiers_info net/core/dev.c:2054 [inline] call_netdevice_notifiers_extack net/core/dev.c:2066 [inline] call_netdevice_notifiers net/core/dev.c:2080 [inline] unregister_netdevice_many+0xf8b/0x1980 net/core/dev.c:10767 sit_exit_batch_net+0x607/0x650 net/ipv6/sit.c:1943 ops_exit_list net/core/net_namespace.c:190 [inline] cleanup_net+0x5fb/0xb70 net/core/net_namespace.c:609 process_one_work+0x6e1/0xba0 kernel/workqueue.c:2301 worker_thread+0xa6a/0x13b0 kernel/workqueue.c:2447 kthread+0x346/0x3d0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Second to last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:38 __kasan_record_aux_stack+0xd2/0x100 mm/kasan/generic.c:348 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358 insert_work+0x52/0x310 kernel/workqueue.c:1352 __queue_work+0x923/0xca0 kernel/workqueue.c:1518 queue_work_on+0xd5/0x130 kernel/workqueue.c:1545 queue_work include/linux/workqueue.h:515 [inline] schedule_work include/linux/workqueue.h:576 [inline] xpad360w_process_packet drivers/input/joystick/xpad.c:846 [inline] xpad_irq_in+0xd07/0x1a80 drivers/input/joystick/xpad.c:984 __usb_hcd_giveback_urb+0x333/0x4f0 drivers/usb/core/hcd.c:1674 usb_hcd_giveback_urb+0x119/0x410 drivers/usb/core/hcd.c:1748 dummy_timer+0x804/0x2c30 drivers/usb/gadget/udc/dummy_hcd.c:1974 call_timer_fn+0x38/0x290 kernel/time/timer.c:1450 expire_timers kernel/time/timer.c:1495 [inline] __run_timers+0x639/0x9a0 kernel/time/timer.c:1789 run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1802 __do_softirq+0x255/0x563 kernel/softirq.c:309 The buggy address belongs to the object at ffff88811ace3c00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 376 bytes inside of 512-byte region [ffff88811ace3c00, ffff88811ace3e00) The buggy address belongs to the page: page:ffffea00046b3800 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88811ace0400 pfn:0x11ace0 head:ffffea00046b3800 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head) raw: 4000000000010200 ffffea0004498508 ffffea00043b4a08 ffff888100043080 raw: ffff88811ace0400 000000000010000c 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 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 48, ts 233795120530, free_ts 233663726481 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x179/0x180 mm/page_alloc.c:2462 get_page_from_freelist+0x2235/0x23d0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x268/0x5f0 mm/page_alloc.c:5357 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1808 [inline] new_slab+0x84/0x3f0 mm/slub.c:1869 new_slab_objects mm/slub.c:2627 [inline] ___slab_alloc+0x2a6/0x450 mm/slub.c:2791 __slab_alloc+0x63/0xa0 mm/slub.c:2831 slab_alloc_node mm/slub.c:2913 [inline] slab_alloc mm/slub.c:2955 [inline] __kmalloc_track_caller+0x1ef/0x320 mm/slub.c:4536 __kmalloc_reserve net/core/skbuff.c:144 [inline] __alloc_skb+0xdc/0x520 net/core/skbuff.c:212 alloc_skb include/linux/skbuff.h:1126 [inline] nlmsg_new include/net/netlink.h:953 [inline] inet6_netconf_notify_devconf+0xd6/0x190 net/ipv6/addrconf.c:577 __addrconf_sysctl_unregister net/ipv6/addrconf.c:7082 [inline] addrconf_sysctl_unregister net/ipv6/addrconf.c:7106 [inline] addrconf_ifdown+0x1545/0x1800 net/ipv6/addrconf.c:3936 addrconf_notify+0x3bd/0xe90 net/ipv6/addrconf.c:-1 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0x90/0x100 kernel/notifier.c:410 call_netdevice_notifiers_info net/core/dev.c:2054 [inline] call_netdevice_notifiers_extack net/core/dev.c:2066 [inline] call_netdevice_notifiers net/core/dev.c:2080 [inline] unregister_netdevice_many+0xf8b/0x1980 net/core/dev.c:10767 ip_tunnel_delete_nets+0x343/0x390 net/ipv4/ip_tunnel.c:1136 ipgre_tap_exit_batch_net+0x22/0x30 net/ipv4/ip_gre.c:1706 ops_exit_list net/core/net_namespace.c:190 [inline] cleanup_net+0x5fb/0xb70 net/core/net_namespace.c:609 page last free stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1349 [inline] __free_pages_ok+0x7fc/0x820 mm/page_alloc.c:1629 free_the_page mm/page_alloc.c:5418 [inline] __free_pages+0xdd/0x380 mm/page_alloc.c:5427 __free_slab+0xcf/0x190 mm/slub.c:1894 free_slab mm/slub.c:1909 [inline] discard_slab mm/slub.c:1915 [inline] unfreeze_partials+0x15f/0x190 mm/slub.c:2410 put_cpu_partial+0xc1/0x180 mm/slub.c:2446 __slab_free+0x2c9/0x3a0 mm/slub.c:3095 do_slab_free mm/slub.c:3191 [inline] ___cache_free+0x111/0x130 mm/slub.c:3210 qlink_free+0x50/0x90 mm/kasan/quarantine.c:157 qlist_free_all+0x5f/0xb0 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x14a/0x160 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xf0 mm/kasan/common.c:440 kasan_slab_alloc include/linux/kasan.h:244 [inline] slab_post_alloc_hook+0x5d/0x2f0 mm/slab.h:583 slab_alloc_node mm/slub.c:2947 [inline] slab_alloc mm/slub.c:2955 [inline] kmem_cache_alloc_trace+0x160/0x2e0 mm/slub.c:2972 kmalloc include/linux/slab.h:552 [inline] usb_control_msg+0x74/0x3f0 drivers/usb/core/message.c:143 get_port_status drivers/usb/core/hub.c:589 [inline] hub_ext_port_status+0x100/0x6b0 drivers/usb/core/hub.c:606 hub_port_status drivers/usb/core/hub.c:628 [inline] port_event drivers/usb/core/hub.c:5663 [inline] hub_event+0x746/0x4120 drivers/usb/core/hub.c:5841 Memory state around the buggy address: ffff88811ace3c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811ace3c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88811ace3d00: 03 fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88811ace3d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88811ace3e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================