================================================================== 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 ffff888025c575e0 by task syz.8.6075/20293 CPU: 1 UID: 0 PID: 20293 Comm: syz.8.6075 Tainted: G L Y syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP, [Y]=FORCED_BIND Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/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:2946 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+0x463/0xca0 fs/seq_file.c:231 proc_reg_read_iter+0x1b7/0x280 fs/proc/inode.c:299 do_iter_readv_writev+0x612/0x8c0 fs/read_write.c:-1 vfs_readv+0x28d/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+0x19c/0x2b0 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:0x7f5a3eb9e199 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:00007f5a3fb09028 EFLAGS: 00000246 ORIG_RAX: 0000000000000127 RAX: ffffffffffffffda RBX: 00007f5a3ee25fa0 RCX: 00007f5a3eb9e199 RDX: 0000000000000001 RSI: 0000200000004d00 RDI: 0000000000000003 RBP: 00007f5a3ec358e0 R08: 0000000080000002 R09: 0000000000000000 R10: 0000000000000074 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f5a3ee26038 R14: 00007f5a3ee25fa0 R15: 00007ffd8b0c01e8 Allocated by task 5607: 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:409 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:426 kasan_kmalloc include/linux/kasan.h:263 [inline] __do_kmalloc_node mm/slub.c:5531 [inline] __kmalloc_node_noprof+0x4b4/0x720 mm/slub.c:5543 _kmalloc_node_noprof include/linux/slab.h:1200 [inline] __vmalloc_area_node mm/vmalloc.c:3937 [inline] __vmalloc_node_range_noprof+0x5d1/0x16f0 mm/vmalloc.c:4159 __vmalloc_node_noprof mm/vmalloc.c:4220 [inline] vzalloc_noprof+0xb2/0xe0 mm/vmalloc.c:4298 alloc_counters+0x63/0x5d0 net/ipv6/netfilter/ip6_tables.c:820 copy_entries_to_user net/ipv6/netfilter/ip6_tables.c:842 [inline] get_entries net/ipv6/netfilter/ip6_tables.c:1042 [inline] do_ip6t_get_ctl+0xb17/0x12f0 net/ipv6/netfilter/ip6_tables.c:1683 nf_getsockopt+0x26e/0x290 net/netfilter/nf_sockopt.c:116 ipv6_getsockopt+0x213/0x2c0 net/ipv6/ipv6_sockglue.c:1371 do_sock_getsockopt+0x4aa/0x640 net/socket.c:2505 __sys_getsockopt net/socket.c:2536 [inline] __do_sys_getsockopt net/socket.c:2543 [inline] __se_sys_getsockopt net/socket.c:2540 [inline] __x64_sys_getsockopt+0x1a4/0x240 net/socket.c:2540 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 5607: 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:264 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:296 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2780 [inline] slab_free mm/slub.c:6630 [inline] kfree+0x1c5/0x650 mm/slub.c:6923 vfree+0x426/0x490 mm/vmalloc.c:3555 copy_entries_to_user net/ipv6/netfilter/ip6_tables.c:885 [inline] get_entries net/ipv6/netfilter/ip6_tables.c:1042 [inline] do_ip6t_get_ctl+0xf3e/0x12f0 net/ipv6/netfilter/ip6_tables.c:1683 nf_getsockopt+0x26e/0x290 net/netfilter/nf_sockopt.c:116 ipv6_getsockopt+0x213/0x2c0 net/ipv6/ipv6_sockglue.c:1371 do_sock_getsockopt+0x4aa/0x640 net/socket.c:2505 __sys_getsockopt net/socket.c:2536 [inline] __do_sys_getsockopt net/socket.c:2543 [inline] __se_sys_getsockopt net/socket.c:2540 [inline] __x64_sys_getsockopt+0x1a4/0x240 net/socket.c:2540 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 The buggy address belongs to the object at ffff888025c575e0 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 0 bytes inside of freed 8-byte region [ffff888025c575e0, ffff888025c575e8) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x25c57 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff88813ff24500 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 6610898521 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1854 prep_new_page mm/page_alloc.c:1862 [inline] get_page_from_freelist+0x220f/0x2280 mm/page_alloc.c:3933 __alloc_frozen_pages_noprof+0x1fc/0x400 mm/page_alloc.c:5471 alloc_slab_page mm/slub.c:3384 [inline] allocate_slab+0x7d/0x5e0 mm/slub.c:3499 new_slab mm/slub.c:3550 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7539 refill_sheaf mm/slub.c:2917 [inline] __pcs_replace_empty_main+0x2c8/0x6c0 mm/slub.c:4811 alloc_from_pcs mm/slub.c:4887 [inline] slab_alloc_node mm/slub.c:5021 [inline] __do_kmalloc_node mm/slub.c:5530 [inline] __kmalloc_node_track_caller_noprof+0x543/0x720 mm/slub.c:5662 __kmemdup_nul mm/util.c:64 [inline] kstrdup+0x42/0x100 mm/util.c:84 __kernfs_new_node+0xa9/0x980 fs/kernfs/dir.c:663 kernfs_new_node+0xeb/0x140 fs/kernfs/dir.c:759 kernfs_create_link+0xe3/0x240 fs/kernfs/symlink.c:50 sysfs_do_create_link_sd+0x83/0x110 fs/sysfs/symlink.c:44 device_add_class_symlinks+0x1cf/0x240 drivers/base/core.c:3520 device_add+0x467/0xb80 drivers/base/core.c:3712 tty_register_device_attr+0x428/0x9b0 drivers/tty/tty_io.c:3254 tty_register_device drivers/tty/tty_io.c:3189 [inline] tty_register_driver+0x868/0xe50 drivers/tty/tty_io.c:3469 page_owner free stack trace missing Memory state around the buggy address: ffff888025c57480: 06 fc fc fc 06 fc fc fc 05 fc fc fc 05 fc fc fc ffff888025c57500: 05 fc fc fc 05 fc fc fc 05 fc fc fc 05 fc fc fc >ffff888025c57580: 05 fc fc fc 05 fc fc fc 05 fc fc fc fa fc fc fc ^ ffff888025c57600: 05 fc fc fc fa fc fc fc 00 fc fc fc 05 fc fc fc ffff888025c57680: 00 fc fc fc fa fc fc fc fa fc fc fc 04 fc fc fc ==================================================================