================================================================== BUG: KASAN: slab-out-of-bounds in string_nocheck lib/vsprintf.c:643 [inline] BUG: KASAN: slab-out-of-bounds in string+0x204/0x290 lib/vsprintf.c:725 Read of size 1 at addr ffff8881477c3321 by task syz.3.3016/14217 CPU: 1 PID: 14217 Comm: syz.3.3016 Not tainted 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 va_format lib/vsprintf.c:1685 [inline] pointer+0x870/0xfe0 lib/vsprintf.c:2436 vsnprintf+0xd7c/0x1c20 lib/vsprintf.c:2809 vprintk_store+0x3d7/0xcf0 kernel/printk/printk.c:2187 vprintk_emit+0x114/0x6a0 kernel/printk/printk.c:2284 _printk+0xda/0x130 kernel/printk/printk.c:2328 __dynamic_pr_debug+0x196/0x240 lib/dynamic_debug.c:875 nfc_llcp_wks_sap net/nfc/llcp_core.c:342 [inline] nfc_llcp_get_sdp_ssap+0x3a0/0x3d0 net/nfc/llcp_core.c:418 llcp_sock_bind+0x3ab/0x700 net/nfc/llcp_sock.c:114 __sys_bind+0x2e9/0x3e0 net/socket.c:1811 __do_sys_bind net/socket.c:1822 [inline] __se_sys_bind net/socket.c:1820 [inline] __x64_sys_bind+0x76/0x80 net/socket.c:1820 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:0x7f56e759e159 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:00007f56e848c028 EFLAGS: 00000246 ORIG_RAX: 0000000000000031 RAX: ffffffffffffffda RBX: 00007f56e7825fa0 RCX: 00007f56e759e159 RDX: 0000000000000060 RSI: 0000200000000080 RDI: 0000000000000004 RBP: 00007f56e763506b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f56e7826038 R14: 00007f56e7825fa0 R15: 00007ffd25b4d028 Allocated by task 14217: 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 kmemdup+0x27/0x60 mm/util.c:129 kmemdup include/linux/fortify-string.h:585 [inline] llcp_sock_bind+0x35d/0x700 net/nfc/llcp_sock.c:107 __sys_bind+0x2e9/0x3e0 net/socket.c:1811 __do_sys_bind net/socket.c:1822 [inline] __se_sys_bind net/socket.c:1820 [inline] __x64_sys_bind+0x76/0x80 net/socket.c:1820 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 The buggy address belongs to the object at ffff8881477c3320 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 1 bytes inside of 8-byte region [ffff8881477c3320, ffff8881477c3328) The buggy address belongs to the physical page: page:ffffea00051df0c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1477c3 flags: 0x57ff00000000200(slab|node=1|zone=2|lastcpupid=0x7ff) raw: 057ff00000000200 dead000000000100 dead000000000122 ffff888017441280 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 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 1, tgid 1 (swapper/0), ts 15320350621, 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+0xa3/0x240 mm/slab_common.c:949 kmalloc include/linux/slab.h:568 [inline] kzalloc include/linux/slab.h:699 [inline] usb_get_configuration+0x17b/0x5240 drivers/usb/core/config.c:916 usb_enumerate_device drivers/usb/core/hub.c:2496 [inline] usb_new_device+0x12c/0x15e0 drivers/usb/core/hub.c:2634 register_root_hub+0x258/0x550 drivers/usb/core/hcd.c:1019 usb_add_hcd+0xbb9/0x1080 drivers/usb/core/hcd.c:2999 vhci_hcd_probe+0x1bd/0x370 drivers/usb/usbip/vhci_hcd.c:1401 platform_probe+0x137/0x1c0 drivers/base/platform.c:1400 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x24a/0xb40 drivers/base/dd.c:638 page_owner free stack trace missing Memory state around the buggy address: ffff8881477c3200: fc 00 fc fc fc fc 05 fc fc fc fc fa fc fc fc fc ffff8881477c3280: 05 fc fc fc fc 05 fc fc fc fc 00 fc fc fc fc fb >ffff8881477c3300: fc fc fc fc 01 fc fc fc fc 05 fc fc fc fc 05 fc ^ ffff8881477c3380: fc fc fc 00 fc fc fc fc 00 fc fc fc fc 00 fc fc ffff8881477c3400: fc fc 06 fc fc fc fc 06 fc fc fc fc 00 fc fc fc ==================================================================