netlink: 8 bytes leftover after parsing attributes in process `syz.0.939'.
device vlan2 entered promiscuous mode
device bridge0 entered promiscuous mode
==================================================================
BUG: KASAN: use-after-free in kobject_get+0x113/0x120 lib/kobject.c:631
Read of size 1 at addr ffff888111a3883c by task syz.0.939/4317
CPU: 1 PID: 4317 Comm: syz.0.939 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
__dump_stack+0x21/0x24 lib/dump_stack.c:88
dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106
print_address_description+0x71/0x200 mm/kasan/report.c:316
print_report+0x4a/0x60 mm/kasan/report.c:420
kasan_report+0x122/0x150 mm/kasan/report.c:524
__asan_report_load1_noabort+0x14/0x20 mm/kasan/report_generic.c:348
kobject_get+0x113/0x120 lib/kobject.c:631
get_device drivers/base/core.c:3794 [inline]
device_add+0x2f0/0xec0 drivers/base/core.c:3618
device_create_groups_vargs drivers/base/core.c:4392 [inline]
device_create+0x26c/0x300 drivers/base/core.c:4434
create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:36
create_alsa_device drivers/usb/gadget/function/f_midi.c:1306 [inline]
f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1347
try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline]
usb_get_function_instance+0xf3/0x310 drivers/usb/gadget/functions.c:44
function_make+0x118/0x360 drivers/usb/gadget/configfs.c:652
configfs_mkdir+0x518/0x9e0 fs/configfs/dir.c:1329
vfs_mkdir+0x39c/0x580 fs/namei.c:4113
do_mkdirat+0x174/0x4d0 fs/namei.c:4138
__do_sys_mkdirat fs/namei.c:4153 [inline]
__se_sys_mkdirat fs/namei.c:4151 [inline]
__x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4151
x64_sys_call+0x73d/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:259
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:0x7f87df99e159
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:00007f87e092d028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f87dfc25fa0 RCX: 00007f87df99e159
RDX: 00000000000001ff RSI: 0000200000000100 RDI: ffffffffffffff9c
RBP: 00007f87dfa3506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f87dfc26038 R14: 00007f87dfc25fa0 R15: 00007ffe8a704fb8
The buggy address belongs to the physical page:
page:ffffea0004468e00 refcount:0 mapcount:-128 mapping:0000000000000000 index:0x0 pfn:0x111a38
flags: 0x4000000000000000(zone=1)
raw: 4000000000000000 ffffea0005190808 ffffea000555ce08 0000000000000000
raw: 0000000000000000 0000000000000003 00000000ffffff7f 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 3, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 3831, tgid 3831 (syz-executor), ts 152297104670, free_ts 163196653481
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2673
prep_new_page+0x1c/0x110 mm/page_alloc.c:2680
get_page_from_freelist+0x2ca9/0x2d20 mm/page_alloc.c:4587
__alloc_pages+0x1fa/0x610 mm/page_alloc.c:5931
alloc_slab_page+0x6e/0xf0 include/linux/gfp.h:-1
allocate_slab mm/slub.c:1967 [inline]
new_slab+0x98/0x3e0 mm/slub.c:2020
___slab_alloc+0x70f/0xb70 mm/slub.c:3177
__slab_alloc+0x5e/0xa0 mm/slub.c:3263
slab_alloc_node mm/slub.c:3348 [inline]
slab_alloc mm/slub.c:3392 [inline]
__kmem_cache_alloc_lru mm/slub.c:3399 [inline]
kmem_cache_alloc+0x1a8/0x320 mm/slub.c:3408
getname_flags+0xba/0x510 fs/namei.c:139
getname fs/namei.c:218 [inline]
__do_sys_unlinkat fs/namei.c:-1 [inline]
__se_sys_unlinkat fs/namei.c:4433 [inline]
__x64_sys_unlinkat+0xb0/0xf0 fs/namei.c:4433
x64_sys_call+0x79f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:264
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
page last free stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
free_pages_prepare mm/page_alloc.c:1581 [inline]
free_pcp_prepare mm/page_alloc.c:1655 [inline]
free_unref_page_prepare+0x81b/0x820 mm/page_alloc.c:3622
free_unref_page+0x93/0x530 mm/page_alloc.c:3720
free_the_page mm/page_alloc.c:863 [inline]
__free_pages+0x67/0x100 mm/page_alloc.c:6021
__free_slab+0xc7/0x1a0 mm/slub.c:2044
free_slab mm/slub.c:2059 [inline]
discard_slab mm/slub.c:2065 [inline]
__unfreeze_partials+0x15a/0x190 mm/slub.c:2614
put_cpu_partial+0xa9/0x100 mm/slub.c:2690
__slab_free+0x1c4/0x280 mm/slub.c:3589
do_slab_free mm/slub.c:3666 [inline]
___cache_free+0xbf/0xd0 mm/slub.c:3722
qlink_free mm/kasan/quarantine.c:168 [inline]
qlist_free_all+0xc6/0x140 mm/kasan/quarantine.c:187
kasan_quarantine_reduce+0x14a/0x170 mm/kasan/quarantine.c:294
__kasan_slab_alloc+0x24/0x80 mm/kasan/common.c:311
kasan_slab_alloc include/linux/kasan.h:202 [inline]
slab_post_alloc_hook+0x4f/0x2d0 mm/slab.h:768
slab_alloc_node mm/slub.c:3382 [inline]
slab_alloc mm/slub.c:3392 [inline]
__kmem_cache_alloc_lru mm/slub.c:3399 [inline]
kmem_cache_alloc+0x166/0x320 mm/slub.c:3408
f2fs_kmem_cache_alloc fs/f2fs/f2fs.h:-1 [inline]
add_free_nid+0xf7/0x710 fs/f2fs/node.c:2325
scan_nat_page fs/f2fs/node.c:2424 [inline]
__f2fs_build_free_nids fs/f2fs/node.c:2530 [inline]
f2fs_build_free_nids+0xeca/0x1410 fs/f2fs/node.c:2568
f2fs_build_node_manager+0x1617/0x1da0 fs/f2fs/node.c:3363
Memory state around the buggy address:
ffff888111a38700: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888111a38780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff888111a38800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff888111a38880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888111a38900: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
------------[ cut here ]------------
general protection fault, probably for non-canonical address 0xee54cdfceba86eb2: 0000 [#1] PREEMPT SMP KASAN
KASAN: maybe wild-memory-access in range [0x72a68fe75d437590-0x72a68fe75d437597]
CPU: 0 PID: 4317 Comm: syz.0.939 Tainted: G B syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:string_nocheck lib/vsprintf.c:643 [inline]
RIP: 0010:string+0x19d/0x2a0 lib/vsprintf.c:725
Code: da 00 00 00 48 89 5d d0 4c 89 7d c0 4c 89 fb 48 ff cb 45 31 ed 4b 8d 3c 2c 48 89 f8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 75 5c 4d 01 ee 47 0f b6 3c 2c 31 ff 44 89 fe e8
RSP: 0018:ffffc90000a57568 EFLAGS: 00010007
RAX: 0e54d1fceba86eb2 RBX: fffffffffffffffe RCX: dffffc0000000000
RDX: 0000000000000002 RSI: ffffffffffffffff RDI: 72a68fe75d437596
RBP: ffffc90000a575b0 R08: ffff88812f02bcc0 R09: 0000000000000012
R10: 0000000000000012 R11: 0000000000000002 R12: 72a68fe75d437596
R13: 0000000000000000 R14: ffffc90000a5778c R15: ffffffffffffffff
FS: 00007f87e092d6c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c30087b CR3: 00000001196ad000 CR4: 00000000003506b0
DR0: 000000000000000c DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
vsnprintf+0xec5/0x1990 lib/vsprintf.c:2805
vprintk_store+0x3ad/0xdf0 kernel/printk/printk.c:2191
vprintk_emit+0x102/0x420 kernel/printk/printk.c:2289
vprintk_default+0x26/0x30 kernel/printk/printk.c:2323
vprintk+0x7a/0x80 kernel/printk/printk_safe.c:45
__warn_printk+0x274/0x360 kernel/panic.c:726
kobject_get+0x7c/0x120 lib/kobject.c:632
get_device drivers/base/core.c:3794 [inline]
device_add+0x2f0/0xec0 drivers/base/core.c:3618
device_create_groups_vargs drivers/base/core.c:4392 [inline]
device_create+0x26c/0x300 drivers/base/core.c:4434
create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:36
create_alsa_device drivers/usb/gadget/function/f_midi.c:1306 [inline]
f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1347
try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline]
usb_get_function_instance+0xf3/0x310 drivers/usb/gadget/functions.c:44
function_make+0x118/0x360 drivers/usb/gadget/configfs.c:652
configfs_mkdir+0x518/0x9e0 fs/configfs/dir.c:1329
vfs_mkdir+0x39c/0x580 fs/namei.c:4113
do_mkdirat+0x174/0x4d0 fs/namei.c:4138
__do_sys_mkdirat fs/namei.c:4153 [inline]
__se_sys_mkdirat fs/namei.c:4151 [inline]
__x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4151
x64_sys_call+0x73d/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:259
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:0x7f87df99e159
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:00007f87e092d028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f87dfc25fa0 RCX: 00007f87df99e159
RDX: 00000000000001ff RSI: 0000200000000100 RDI: ffffffffffffff9c
RBP: 00007f87dfa3506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f87dfc26038 R14: 00007f87dfc25fa0 R15: 00007ffe8a704fb8
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:string_nocheck lib/vsprintf.c:643 [inline]
RIP: 0010:string+0x19d/0x2a0 lib/vsprintf.c:725
Code: da 00 00 00 48 89 5d d0 4c 89 7d c0 4c 89 fb 48 ff cb 45 31 ed 4b 8d 3c 2c 48 89 f8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 75 5c 4d 01 ee 47 0f b6 3c 2c 31 ff 44 89 fe e8
RSP: 0018:ffffc90000a57568 EFLAGS: 00010007
RAX: 0e54d1fceba86eb2 RBX: fffffffffffffffe RCX: dffffc0000000000
RDX: 0000000000000002 RSI: ffffffffffffffff RDI: 72a68fe75d437596
RBP: ffffc90000a575b0 R08: ffff88812f02bcc0 R09: 0000000000000012
R10: 0000000000000012 R11: 0000000000000002 R12: 72a68fe75d437596
R13: 0000000000000000 R14: ffffc90000a5778c R15: ffffffffffffffff
FS: 00007f87e092d6c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c30087b CR3: 00000001196ad000 CR4: 00000000003506b0
DR0: 000000000000000c DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: da 00 fiaddl (%rax)
2: 00 00 add %al,(%rax)
4: 48 89 5d d0 mov %rbx,-0x30(%rbp)
8: 4c 89 7d c0 mov %r15,-0x40(%rbp)
c: 4c 89 fb mov %r15,%rbx
f: 48 ff cb dec %rbx
12: 45 31 ed xor %r13d,%r13d
15: 4b 8d 3c 2c lea (%r12,%r13,1),%rdi
19: 48 89 f8 mov %rdi,%rax
1c: 48 c1 e8 03 shr $0x3,%rax
20: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx
27: fc ff df
* 2a: 0f b6 04 08 movzbl (%rax,%rcx,1),%eax <-- trapping instruction
2e: 84 c0 test %al,%al
30: 75 5c jne 0x8e
32: 4d 01 ee add %r13,%r14
35: 47 0f b6 3c 2c movzbl (%r12,%r13,1),%r15d
3a: 31 ff xor %edi,%edi
3c: 44 89 fe mov %r15d,%esi
3f: e8 .byte 0xe8