================================================================== BUG: KASAN: slab-use-after-free in string_nocheck lib/vsprintf.c:648 [inline] BUG: KASAN: slab-use-after-free in string+0x216/0x2d0 lib/vsprintf.c:730 Read of size 1 at addr ffff8880262bd5e0 by task syz.0.875/17415 CPU: 0 UID: 0 PID: 17415 Comm: syz.0.875 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/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 string_nocheck lib/vsprintf.c:648 [inline] string+0x216/0x2d0 lib/vsprintf.c:730 vsnprintf+0x74a/0xef0 lib/vsprintf.c:2949 seq_vprintf fs/seq_file.c:392 [inline] seq_printf+0x188/0x290 fs/seq_file.c:407 irq_seq_show+0x5f3/0x860 kernel/irq/proc.c:601 seq_read_iter+0x8d6/0xcb0 fs/seq_file.c:273 proc_reg_read_iter+0x1bf/0x290 fs/proc/inode.c:299 do_iter_readv_writev+0x624/0x8d0 fs/read_write.c:-1 vfs_readv+0x293/0x850 fs/read_write.c:1019 do_preadv fs/read_write.c:1133 [inline] __do_sys_preadv fs/read_write.c:1180 [inline] __se_sys_preadv fs/read_write.c:1175 [inline] __x64_sys_preadv+0x19f/0x2c0 fs/read_write.c:1175 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f09a02ee159 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:00007f099e546028 EFLAGS: 00000246 ORIG_RAX: 0000000000000127 RAX: ffffffffffffffda RBX: 00007f09a0575fa0 RCX: 00007f09a02ee159 RDX: 0000000000000001 RSI: 0000200000004080 RDI: 000000000000000a RBP: 00007f09a038506b R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f09a0576038 R14: 00007f09a0575fa0 R15: 00007fffaa8e1738 Allocated by task 16176: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __do_kmalloc_node mm/slub.c:5414 [inline] __kmalloc_node_track_caller_noprof+0x56e/0x7b0 mm/slub.c:5545 kvasprintf+0xeb/0x1a0 lib/kasprintf.c:25 kobject_set_name_vargs+0x61/0x110 lib/kobject.c:274 kobject_add_varg lib/kobject.c:368 [inline] kobject_init_and_add+0xee/0x1a0 lib/kobject.c:457 rx_queue_add_kobject net/core/net-sysfs.c:1239 [inline] net_rx_queue_update_kobjects+0x247/0x780 net/core/net-sysfs.c:1301 register_queue_kobjects net/core/net-sysfs.c:2093 [inline] netdev_register_kobject+0x23e/0x350 net/core/net-sysfs.c:2344 register_netdevice+0x1455/0x1ed0 net/core/dev.c:11503 veth_newlink+0x4d7/0xdd0 drivers/net/veth.c:1870 rtnl_newlink_create+0x305/0x7b0 net/core/rtnetlink.c:3974 __rtnl_newlink net/core/rtnetlink.c:4103 [inline] rtnl_newlink+0x166d/0x1c30 net/core/rtnetlink.c:4220 rtnetlink_rcv_msg+0x802/0xc00 net/core/rtnetlink.c:7137 netlink_rcv_skb+0x226/0x4a0 net/netlink/af_netlink.c:2575 netlink_unicast_kernel net/netlink/af_netlink.c:1338 [inline] netlink_unicast+0x7f5/0x990 net/netlink/af_netlink.c:1364 netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1919 sock_sendmsg_nosec+0x13a/0x180 net/socket.c:800 __sock_sendmsg net/socket.c:815 [inline] __sys_sendto+0x41e/0x5d0 net/socket.c:2281 __do_sys_sendto net/socket.c:2288 [inline] __se_sys_sendto net/socket.c:2284 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2284 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 12: 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:2748 [inline] slab_free mm/slub.c:6508 [inline] kfree+0x1c5/0x6d0 mm/slub.c:6801 kobject_cleanup lib/kobject.c:695 [inline] kobject_release lib/kobject.c:720 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x267/0x550 lib/kobject.c:737 net_rx_queue_update_kobjects+0x6bf/0x780 net/core/net-sysfs.c:1317 remove_queue_kobjects net/core/net-sysfs.c:2148 [inline] netdev_unregister_kobject+0xff/0x450 net/core/net-sysfs.c:2304 unregister_netdevice_many_notify+0x1bcd/0x2130 net/core/dev.c:12551 unregister_netdevice_many net/core/dev.c:12589 [inline] default_device_exit_batch+0x6d4/0x760 net/core/dev.c:13289 ops_exit_list net/core/net_namespace.c:206 [inline] ops_undo_list+0x4b4/0x8d0 net/core/net_namespace.c:253 cleanup_net+0x575/0x810 net/core/net_namespace.c:706 process_one_work kernel/workqueue.c:3396 [inline] process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3479 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3560 kthread+0x38b/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 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 ffff8880262bd5e0 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 0 bytes inside of freed 8-byte region [ffff8880262bd5e0, ffff8880262bd5e8) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x262bd flags: 0x80000000000000(node=0|zone=1) page_type: f5(slab) raw: 0080000000000000 ffff88813ffbd500 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000800080 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 7009736928 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871 prep_new_page mm/page_alloc.c:1879 [inline] get_page_from_freelist+0x2591/0x2600 mm/page_alloc.c:3943 __alloc_frozen_pages_noprof+0x230/0x5c0 mm/page_alloc.c:5436 alloc_slab_page mm/slub.c:3347 [inline] allocate_slab+0x7d/0x620 mm/slub.c:3462 new_slab mm/slub.c:3513 [inline] refill_objects+0x2d8/0x350 mm/slub.c:7417 refill_sheaf mm/slub.c:2885 [inline] __pcs_replace_empty_main+0x339/0x690 mm/slub.c:4774 alloc_from_pcs mm/slub.c:4850 [inline] slab_alloc_node mm/slub.c:4984 [inline] __do_kmalloc_node mm/slub.c:5413 [inline] __kmalloc_node_track_caller_noprof+0x61e/0x7b0 mm/slub.c:5545 kvasprintf+0xeb/0x1a0 lib/kasprintf.c:25 kasprintf+0xe2/0x140 lib/kasprintf.c:59 serial_core_add_one_port drivers/tty/serial/serial_core.c:3106 [inline] serial_core_register_port+0x60b/0x2b60 drivers/tty/serial/serial_core.c:3353 serial8250_register_8250_port+0x182b/0x2200 drivers/tty/serial/8250/8250_core.c:877 serial_pnp_probe+0x579/0x800 drivers/tty/serial/8250/8250_pnp.c:480 pnp_device_probe+0x30b/0x4c0 drivers/pnp/driver.c:111 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x254/0xae0 drivers/base/dd.c:706 __driver_probe_device+0x1e8/0x360 drivers/base/dd.c:868 driver_probe_device+0x4f/0x240 drivers/base/dd.c:898 page_owner free stack trace missing Memory state around the buggy address: ffff8880262bd480: 05 fc fc fc 06 fc fc fc fa fc fc fc fa fc fc fc ffff8880262bd500: 05 fc fc fc fa fc fc fc fa fc fc fc fa fc fc fc >ffff8880262bd580: 06 fc fc fc fa fc fc fc fa fc fc fc fa fc fc fc ^ ffff8880262bd600: 05 fc fc fc 06 fc fc fc 06 fc fc fc 06 fc fc fc ffff8880262bd680: 06 fc fc fc 05 fc fc fc 00 fc fc fc fa fc fc fc ==================================================================