================================================================== BUG: KASAN: use-after-free in string_nocheck lib/vsprintf.c:643 [inline] BUG: KASAN: use-after-free in string+0x204/0x290 lib/vsprintf.c:725 Read of size 1 at addr ffff888142739988 by task syz.0.7278/28367 CPU: 0 PID: 28367 Comm: syz.0.7278 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x210 mm/kasan/report.c:420 kasan_report+0x10b/0x140 mm/kasan/report.c:524 string_nocheck lib/vsprintf.c:643 [inline] string+0x204/0x290 lib/vsprintf.c:725 vsnprintf+0x10db/0x1c20 lib/vsprintf.c:2805 seq_vprintf fs/seq_file.c:391 [inline] seq_printf+0x185/0x280 fs/seq_file.c:406 show_interrupts+0x956/0xaf0 kernel/irq/proc.c:527 seq_read_iter+0x8af/0xc50 fs/seq_file.c:272 proc_reg_read_iter+0x1a9/0x270 fs/proc/inode.c:305 call_read_iter include/linux/fs.h:2265 [inline] new_sync_read fs/read_write.c:389 [inline] vfs_read+0x471/0x960 fs/read_write.c:470 ksys_read+0x14d/0x260 fs/read_write.c:613 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fd30279f559 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:00007fd3036cb028 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007fd302a25fa0 RCX: 00007fd30279f559 RDX: 0000000000002020 RSI: 00002000000003c0 RDI: 0000000000000003 RBP: 00007fd302836b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fd302a26038 R14: 00007fd302a25fa0 R15: 00007ffcf55bb958 Allocated by task 1: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 ____kasan_kmalloc mm/kasan/common.c:375 [inline] __kasan_kmalloc+0x8e/0xa0 mm/kasan/common.c:384 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:936 [inline] __kmalloc_node_track_caller+0xb0/0x240 mm/slab_common.c:956 kvasprintf+0xe8/0x1a0 lib/kasprintf.c:25 kasprintf+0xdf/0x130 lib/kasprintf.c:59 uart_add_one_port+0x3ae/0x1e70 drivers/tty/serial/serial_core.c:3116 serial8250_register_8250_port+0x1321/0x1b40 drivers/tty/serial/8250/8250_core.c:1092 serial_pnp_probe+0x56f/0x750 drivers/tty/serial/8250/8250_pnp.c:478 pnp_device_probe+0x301/0x4b0 drivers/pnp/driver.c:111 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x24a/0xb40 drivers/base/dd.c:638 __driver_probe_device+0x1f5/0x390 drivers/base/dd.c:804 driver_probe_device+0x4f/0x420 drivers/base/dd.c:834 __driver_attach+0x43d/0x6c0 drivers/base/dd.c:1220 bus_for_each_dev+0x182/0x1f0 drivers/base/bus.c:303 bus_add_driver+0x324/0x5d0 drivers/base/bus.c:620 driver_register+0x32d/0x430 drivers/base/driver.c:246 serial8250_init+0x96/0x161 drivers/tty/serial/8250/8250_core.c:1191 do_one_initcall+0x257/0x800 init/main.c:1271 do_initcall_level+0x13d/0x1ed init/main.c:1344 do_initcalls+0x4b/0x8a init/main.c:1360 kernel_init_freeable+0x401/0x5ab init/main.c:1599 kernel_init+0x19/0x1b0 init/main.c:1487 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 The buggy address belongs to the object at ffff888142739988 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 0 bytes inside of 8-byte region [ffff888142739988, ffff888142739990) The buggy address belongs to the physical page: page:ffffea000509ce40 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888142739b18 pfn:0x142739 flags: 0x57ff00000000200(slab|node=1|zone=2|lastcpupid=0x7ff) raw: 057ff00000000200 ffffea00050cb708 ffffea0005139988 ffff888018441280 raw: ffff888142739b18 0000000000660049 00000001ffffffff 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 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 1, tgid 1 (swapper/0), ts 6043522059, free_ts 0 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2560 prep_new_page mm/page_alloc.c:2567 [inline] get_page_from_freelist+0x206b/0x2180 mm/page_alloc.c:4358 __alloc_pages+0x1ec/0x4f0 mm/page_alloc.c:5658 alloc_page_interleave+0x24/0x1e0 mm/mempolicy.c:2115 alloc_slab_page+0x5d/0x180 mm/slub.c:1799 allocate_slab mm/slub.c:1944 [inline] new_slab+0x87/0x2d0 mm/slub.c:1997 ___slab_alloc+0xbc5/0x1240 mm/slub.c:3154 __slab_alloc mm/slub.c:3240 [inline] slab_alloc_node mm/slub.c:3325 [inline] __kmem_cache_alloc_node+0x126/0x270 mm/slub.c:3398 __do_kmalloc_node mm/slab_common.c:935 [inline] __kmalloc_node_track_caller+0xa0/0x240 mm/slab_common.c:956 kstrdup mm/util.c:61 [inline] kstrdup_const+0x56/0x90 mm/util.c:84 __kernfs_new_node+0xa6/0x7f0 fs/kernfs/dir.c:610 kernfs_new_node+0x148/0x250 fs/kernfs/dir.c:690 kernfs_create_link+0xa3/0x200 fs/kernfs/symlink.c:39 sysfs_do_create_link_sd+0x83/0x110 fs/sysfs/symlink.c:44 device_create_sys_dev_entry+0x11b/0x180 drivers/base/core.c:3522 device_add+0xb24/0x1050 drivers/base/core.c:3664 page_owner free stack trace missing Memory state around the buggy address: ffff888142739880: fc fc fc 06 fc fc fc fc 06 fc fc fc fc 00 fc fc ffff888142739900: fc fc 00 fc fc fc fc 04 fc fc fc fc fb fc fc fc >ffff888142739980: fc fb fc fc fc fc fb fc fc fc fc fb fc fc fc fc ^ ffff888142739a00: fb fc fc fc fc fb fc fc fc fc fb fc fc fc fc fb ffff888142739a80: fc fc fc fc fb fc fc fc fc fb fc fc fc fc 06 fc ==================================================================