kcov: kcov_start: t = ffff88810f238000, size = 524288, area = ffffc90020882000
llcp: llcp_sock_bind: sk ffff88801d677000 addr ffffc900038efdc0 family 39
==================================================================
BUG: KASAN: slab-out-of-bounds in string+0x216/0x2d0
Read of size 1 at addr ffff88816bdc2da1 by task syz.1.6660/22109

CPU: 0 UID: 0 PID: 22109 Comm: syz.1.6660 Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150
 print_address_description+0x55/0x1e0
 print_report+0x58/0x70
 kasan_report+0x117/0x150
 string+0x216/0x2d0
 vsnprintf+0x74a/0xef0
 pointer+0xa12/0x1120
 vsnprintf+0x626/0xef0
 vprintk_store+0x3be/0xd90
 vprintk_emit+0x192/0x560
 _printk+0xdd/0x130
 __dynamic_pr_debug+0x1a2/0x260
 nfc_llcp_get_sdp_ssap+0x3a7/0x440
 llcp_sock_bind+0x3c5/0x780
 __sys_bind+0x2e3/0x410
 __x64_sys_bind+0x7a/0x90
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fcfa3f9e159
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:00007fcfa4e1b028 EFLAGS: 00000246 ORIG_RAX: 0000000000000031
RAX: ffffffffffffffda RBX: 00007fcfa4226090 RCX: 00007fcfa3f9e159
RDX: 0000000000000060 RSI: 0000200000000280 RDI: 0000000000000004
RBP: 00007fcfa403506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fcfa4226128 R14: 00007fcfa4226090 R15: 00007ffeaf11b728
 </TASK>

Allocated by task 22109:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_node_track_caller_noprof+0x4b4/0x720
 kmemdup_noprof+0x2b/0x70
 llcp_sock_bind+0x377/0x780
 __sys_bind+0x2e3/0x410
 __x64_sys_bind+0x7a/0x90
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff88816bdc2d80
 which belongs to the cache kmalloc-64 of size 64
The buggy address is located 0 bytes to the right of
 allocated 33-byte region [ffff88816bdc2d80, ffff88816bdc2da1)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x16bdc2
flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 057ff00000000000 ffff8881000418c0 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000200020 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 0xd2c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5011, tgid 5011 (mount), ts 13209510305
 post_alloc_hook+0x1f9/0x250
 get_page_from_freelist+0x2209/0x2280
 __alloc_frozen_pages_noprof+0x217/0x5a0
 allocate_slab+0x7d/0x620
 refill_objects+0x2d5/0x350
 __pcs_replace_empty_main+0x2c8/0x6c0
 __kmalloc_noprof+0x47b/0x720
 tomoyo_commit_ok+0x29/0x1d0
 tomoyo_update_domain+0x4ea/0x7e0
 tomoyo_write_file+0x3d1/0xc50
 tomoyo_supervisor+0xff8/0x1560
 tomoyo_path_permission+0x262/0x3b0
 tomoyo_path_perm+0x3f3/0x560
 security_inode_getattr+0x12b/0x310
 vfs_getattr+0x23/0x70
 vfs_statx_path+0x2b/0x230
page last free pid 56 tgid 56 ts 9848647928 stack trace:
 __free_frozen_pages+0xc93/0xd90
 kasan_depopulate_vmalloc_pte+0x6d/0x90
 __apply_to_page_range+0xbd8/0x1420
 __kasan_release_vmalloc+0xa2/0xd0
 purge_vmap_node+0x220/0x960
 __purge_vmap_area_lazy+0x6c1/0xab0
 drain_vmap_area_work+0x27/0x40
 process_scheduled_works+0xc3d/0x1630
 worker_thread+0xa47/0xfb0
 kthread+0x38b/0x480
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30

Memory state around the buggy address:
 ffff88816bdc2c80: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc
 ffff88816bdc2d00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
>ffff88816bdc2d80: 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc fc
                               ^
 ffff88816bdc2e00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
 ffff88816bdc2e80: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc
==================================================================
