================================================================== 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 ffff888020665c59 by task syz.4.1688/10745 CPU: 1 PID: 10745 Comm: syz.4.1688 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:0x7fab6919e159 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:00007fab6a034028 EFLAGS: 00000246 ORIG_RAX: 0000000000000031 RAX: ffffffffffffffda RBX: 00007fab69425fa0 RCX: 00007fab6919e159 RDX: 0000000000000060 RSI: 0000200000000080 RDI: 0000000000000004 RBP: 00007fab6923506b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fab69426038 R14: 00007fab69425fa0 R15: 00007ffe50d44478 Allocated by task 10745: 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 ffff888020665c58 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 1 bytes inside of 8-byte region [ffff888020665c58, ffff888020665c60) The buggy address belongs to the physical page: page:ffffea0000819940 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x20665 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 0000000000000000 dead000000000001 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 2620706723, 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_node_track_caller+0xa0/0x240 mm/slab_common.c:956 kstrdup mm/util.c:61 [inline] kstrdup_const+0x56/0x90 mm/util.c:84 kobject_set_name_vargs+0x5d/0x110 lib/kobject.c:265 kobject_add_varg lib/kobject.c:360 [inline] kobject_init_and_add+0xeb/0x190 lib/kobject.c:449 lookup_or_create_module_kobject+0xdf/0x160 kernel/params.c:762 kernel_add_sysfs_param+0x1f/0x11b kernel/params.c:789 param_sysfs_builtin+0x20d/0x2ae kernel/params.c:837 param_sysfs_init+0x66/0x6a kernel/params.c:958 page_owner free stack trace missing Memory state around the buggy address: ffff888020665b00: fc fc fc 05 fc fc fc fc fb fc fc fc fc fa fc fc ffff888020665b80: fc fc fa fc fc fc fc 06 fc fc fc fc 06 fc fc fc >ffff888020665c00: fc fa fc fc fc fc fa fc fc fc fc 01 fc fc fc fc ^ ffff888020665c80: 05 fc fc fc fc 05 fc fc fc fc fa fc fc fc fc fa ffff888020665d00: fc fc fc fc 07 fc fc fc fc 07 fc fc fc fc fa fc ==================================================================