================================================================== BUG: KASAN: slab-out-of-bounds in string_nocheck lib/vsprintf.c:642 [inline] BUG: KASAN: slab-out-of-bounds in string+0x204/0x290 lib/vsprintf.c:724 Read of size 1 at addr ffff888053dc0de9 by task syz.7.1080/8039 CPU: 0 PID: 8039 Comm: syz.7.1080 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 string_nocheck lib/vsprintf.c:642 [inline] string+0x204/0x290 lib/vsprintf.c:724 vsnprintf+0x10db/0x1c20 lib/vsprintf.c:2811 va_format lib/vsprintf.c:1713 [inline] pointer+0x7b2/0xc60 lib/vsprintf.c:2448 vsnprintf+0xd7c/0x1c20 lib/vsprintf.c:2815 vprintk_store+0x378/0x11b0 kernel/printk/printk.c:2164 vprintk_emit+0x85/0x150 kernel/printk/printk.c:2258 _printk+0xda/0x130 kernel/printk/printk.c:2299 __dynamic_pr_debug+0x196/0x240 lib/dynamic_debug.c:619 nfc_llcp_wks_sap net/nfc/llcp_core.c:344 [inline] nfc_llcp_get_sdp_ssap+0x3c1/0x3f0 net/nfc/llcp_core.c:420 llcp_sock_bind+0x3a2/0x770 net/nfc/llcp_sock.c:117 __sys_bind+0x2e9/0x3e0 net/socket.c:1730 __do_sys_bind net/socket.c:1741 [inline] __se_sys_bind net/socket.c:1739 [inline] __x64_sys_bind+0x76/0x80 net/socket.c:1739 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fe612514159 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:00007fe61076c028 EFLAGS: 00000246 ORIG_RAX: 0000000000000031 RAX: ffffffffffffffda RBX: 00007fe61279bfa0 RCX: 00007fe612514159 RDX: 0000000000000060 RSI: 0000200000000080 RDI: 0000000000000004 RBP: 00007fe6125ab06b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe61279c038 R14: 00007fe61279bfa0 R15: 00007ffd4d393f38 Allocated by task 8039: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] ____kasan_kmalloc mm/kasan/common.c:513 [inline] __kasan_kmalloc+0xaf/0xe0 mm/kasan/common.c:522 kmemdup+0x22/0x50 mm/util.c:128 llcp_sock_bind+0x360/0x770 net/nfc/llcp_sock.c:107 __sys_bind+0x2e9/0x3e0 net/socket.c:1730 __do_sys_bind net/socket.c:1741 [inline] __se_sys_bind net/socket.c:1739 [inline] __x64_sys_bind+0x76/0x80 net/socket.c:1739 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 The buggy address belongs to the object at ffff888053dc0de8 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 1 bytes inside of 8-byte region [ffff888053dc0de8, ffff888053dc0df0) The buggy address belongs to the page: page:ffffea00014f7000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x53dc0 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 0000000000000000 0000003100000001 ffff888016c41280 raw: 0000000000000000 0000000080660066 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 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 6332, ts 136936641067, free_ts 136934939623 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x24f6/0x2670 mm/page_alloc.c:4192 __alloc_pages+0x1ee/0x480 mm/page_alloc.c:5501 alloc_slab_page mm/slub.c:1780 [inline] allocate_slab mm/slub.c:1917 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1980 ___slab_alloc+0x807/0xdd0 mm/slub.c:3013 __slab_alloc mm/slub.c:3100 [inline] slab_alloc_node mm/slub.c:3191 [inline] slab_alloc mm/slub.c:3233 [inline] __kmalloc_track_caller+0x11b/0x330 mm/slub.c:4930 kvasprintf+0xe3/0x1a0 lib/kasprintf.c:25 kobject_set_name_vargs+0x5d/0x110 lib/kobject.c:297 kobject_add_varg lib/kobject.c:392 [inline] kobject_init_and_add+0xeb/0x190 lib/kobject.c:481 rx_queue_add_kobject net/core/net-sysfs.c:1059 [inline] net_rx_queue_update_kobjects+0x1b9/0x4b0 net/core/net-sysfs.c:1110 register_queue_kobjects net/core/net-sysfs.c:1767 [inline] netdev_register_kobject+0x231/0x320 net/core/net-sysfs.c:2018 register_netdevice+0x10e8/0x1720 net/core/dev.c:10423 nsim_init_netdevsim drivers/net/netdevsim/netdev.c:317 [inline] nsim_create+0x32d/0x3e0 drivers/net/netdevsim/netdev.c:365 __nsim_dev_port_add+0x66e/0xa80 drivers/net/netdevsim/dev.c:1312 nsim_dev_port_add_all+0x37/0x100 drivers/net/netdevsim/dev.c:1372 nsim_dev_probe+0x75e/0x9d0 drivers/net/netdevsim/dev.c:1513 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x276/0xc70 drivers/base/dd.c:595 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page+0x8f/0x2a0 mm/page_alloc.c:3396 __dev_alloc_name+0x745/0x7c0 net/core/dev.c:1184 dev_prep_valid_name+0x1cc/0x330 net/core/dev.c:1207 dev_get_valid_name net/core/dev.c:1258 [inline] register_netdevice+0x499/0x1720 net/core/dev.c:10342 nsim_init_netdevsim drivers/net/netdevsim/netdev.c:317 [inline] nsim_create+0x32d/0x3e0 drivers/net/netdevsim/netdev.c:365 __nsim_dev_port_add+0x66e/0xa80 drivers/net/netdevsim/dev.c:1312 nsim_dev_port_add_all+0x37/0x100 drivers/net/netdevsim/dev.c:1372 nsim_dev_probe+0x75e/0x9d0 drivers/net/netdevsim/dev.c:1513 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x276/0xc70 drivers/base/dd.c:595 __driver_probe_device+0x1f5/0x390 drivers/base/dd.c:775 driver_probe_device+0x4f/0x420 drivers/base/dd.c:805 __device_attach_driver+0x2b0/0x500 drivers/base/dd.c:927 bus_for_each_drv+0x184/0x210 drivers/base/bus.c:429 __device_attach+0x2a7/0x480 drivers/base/dd.c:999 bus_probe_device+0xba/0x1d0 drivers/base/bus.c:489 Memory state around the buggy address: ffff888053dc0c80: 00 fc fc fc fc 06 fc fc fc fc 05 fc fc fc fc 07 ffff888053dc0d00: fc fc fc fc 06 fc fc fc fc fa fc fc fc fc fa fc >ffff888053dc0d80: fc fc fc 05 fc fc fc fc 05 fc fc fc fc 01 fc fc ^ ffff888053dc0e00: fc fc fa fc fc fc fc fa fc fc fc fc 05 fc fc fc ffff888053dc0e80: fc 05 fc fc fc fc 05 fc fc fc fc 05 fc fc fc fc ==================================================================