================================================================== BUG: KASAN: slab-use-after-free in string_nocheck lib/vsprintf.c:648 [inline] BUG: KASAN: slab-use-after-free in string+0x471/0x4d0 lib/vsprintf.c:730 Read of size 1 at addr ffff88802705cd00 by task syz.4.4588/18824 CPU: 0 UID: 0 PID: 18824 Comm: syz.4.4588 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/05/2026 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x13d/0x4b0 mm/kasan/report.c:482 kasan_report+0xdf/0x1c0 mm/kasan/report.c:595 string_nocheck lib/vsprintf.c:648 [inline] string+0x471/0x4d0 lib/vsprintf.c:730 vsnprintf+0x422/0x1300 lib/vsprintf.c:2949 seq_vprintf fs/seq_file.c:392 [inline] seq_printf+0x1a4/0x250 fs/seq_file.c:407 irq_seq_show+0x390/0x8b0 kernel/irq/proc.c:601 seq_read_iter+0xbce/0x1270 fs/seq_file.c:273 proc_reg_read_iter+0x220/0x310 fs/proc/inode.c:299 new_sync_read fs/read_write.c:493 [inline] vfs_read+0x82e/0xb40 fs/read_write.c:574 ksys_read+0x12a/0x250 fs/read_write.c:716 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7feac4f9e159 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:00007feac5eb8028 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007feac5225fa0 RCX: 00007feac4f9e159 RDX: 0000000000002020 RSI: 00002000000043c0 RDI: 0000000000000004 RBP: 00007feac503506b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007feac5226038 R14: 00007feac5225fa0 R15: 00007ffe9e85fb58 Allocated by task 13065: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __do_kmalloc_node mm/slub.c:5414 [inline] __kmalloc_noprof+0x32f/0x840 mm/slub.c:5439 _kmalloc_noprof include/linux/slab.h:995 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] nsim_fib6_event_init drivers/net/netdevsim/fib.c:810 [inline] nsim_fib6_prepare_event drivers/net/netdevsim/fib.c:947 [inline] nsim_fib_event_schedule_work drivers/net/netdevsim/fib.c:1003 [inline] nsim_fib_event_nb+0x661/0xe50 drivers/net/netdevsim/fib.c:1043 notifier_call_chain+0x99/0x3f0 kernel/notifier.c:85 atomic_notifier_call_chain+0x71/0x1c0 kernel/notifier.c:223 call_fib_notifiers+0x33/0x70 net/core/fib_notifier.c:36 call_fib6_entry_notifiers net/ipv6/ip6_fib.c:412 [inline] fib6_add_rt2node+0x14e3/0x3df0 net/ipv6/ip6_fib.c:1258 fib6_add+0x60e/0x1eb0 net/ipv6/ip6_fib.c:1535 __ip6_ins_rt net/ipv6/route.c:1356 [inline] ip6_ins_rt+0xb5/0x110 net/ipv6/route.c:1366 __ipv6_ifa_notify+0xbf1/0xf90 net/ipv6/addrconf.c:6320 ipv6_ifa_notify net/ipv6/addrconf.c:6359 [inline] addrconf_dad_completed+0x195/0xff0 net/ipv6/addrconf.c:4356 addrconf_dad_begin net/ipv6/addrconf.c:4158 [inline] addrconf_dad_work+0xb1e/0x1360 net/ipv6/addrconf.c:4263 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396 process_scheduled_works kernel/workqueue.c:3479 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Freed by task 5730: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 kasan_save_free_info+0x3b/0x70 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5f/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+0x22b/0x6d0 mm/slub.c:6801 nsim_fib_event drivers/net/netdevsim/fib.c:891 [inline] nsim_fib_event_work+0x352/0x6330 drivers/net/netdevsim/fib.c:1493 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396 process_scheduled_works kernel/workqueue.c:3479 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x730/0xd60 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 ffff88802705cd00 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 0 bytes inside of freed 8-byte region [ffff88802705cd00, ffff88802705cd08) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802705cc00 pfn:0x2705c flags: 0xfff00000000200(workingset|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000200 ffff88801c034500 ffffea0001447b90 ffffea000118fc90 raw: ffff88802705cc00 0000000000800071 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 3504948002 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1871 prep_new_page mm/page_alloc.c:1879 [inline] get_page_from_freelist+0x110d/0x35d0 mm/page_alloc.c:3943 __alloc_frozen_pages_noprof+0x2eb/0x3300 mm/page_alloc.c:5436 alloc_slab_page mm/slub.c:3347 [inline] allocate_slab mm/slub.c:3462 [inline] new_slab+0xa9/0x6e0 mm/slub.c:3513 refill_objects+0xe3/0x410 mm/slub.c:7417 refill_sheaf mm/slub.c:2885 [inline] __pcs_replace_empty_main+0x35e/0x650 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+0x6a8/0x870 mm/slub.c:5545 __kmemdup_nul mm/util.c:64 [inline] kstrdup+0x51/0xe0 mm/util.c:84 kstrdup_const+0x63/0x80 mm/util.c:104 __kernfs_new_node+0x9b/0xa10 fs/kernfs/dir.c:661 kernfs_new_node+0x117/0x150 fs/kernfs/dir.c:751 kernfs_create_link+0xcc/0x240 fs/kernfs/symlink.c:39 sysfs_do_create_link_sd+0x90/0x140 fs/sysfs/symlink.c:44 sysfs_do_create_link fs/sysfs/symlink.c:80 [inline] sysfs_create_link+0x61/0xc0 fs/sysfs/symlink.c:92 device_create_sys_dev_entry drivers/base/core.c:3587 [inline] device_add+0xb62/0x1970 drivers/base/core.c:3731 tty_register_device_attr+0x388/0x7f0 drivers/tty/tty_io.c:3236 page_owner free stack trace missing Memory state around the buggy address: ffff88802705cc00: fa fc fc fc fa fc fc fc fa fc fc fc fa fc fc fc ffff88802705cc80: fa fc fc fc fa fc fc fc fa fc fc fc fa fc fc fc >ffff88802705cd00: fa fc fc fc fa fc fc fc fa fc fc fc fa fc fc fc ^ ffff88802705cd80: fa fc fc fc 00 fc fc fc fa fc fc fc fa fc fc fc ffff88802705ce00: 04 fc fc fc 00 fc fc fc 00 fc fc fc 06 fc fc fc ==================================================================