syzbot
KASAN: use-after-free Read in device_create
Status:
premoderation: reported on 2026/07/25 07:17
Reported-by: syzbot+037bb524b85268c80ead@syzkaller.appspotmail.com
First crash: 4d08h, last: 12h46m
Sample crash report:
SELinux: security_context_str_to_sid (system_u) failed with errno=-22
==================================================================
BUG: KASAN: use-after-free in kobject_get+0x113/0x120 lib/kobject.c:631
Read of size 1 at addr ffff888121fb803c by task syz.7.317/1680
CPU: 1 PID: 1680 Comm: syz.7.317 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026
Call Trace:
<TASK>
__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_mkdir fs/namei.c:4158 [inline]
__se_sys_mkdir fs/namei.c:4156 [inline]
__x64_sys_mkdir+0x6e/0x80 fs/namei.c:4156
x64_sys_call+0x966/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:84
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:0x7fe919b9de99
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:00007fe91aa17028 EFLAGS: 00000246 ORIG_RAX: 0000000000000053
RAX: ffffffffffffffda RBX: 00007fe919e26270 RCX: 00007fe919b9de99
RDX: 0000000000000000 RSI: 00000000000001ff RDI: 0000200000000800
RBP: 00007fe919c33eaf R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe919e26308 R14: 00007fe919e26270 R15: 00007ffe2d855c98
</TASK>
Allocated by task 311:
kasan_save_stack mm/kasan/common.c:46 [inline]
kasan_set_track+0x4b/0x70 mm/kasan/common.c:53
kasan_save_alloc_info+0x1f/0x30 mm/kasan/generic.c:505
__kasan_slab_alloc+0x72/0x80 mm/kasan/common.c:334
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
getname_flags+0xba/0x510 fs/namei.c:139
user_path_at_empty+0x2f/0x1c0 fs/namei.c:2911
user_path_at include/linux/namei.h:57 [inline]
do_utimes_path fs/utimes.c:94 [inline]
do_utimes+0x12e/0x2a0 fs/utimes.c:144
__do_sys_utimensat fs/utimes.c:163 [inline]
__se_sys_utimensat fs/utimes.c:147 [inline]
__x64_sys_utimensat+0x15b/0x240 fs/utimes.c:147
x64_sys_call+0x3e0/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:281
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
Freed by task 311:
kasan_save_stack mm/kasan/common.c:46 [inline]
kasan_set_track+0x4b/0x70 mm/kasan/common.c:53
kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:516
____kasan_slab_free+0x132/0x180 mm/kasan/common.c:242
__kasan_slab_free+0x11/0x20 mm/kasan/common.c:250
kasan_slab_free include/linux/kasan.h:178 [inline]
slab_free_hook mm/slub.c:1750 [inline]
slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1776
slab_free mm/slub.c:3712 [inline]
kmem_cache_free+0x12d/0x300 mm/slub.c:3737
putname fs/namei.c:272 [inline]
user_path_at_empty+0x162/0x1c0 fs/namei.c:2914
user_path_at include/linux/namei.h:57 [inline]
do_utimes_path fs/utimes.c:94 [inline]
do_utimes+0x12e/0x2a0 fs/utimes.c:144
__do_sys_utimensat fs/utimes.c:163 [inline]
__se_sys_utimensat fs/utimes.c:147 [inline]
__x64_sys_utimensat+0x15b/0x240 fs/utimes.c:147
x64_sys_call+0x3e0/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:281
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 ffff888121fb8000
which belongs to the cache names_cache of size 4096
The buggy address is located 60 bytes inside of
4096-byte region [ffff888121fb8000, ffff888121fb9000)
The buggy address belongs to the physical page:
page:ffffea000487ee00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x121fb8
head:ffffea000487ee00 order:3 compound_mapcount:0 compound_pincount:0
flags: 0x4000000000010200(slab|head|zone=1)
raw: 4000000000010200 0000000000000000 dead000000000122 ffff8881001ecf00
raw: 0000000000000000 0000000000070007 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
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 311, tgid 311 (udevd), ts 192626458506, free_ts 192589809538
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2672
prep_new_page+0x1c/0x110 mm/page_alloc.c:2679
get_page_from_freelist+0x2ca9/0x2d20 mm/page_alloc.c:4586
__alloc_pages+0x1fa/0x610 mm/page_alloc.c:5930
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
vfs_fstatat fs/stat.c:266 [inline]
__do_sys_newfstatat fs/stat.c:437 [inline]
__se_sys_newfstatat+0x127/0x440 fs/stat.c:431
__x64_sys_newfstatat+0x9b/0xb0 fs/stat.c:431
x64_sys_call+0x77c/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:263
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:1580 [inline]
free_pcp_prepare mm/page_alloc.c:1654 [inline]
free_unref_page_prepare+0x80c/0x820 mm/page_alloc.c:3621
free_unref_page+0x93/0x530 mm/page_alloc.c:3719
free_the_page mm/page_alloc.c:863 [inline]
__free_pages+0x67/0x100 mm/page_alloc.c:6020
__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]
kmem_cache_alloc_node+0x179/0x330 mm/slub.c:3429
__alloc_skb+0xe8/0x4a0 net/core/skbuff.c:508
alloc_skb include/linux/skbuff.h:1322 [inline]
mld_newpack+0x143/0xa30 net/ipv6/mcast.c:1745
add_grhead net/ipv6/mcast.c:1856 [inline]
add_grec+0xf26/0x13f0 net/ipv6/mcast.c:1994
Memory state around the buggy address:
ffff888121fb7f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff888121fb7f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff888121fb8000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff888121fb8080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888121fb8100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
------------[ cut here ]------------
kobject: '' (ffff888121fb8000): is not initialized, yet kobject_get() is being called.
WARNING: CPU: 1 PID: 1680 at lib/kobject.c:634 kobject_get+0x7c/0x120 lib/kobject.c:632
Modules linked in:
CPU: 1 PID: 1680 Comm: syz.7.317 Tainted: G B syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026
RIP: 0010:kobject_get+0x7c/0x120 lib/kobject.c:632
Code: 83 fc 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 a6 79 c9 fc 48 8b 33 48 c7 c7 60 02 0b 86 48 89 da e8 84 7d 54 fc <0f> 0b eb 0c e8 db ee 83 fc eb 4c e8 d4 ee 83 fc 4c 8d 73 38 4c 89
RSP: 0018:ffffc90000d7fa38 EFLAGS: 00010246
RAX: 3d4cdda22a826400 RBX: ffff888121fb8000 RCX: 0000000000080000
RDX: ffffc900092f9000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc90000d7fa50 R08: ffffc90000d7f627 R09: 1ffff920001afec4
R10: dffffc0000000000 R11: fffff520001afec5 R12: 1ffff11022b35b0e
R13: dffffc0000000000 R14: 0000000000000000 R15: dffffc0000000000
FS: 00007fe91aa176c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c32e09c CR3: 000000012b1ad000 CR4: 00000000003526a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
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_mkdir fs/namei.c:4158 [inline]
__se_sys_mkdir fs/namei.c:4156 [inline]
__x64_sys_mkdir+0x6e/0x80 fs/namei.c:4156
x64_sys_call+0x966/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:84
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:0x7fe919b9de99
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:00007fe91aa17028 EFLAGS: 00000246 ORIG_RAX: 0000000000000053
RAX: ffffffffffffffda RBX: 00007fe919e26270 RCX: 00007fe919b9de99
RDX: 0000000000000000 RSI: 00000000000001ff RDI: 0000200000000800
RBP: 00007fe919c33eaf R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe919e26308 R14: 00007fe919e26270 R15: 00007ffe2d855c98
</TASK>
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
kobject: '' (ffff888121fb8000): is not initialized, yet kobject_get() is being called.
WARNING: CPU: 0 PID: 1680 at lib/kobject.c:634 kobject_get lib/kobject.c:632 [inline]
WARNING: CPU: 0 PID: 1680 at lib/kobject.c:634 kobject_add_internal+0x110/0xc20 lib/kobject.c:216
Modules linked in:
CPU: 0 PID: 1680 Comm: syz.7.317 Tainted: G B W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026
RIP: 0010:kobject_get lib/kobject.c:632 [inline]
RIP: 0010:kobject_add_internal+0x110/0xc20 lib/kobject.c:216
Code: 75 d0 4c 89 f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 42 62 c9 fc 49 8b 36 48 c7 c7 60 02 0b 86 4c 89 f2 e8 20 66 54 fc <0f> 0b e9 f8 00 00 00 e8 74 d7 83 fc b8 fe ff ff ff e9 31 08 00 00
RSP: 0018:ffffc90000d7f8b8 EFLAGS: 00010246
RAX: 3d4cdda22a826400 RBX: ffff88810eb31500 RCX: 0000000000080000
RDX: ffffc900092f9000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc90000d7f910 R08: ffffc90000d7f4a7 R09: 1ffff920001afe94
R10: dffffc0000000000 R11: fffff520001afe95 R12: dffffc0000000000
R13: ffff88810eb31518 R14: ffff888121fb8000 R15: 1ffff11021d662a0
FS: 00007fe91aa176c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa45743ff88 CR3: 000000012b1ad000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
kobject_add_varg lib/kobject.c:366 [inline]
kobject_add+0x165/0x230 lib/kobject.c:418
class_dir_create_and_add drivers/base/core.c:3235 [inline]
get_device_parent+0x3a6/0x410 drivers/base/core.c:3290
device_add+0x308/0xec0 drivers/base/core.c:3619
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_mkdir fs/namei.c:4158 [inline]
__se_sys_mkdir fs/namei.c:4156 [inline]
__x64_sys_mkdir+0x6e/0x80 fs/namei.c:4156
x64_sys_call+0x966/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:84
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:0x7fe919b9de99
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:00007fe91aa17028 EFLAGS: 00000246 ORIG_RAX: 0000000000000053
RAX: ffffffffffffffda RBX: 00007fe919e26270 RCX: 00007fe919b9de99
RDX: 0000000000000000 RSI: 00000000000001ff RDI: 0000200000000800
RBP: 00007fe919c33eaf R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe919e26308 R14: 00007fe919e26270 R15: 00007ffe2d855c98
</TASK>
---[ end trace 0000000000000000 ]---
general protection fault, probably for non-canonical address 0xec4c2985af2c45f0: 0000 [#1] PREEMPT SMP KASAN
KASAN: maybe wild-memory-access in range [0x62616c2d79622f80-0x62616c2d79622f87]
CPU: 0 PID: 1680 Comm: syz.7.317 Tainted: G B W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026
RIP: 0010:kobj_child_ns_ops lib/kobject.c:1052 [inline]
RIP: 0010:kobj_ns_ops lib/kobject.c:1060 [inline]
RIP: 0010:kobject_namespace lib/kobject.c:30 [inline]
RIP: 0010:create_dir lib/kobject.c:63 [inline]
RIP: 0010:kobject_add_internal+0x58f/0xc20 lib/kobject.c:231
Code: 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 ff e8 c8 5d c9 fc 4d 8b 3f 4d 85 ff 0f 84 cc 00 00 00 49 83 c7 18 4c 89 f8 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 ff e8 a2 5d c9 fc 49 8b 07 48 85 c0 0f
RSP: 0018:ffffc90000d7f8b8 EFLAGS: 00010206
RAX: 0c4c2d85af2c45f0 RBX: ffff88810eb31500 RCX: ffffffff84ed9328
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888121fb8028
RBP: ffffc90000d7f910 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff520001aff08 R12: dffffc0000000000
R13: 1ffff11021d662a5 R14: ffffffff8747f440 R15: 62616c2d79622f83
FS: 00007fe91aa176c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa45743ff88 CR3: 000000012b1ad000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
kobject_add_varg lib/kobject.c:366 [inline]
kobject_add+0x165/0x230 lib/kobject.c:418
class_dir_create_and_add drivers/base/core.c:3235 [inline]
get_device_parent+0x3a6/0x410 drivers/base/core.c:3290
device_add+0x308/0xec0 drivers/base/core.c:3619
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_mkdir fs/namei.c:4158 [inline]
__se_sys_mkdir fs/namei.c:4156 [inline]
__x64_sys_mkdir+0x6e/0x80 fs/namei.c:4156
x64_sys_call+0x966/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:84
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:0x7fe919b9de99
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:00007fe91aa17028 EFLAGS: 00000246 ORIG_RAX: 0000000000000053
RAX: ffffffffffffffda RBX: 00007fe919e26270 RCX: 00007fe919b9de99
RDX: 0000000000000000 RSI: 00000000000001ff RDI: 0000200000000800
RBP: 00007fe919c33eaf R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe919e26308 R14: 00007fe919e26270 R15: 00007ffe2d855c98
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:kobj_child_ns_ops lib/kobject.c:1052 [inline]
RIP: 0010:kobj_ns_ops lib/kobject.c:1060 [inline]
RIP: 0010:kobject_namespace lib/kobject.c:30 [inline]
RIP: 0010:create_dir lib/kobject.c:63 [inline]
RIP: 0010:kobject_add_internal+0x58f/0xc20 lib/kobject.c:231
Code: 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 ff e8 c8 5d c9 fc 4d 8b 3f 4d 85 ff 0f 84 cc 00 00 00 49 83 c7 18 4c 89 f8 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 ff e8 a2 5d c9 fc 49 8b 07 48 85 c0 0f
RSP: 0018:ffffc90000d7f8b8 EFLAGS: 00010206
RAX: 0c4c2d85af2c45f0 RBX: ffff88810eb31500 RCX: ffffffff84ed9328
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888121fb8028
RBP: ffffc90000d7f910 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff520001aff08 R12: dffffc0000000000
R13: 1ffff11021d662a5 R14: ffffffff8747f440 R15: 62616c2d79622f83
FS: 00007fe91aa176c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa45743ff88 CR3: 000000012b1ad000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 48 c1 e8 03 shr $0x3,%rax
4: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1)
9: 74 08 je 0x13
b: 4c 89 ff mov %r15,%rdi
e: e8 c8 5d c9 fc call 0xfcc95ddb
13: 4d 8b 3f mov (%r15),%r15
16: 4d 85 ff test %r15,%r15
19: 0f 84 cc 00 00 00 je 0xeb
1f: 49 83 c7 18 add $0x18,%r15
23: 4c 89 f8 mov %r15,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) <-- trapping instruction
2f: 74 08 je 0x39
31: 4c 89 ff mov %r15,%rdi
34: e8 a2 5d c9 fc call 0xfcc95ddb
39: 49 8b 07 mov (%r15),%rax
3c: 48 85 c0 test %rax,%rax
3f: 0f .byte 0xf
* Struck through repros no longer work on HEAD.