kcov: kcov_start: t = ffff8880313fddc0, size = 524288, area = ffffc9000459b000 llcp: llcp_sock_create: ffff888076110040 llcp: llcp_sock_bind: sk ffff88807e826000 addr ffffc900038c7dc0 family 39 ================================================================== 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 ffff88801fb6a029 by task syz.1.719/8242 CPU: 0 UID: 0 PID: 8242 Comm: syz.1.719 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 va_format lib/vsprintf.c:1725 [inline] pointer+0x971/0xe10 lib/vsprintf.c:2577 vsnprintf+0x626/0xef0 lib/vsprintf.c:2953 vprintk_store+0x3be/0xd90 kernel/printk/printk.c:2307 vprintk_emit+0x192/0x560 kernel/printk/printk.c:2455 _printk+0xdd/0x130 kernel/printk/printk.c:2504 __dynamic_pr_debug+0x1a2/0x260 lib/dynamic_debug.c:879 nfc_llcp_wks_sap net/nfc/llcp_core.c:344 [inline] nfc_llcp_get_sdp_ssap+0x3a7/0x440 net/nfc/llcp_core.c:420 llcp_sock_bind+0x3c5/0x780 net/nfc/llcp_sock.c:114 __sys_bind_socket net/socket.c:1945 [inline] __sys_bind+0x2e3/0x410 net/socket.c:1976 __do_sys_bind net/socket.c:1981 [inline] __se_sys_bind net/socket.c:1979 [inline] __x64_sys_bind+0x7a/0x90 net/socket.c:1979 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:0x7ff1ad39e159 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:00007ff1ae249028 EFLAGS: 00000246 ORIG_RAX: 0000000000000031 RAX: ffffffffffffffda RBX: 00007ff1ad625fa0 RCX: 00007ff1ad39e159 RDX: 0000000000000060 RSI: 0000200000000080 RDI: 0000000000000005 RBP: 00007ff1ad43506b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff1ad626038 R14: 00007ff1ad625fa0 R15: 00007ffed0cf6308 Allocated by task 8242: 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] __do_kmalloc_node mm/slub.c:5419 [inline] __kmalloc_node_track_caller_noprof+0x4af/0x720 mm/slub.c:5550 kmemdup_noprof+0x2b/0x70 mm/util.c:138 kmemdup_noprof include/linux/fortify-string.h:713 [inline] llcp_sock_bind+0x377/0x780 net/nfc/llcp_sock.c:107 __sys_bind_socket net/socket.c:1945 [inline] __sys_bind+0x2e3/0x410 net/socket.c:1976 __do_sys_bind net/socket.c:1981 [inline] __se_sys_bind net/socket.c:1979 [inline] __x64_sys_bind+0x7a/0x90 net/socket.c:1979 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 The buggy address belongs to the object at ffff88801fb6a020 which belongs to the cache kmalloc-16 of size 16 The buggy address is located 0 bytes to the right of allocated 9-byte region [ffff88801fb6a020, ffff88801fb6a029) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88801fb6a000 pfn:0x1fb6a flags: 0xfff00000000200(workingset|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000200 ffff88813ff1a640 ffff88813ff19408 ffffea0000ae2290 raw: ffff88801fb6a000 0000000000800030 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 7189, tgid 7184 (syz.1.395), ts 158760405200 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1853 prep_new_page mm/page_alloc.c:1861 [inline] get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3925 __alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5418 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:7416 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] __do_kmalloc_node mm/slub.c:5418 [inline] __kmalloc_node_track_caller_noprof+0x543/0x720 mm/slub.c:5550 __kmemdup_nul mm/util.c:64 [inline] kstrndup+0x7e/0x160 mm/util.c:120 bonding_sysfs_store_option+0x60/0x100 drivers/net/bonding/bond_sysfs.c:153 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 page last free pid 7186 tgid 7184 ts 158526712439 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1400 [inline] __free_frozen_pages+0xc93/0xd90 mm/page_alloc.c:2944 __slab_free+0x274/0x2c0 mm/slub.c:5820 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+0x2b4/0x600 mm/slub.c:5010 __kernfs_new_node+0xe6/0x980 fs/kernfs/dir.c:665 kernfs_new_node+0xea/0x140 fs/kernfs/dir.c:751 __kernfs_create_file+0x4b/0x2e0 fs/kernfs/file.c:1050 sysfs_add_file_mode_ns+0x237/0x300 fs/sysfs/file.c:316 create_files fs/sysfs/group.c:82 [inline] internal_create_group+0x679/0x1180 fs/sysfs/group.c:189 internal_create_groups fs/sysfs/group.c:229 [inline] sysfs_create_groups+0x59/0x120 fs/sysfs/group.c:255 device_add_groups drivers/base/core.c:2911 [inline] device_add_attrs+0xde/0x600 drivers/base/core.c:2975 device_add+0x488/0xb80 drivers/base/core.c:3715 netdev_register_kobject+0x197/0x350 net/core/net-sysfs.c:2340 register_netdevice+0x142e/0x1eb0 net/core/dev.c:11503 Memory state around the buggy address: ffff88801fb69f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88801fb69f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88801fb6a000: fa fb fc fc 00 01 fc fc fa fb fc fc fa fb fc fc ^ ffff88801fb6a080: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc ffff88801fb6a100: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc ==================================================================