input: syz1 as /devices/virtual/input/input118 ================================================================== BUG: KASAN: slab-out-of-bounds in string_nocheck lib/vsprintf.c:648 [inline] BUG: KASAN: slab-out-of-bounds in string+0x216/0x2d0 lib/vsprintf.c:730 Read of size 1 at addr ffff8880342dc758 b Read of size 1 at addr ffff8880342dc758 by task syz.7.4236/22582 CPU: 0 UID: 0 PID: 22582 Comm: syz.7.4236 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP 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 input_devices_seq_show+0x10f/0x640 drivers/input/input.c:1178 traverse+0x229/0x620 fs/seq_file.c:112 seq_read_iter+0xb6a/0xca0 fs/seq_file.c:196 seq_read+0x367/0x480 fs/seq_file.c:163 pde_read fs/proc/inode.c:308 [inline] proc_reg_read+0x1e9/0x2e0 fs/proc/inode.c:320 do_loop_readv_writev fs/read_write.c:848 [inline] vfs_readv+0x57c/0x850 fs/read_write.c:1021 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:0x7ff37999e159 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:00007ff37a8d5028 EFLAGS: 00000246 ORIG_RAX: 0000000000000127 RAX: ffffffffffffffda RBX: 00007ff379c25fa0 RCX: 00007ff37999e159 RDX: 0000000000000001 RSI: 00002000000000c0 RDI: 0000000000000007 RBP: 00007ff379a3506b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000008000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff379c26038 R14: 00007ff379c25fa0 R15: 00007ff379d4fa48 Allocated by task 15981: 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] __kmalloc_cache_noprof+0x321/0x600 mm/slub.c:5563 _kmalloc_noprof include/linux/slab.h:991 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] nsim_fib_create+0xac/0xae0 drivers/net/netdevsim/fib.c:1559 nsim_drv_probe+0x7c2/0xbb0 drivers/net/netdevsim/dev.c:1634 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 __device_attach_driver+0x270/0x410 drivers/base/dd.c:1026 bus_for_each_drv+0x258/0x2f0 drivers/base/bus.c:500 __device_attach+0x2c4/0x450 drivers/base/dd.c:1098 device_initial_probe+0xa1/0xd0 drivers/base/dd.c:1153 bus_probe_device+0x12a/0x220 drivers/base/bus.c:620 device_add+0x7d7/0xb80 drivers/base/core.c:3776 nsim_bus_dev_new drivers/net/netdevsim/bus.c:468 [inline] new_device_store+0x355/0x6d0 drivers/net/netdevsim/bus.c:191 kernfs_fop_write_iter+0x3a4/0x540 fs/kernfs/file.c:345 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x612/0xba0 fs/read_write.c:687 ksys_write+0x150/0x270 fs/read_write.c:739 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 Last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:57 kasan_record_aux_stack+0xbd/0xd0 mm/kasan/generic.c:556 insert_work+0x3d/0x330 kernel/workqueue.c:2272 __queue_work+0xd07/0x10d0 kernel/workqueue.c:2448 queue_work_on+0x106/0x1d0 kernel/workqueue.c:2501 queue_work include/linux/workqueue.h:700 [inline] schedule_work include/linux/workqueue.h:761 [inline] nsim_fib_event_schedule_work drivers/net/netdevsim/fib.c:-1 [inline] nsim_fib_event_nb+0xf64/0x11d0 drivers/net/netdevsim/fib.c:1043 notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:85 atomic_notifier_call_chain+0xda/0x180 kernel/notifier.c:223 call_fib_notifiers+0x31/0x60 net/core/fib_notifier.c:36 call_fib_entry_notifiers+0x158/0x200 net/ipv4/fib_trie.c:107 fib_notify_alias_delete net/ipv4/fib_trie.c:1683 [inline] fib_table_delete+0xa47/0xd40 net/ipv4/fib_trie.c:1739 fib_magic+0x45d/0x530 net/ipv4/fib_frontend.c:1149 fib_del_ifaddr+0x10a9/0x1490 net/ipv4/fib_frontend.c:1360 fib_inetaddr_event+0xbb/0x190 net/ipv4/fib_frontend.c:1491 notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:85 blocking_notifier_call_chain+0x6a/0x90 kernel/notifier.c:380 __inet_del_ifa+0xa69/0x1040 net/ipv4/devinet.c:450 inet_del_ifa net/ipv4/devinet.c:487 [inline] inetdev_destroy net/ipv4/devinet.c:330 [inline] inetdev_event+0x64b/0x15e0 net/ipv4/devinet.c:1655 notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2313 [inline] call_netdevice_notifiers net/core/dev.c:2327 [inline] unregister_netdevice_many_notify+0x17f9/0x2140 net/core/dev.c:12518 rtnl_delete_link net/core/rtnetlink.c:3657 [inline] rtnl_dellink+0x5be/0x810 net/core/rtnetlink.c:3699 rtnetlink_rcv_msg+0x802/0xc00 net/core/rtnetlink.c:7137 netlink_rcv_skb+0x226/0x4a0 net/netlink/af_netlink.c:2556 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x7bd/0x940 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1900 sock_sendmsg_nosec+0x13a/0x180 net/socket.c:800 __sock_sendmsg net/socket.c:815 [inline] ____sys_sendmsg+0x54e/0x850 net/socket.c:2713 ___sys_sendmsg+0x2a5/0x360 net/socket.c:2767 __sys_sendmsg net/socket.c:2799 [inline] __do_sys_sendmsg net/socket.c:2804 [inline] __se_sys_sendmsg net/socket.c:2802 [inline] __x64_sys_sendmsg+0x1b1/0x290 net/socket.c:2802 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 Second to last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:57 kasan_record_aux_stack+0xbd/0xd0 mm/kasan/generic.c:556 insert_work+0x3d/0x330 kernel/workqueue.c:2272 __queue_work+0xd07/0x10d0 kernel/workqueue.c:2448 queue_work_on+0x106/0x1d0 kernel/workqueue.c:2501 queue_work include/linux/workqueue.h:700 [inline] schedule_work include/linux/workqueue.h:761 [inline] nsim_fib_event_schedule_work drivers/net/netdevsim/fib.c:-1 [inline] nsim_fib_event_nb+0xf64/0x11d0 drivers/net/netdevsim/fib.c:1043 notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:85 atomic_notifier_call_chain+0xda/0x180 kernel/notifier.c:223 call_fib_notifiers+0x31/0x60 net/core/fib_notifier.c:36 call_fib6_entry_notifiers net/ipv6/ip6_fib.c:412 [inline] fib6_add_rt2node+0x15f3/0x3940 net/ipv6/ip6_fib.c:1258 fib6_add+0x9ae/0x1a20 net/ipv6/ip6_fib.c:1535 __ip6_ins_rt net/ipv6/route.c:1356 [inline] ip6_ins_rt+0xd6/0x140 net/ipv6/route.c:1366 __ipv6_ifa_notify+0x4e8/0xc60 net/ipv6/addrconf.c:6320 ipv6_ifa_notify net/ipv6/addrconf.c:6359 [inline] addrconf_dad_completed+0x1a1/0xe60 net/ipv6/addrconf.c:4356 addrconf_dad_work+0xcf8/0x15c0 net/ipv6/addrconf.c:-1 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/0x480 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 ffff8880342dc000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 464 bytes to the right of allocated 1416-byte region [ffff8880342dc000, ffff8880342dc588) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x342d8 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801b042000 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000080008 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801b042000 dead000000000100 dead000000000122 head: 0000000000000000 0000000000080008 00000000f5000000 0000000000000000 head: 00fff00000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5632, tgid 5632 (syz-executor), ts 74756908211 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+0x2209/0x2280 mm/page_alloc.c:3943 __alloc_frozen_pages_noprof+0x217/0x5a0 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+0x2d5/0x350 mm/slub.c:7417 refill_sheaf mm/slub.c:2885 [inline] __pcs_replace_empty_main+0x2c8/0x6c0 mm/slub.c:4774 alloc_from_pcs mm/slub.c:4850 [inline] slab_alloc_node mm/slub.c:4984 [inline] __kmalloc_cache_noprof+0x39b/0x600 mm/slub.c:5559 _kmalloc_noprof include/linux/slab.h:991 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] rxrpc_alloc_connection+0x7b/0x590 net/rxrpc/conn_object.c:62 rxrpc_prealloc_service_connection+0x26/0x300 net/rxrpc/conn_service.c:123 rxrpc_service_prealloc_one+0x2d6/0xe10 net/rxrpc/call_accept.c:86 rxrpc_kernel_charge_accept+0xc7/0x120 net/rxrpc/call_accept.c:489 afs_charge_preallocation+0x3ec/0x570 fs/afs/rxrpc.c:766 afs_open_socket+0x33c/0x3f0 fs/afs/rxrpc.c:112 afs_net_init+0x67d/0x880 fs/afs/main.c:116 ops_init+0x35d/0x5d0 net/core/net_namespace.c:137 setup_net+0x118/0x350 net/core/net_namespace.c:443 page last free pid 5570 tgid 5570 ts 60191794572 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1418 [inline] __free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2962 __slab_free+0x274/0x2c0 mm/slub.c:5823 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4683 [inline] slab_alloc_node mm/slub.c:4996 [inline] kmem_cache_alloc_noprof+0x2b9/0x600 mm/slub.c:5010 mt_alloc_one lib/maple_tree.c:139 [inline] mas_alloc_nodes+0x291/0x350 lib/maple_tree.c:1086 mas_preallocate+0x42a/0x840 lib/maple_tree.c:5057 vma_iter_prealloc mm/vma.h:665 [inline] commit_merge+0x20c/0x630 mm/vma.c:834 vma_expand+0x81e/0xf40 mm/vma.c:1302 relocate_vma_down+0x38e/0x5f0 mm/vma_exec.c:63 setup_arg_pages+0x6ff/0xbd0 fs/exec.c:695 load_elf_binary+0xc6c/0x28d0 fs/binfmt_elf.c:1028 search_binary_handler fs/exec.c:1765 [inline] exec_binprm fs/exec.c:1797 [inline] bprm_execve+0x930/0x1590 fs/exec.c:1853 do_execveat_common+0x4f4/0x670 fs/exec.c:1951 __do_sys_execve fs/exec.c:2024 [inline] __se_sys_execve fs/exec.c:2018 [inline] __x64_sys_execve+0x97/0xc0 fs/exec.c:2018 Memory state around the buggy address: ffff8880342dc600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880342dc680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880342dc700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880342dc780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880342dc800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================