udc-core: couldn't find an available UDC or it's busy misc raw-gadget: fail, usb_gadget_probe_driver returned -16 ================================================================== BUG: KASAN: use-after-free in string_nocheck lib/vsprintf.c:641 [inline] BUG: KASAN: use-after-free in string+0x21f/0x2b0 lib/vsprintf.c:723 Read of size 1 at addr ffff88810f2d88b9 by task syz.2.591/2735 CPU: 0 PID: 2735 Comm: syz.2.591 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/14/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+0x1a6/0x650 drivers/input/input.c:1186 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:0x7f632c195ba9 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:00007f632abfe038 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007f632c3dcfa0 RCX: 00007f632c195ba9 RDX: 0000000000002020 RSI: 000020000000ac40 RDI: 0000000000000008 RBP: 00007f632c218e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f632c3dd038 R14: 00007f632c3dcfa0 R15: 00007ffdd6ce4918 Allocated by task 0: (stack is not available) Freed by task 2537: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4a/0x70 mm/kasan/common.c:45 kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370 ____kasan_slab_free+0x125/0x160 mm/kasan/common.c:362 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:370 kasan_slab_free include/linux/kasan.h:220 [inline] slab_free_hook mm/slub.c:1600 [inline] slab_free_freelist_hook+0xc5/0x190 mm/slub.c:1626 slab_free mm/slub.c:3208 [inline] kfree+0xc0/0x270 mm/slub.c:4196 skb_free_head net/core/skbuff.c:606 [inline] skb_release_data+0x532/0x670 net/core/skbuff.c:626 skb_release_all net/core/skbuff.c:680 [inline] __kfree_skb net/core/skbuff.c:694 [inline] consume_skb+0xab/0x1f0 net/core/skbuff.c:851 netlink_broadcast_filtered+0x117d/0x1270 net/netlink/af_netlink.c:1530 netlink_broadcast net/netlink/af_netlink.c:1552 [inline] nlmsg_multicast include/net/netlink.h:1033 [inline] nlmsg_notify+0xed/0x1b0 net/netlink/af_netlink.c:2546 rtnl_notify+0x9a/0xc0 net/core/rtnetlink.c:737 inet6_netconf_notify_devconf+0x12f/0x190 net/ipv6/addrconf.c:591 __addrconf_sysctl_register+0x365/0x3d0 net/ipv6/addrconf.c:7072 addrconf_sysctl_register+0x147/0x1a0 net/ipv6/addrconf.c:7109 ipv6_add_dev+0xbaf/0x10a0 net/ipv6/addrconf.c:450 addrconf_notify+0x582/0xe90 net/ipv6/addrconf.c:3571 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 register_netdev+0x3e/0x50 net/core/dev.c:10180 ip6_tnl_init_net+0x2e4/0x3a0 net/ipv6/ip6_tunnel.c:2315 ops_init+0x1ba/0x4a0 net/core/net_namespace.c:144 setup_net+0x36d/0xb50 net/core/net_namespace.c:345 copy_net_ns+0x314/0x520 net/core/net_namespace.c:486 create_new_namespaces+0x3a2/0x650 kernel/nsproxy.c:110 copy_namespaces+0x1d1/0x220 kernel/nsproxy.c:179 copy_process+0x11b8/0x32c0 kernel/fork.c:2271 kernel_clone+0x23f/0x940 kernel/fork.c:2650 __do_sys_clone3 kernel/fork.c:2934 [inline] __se_sys_clone3 kernel/fork.c:2918 [inline] __x64_sys_clone3+0x296/0x2f0 kernel/fork.c:2918 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb The buggy address belongs to the object at ffff88810f2d8800 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 185 bytes inside of 512-byte region [ffff88810f2d8800, ffff88810f2d8a00) The buggy address belongs to the page: page:ffffea00043cb600 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88810f2dac00 pfn:0x10f2d8 head:ffffea00043cb600 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head) raw: 4000000000010200 ffffea00049dde08 ffffea00046f0008 ffff888100043080 raw: ffff88810f2dac00 000000000010000f 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 98, ts 5653927535, free_ts 0 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:5370 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1813 [inline] new_slab+0x84/0x3f0 mm/slub.c:1874 new_slab_objects mm/slub.c:2632 [inline] ___slab_alloc+0x2a6/0x450 mm/slub.c:2796 __slab_alloc+0x63/0xa0 mm/slub.c:2836 slab_alloc_node mm/slub.c:2918 [inline] slab_alloc mm/slub.c:2960 [inline] __kmalloc_track_caller+0x1ef/0x320 mm/slub.c:4541 __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] alloc_skb_with_frags+0xa2/0x560 net/core/skbuff.c:5993 sock_alloc_send_pskb+0x853/0x980 net/core/sock.c:2388 unix_dgram_sendmsg+0x5f4/0x17d0 net/unix/af_unix.c:1725 sock_sendmsg_nosec net/socket.c:652 [inline] __sock_sendmsg net/socket.c:664 [inline] sock_write_iter+0x29c/0x380 net/socket.c:1018 call_write_iter include/linux/fs.h:2066 [inline] new_sync_write fs/read_write.c:518 [inline] vfs_write+0x725/0xd60 fs/read_write.c:605 ksys_write+0x140/0x240 fs/read_write.c:658 __do_sys_write fs/read_write.c:670 [inline] __se_sys_write fs/read_write.c:667 [inline] __x64_sys_write+0x7b/0x90 fs/read_write.c:667 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 page_owner free stack trace missing Memory state around the buggy address: ffff88810f2d8780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88810f2d8800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88810f2d8880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88810f2d8900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88810f2d8980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================