KASAN: use-after-free Read in device_create

Status: premoderation: reported on 2026/07/25 01:58
Reported-by: syzbot+ce3107732d2f9094c74c@syzkaller.appspotmail.com
First crash: 8d02h, last: 1h55m
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 KASAN: use-after-free Read in device_create 19 syz, C 3 2h13m 2d12h 0/2 upstream: reported C repro on 2026/07/30 16:16
android-6-1 KASAN: use-after-free Read in device_create 19 6 2d18h 7d21h 0/2 premoderation: reported on 2026/07/25 07:17

Sample crash report:
==================================================================
BUG: KASAN: use-after-free in kobject_get+0x113/0x120 lib/kobject.c:663
Read of size 1 at addr ffff88811828683c by task syz.1.996/3023

CPU: 0 PID: 3023 Comm: syz.1.996 Tainted: G        W         syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026
Call Trace:
 __dump_stack+0x21/0x24 lib/dump_stack.c:77
 dump_stack_lvl+0x1a7/0x208 lib/dump_stack.c:118
 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248
 __kasan_report mm/kasan/report.c:435 [inline]
 kasan_report+0x100/0x140 mm/kasan/report.c:452
 __asan_report_load1_noabort+0x14/0x20 mm/kasan/report_generic.c:306
 kobject_get+0x113/0x120 lib/kobject.c:663
 get_device drivers/base/core.c:3361 [inline]
 device_add+0x331/0xc00 drivers/base/core.c:3191
 device_create_groups_vargs drivers/base/core.c:3960 [inline]
 device_create+0x26c/0x300 drivers/base/core.c:4002
 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31
 create_alsa_device drivers/usb/gadget/function/f_midi.c:1262 [inline]
 f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1303
 try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline]
 usb_get_function_instance+0xe2/0x2f0 drivers/usb/gadget/functions.c:44
 function_make+0x118/0x350 drivers/usb/gadget/configfs.c:636
 configfs_mkdir+0x5d2/0xd90 fs/configfs/dir.c:1354
 vfs_mkdir+0x42c/0x600 fs/namei.c:3798
 do_mkdirat+0x14c/0x340 fs/namei.c:3820
 __do_sys_mkdirat fs/namei.c:3831 [inline]
 __se_sys_mkdirat fs/namei.c:3829 [inline]
 __x64_sys_mkdirat+0x7b/0x90 fs/namei.c:3829
 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fae9d03e019
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:00007fae9ba97028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007fae9d2c5fa0 RCX: 00007fae9d03e019
RDX: 00000000000001ff RSI: 00002000000003c0 RDI: ffffffffffffff9c
RBP: 00007fae9d0d500c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fae9d2c6038 R14: 00007fae9d2c5fa0 R15: 00007fff9dbe9818

Allocated by task 1091:
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track mm/kasan/common.c:45 [inline]
 set_alloc_info mm/kasan/common.c:430 [inline]
 ____kasan_kmalloc mm/kasan/common.c:509 [inline]
 __kasan_kmalloc+0xd4/0x100 mm/kasan/common.c:518
 kasan_kmalloc include/linux/kasan.h:254 [inline]
 kmem_cache_alloc_trace+0x179/0x2e0 mm/slub.c:2979
 kmalloc include/linux/slab.h:555 [inline]
 kzalloc include/linux/slab.h:667 [inline]
 device_create_groups_vargs drivers/base/core.c:3942 [inline]
 device_create+0x13a/0x300 drivers/base/core.c:4002
 android_device_create drivers/usb/gadget/configfs.c:1789 [inline]
 gadgets_make+0x816/0xa70 drivers/usb/gadget/configfs.c:1886
 configfs_mkdir+0x5d2/0xd90 fs/configfs/dir.c:1354
 vfs_mkdir+0x42c/0x600 fs/namei.c:3798
 do_mkdirat+0x14c/0x340 fs/namei.c:3820
 __do_sys_mkdir fs/namei.c:3836 [inline]
 __se_sys_mkdir fs/namei.c:3834 [inline]
 __x64_sys_mkdir+0x60/0x70 fs/namei.c:3834
 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x61/0xcb

Freed by task 5:
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track+0x4a/0x70 mm/kasan/common.c:45
 kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370
 ____kasan_slab_free+0x125/0x160 mm/kasan/common.c:362
 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:370
 kasan_slab_free include/linux/kasan.h:220 [inline]
 slab_free_hook mm/slub.c:1600 [inline]
 slab_free_freelist_hook+0xc5/0x190 mm/slub.c:1626
 slab_free mm/slub.c:3208 [inline]
 kfree+0xc0/0x270 mm/slub.c:4196
 skb_free_head net/core/skbuff.c:606 [inline]
 skb_release_data+0x53b/0x690 net/core/skbuff.c:626
 skb_release_all net/core/skbuff.c:680 [inline]
 __kfree_skb net/core/skbuff.c:694 [inline]
 consume_skb+0xab/0x1f0 net/core/skbuff.c:851
 netlink_broadcast_filtered+0x11ce/0x12c0 net/netlink/af_netlink.c:1535
 netlink_broadcast net/netlink/af_netlink.c:1557 [inline]
 nlmsg_multicast include/net/netlink.h:1033 [inline]
 nlmsg_notify+0xe9/0x1a0 net/netlink/af_netlink.c:2551
 rtnl_notify+0x9a/0xc0 net/core/rtnetlink.c:740
 __neigh_notify+0xd2/0x130 net/core/neighbour.c:3385
 neigh_cleanup_and_release+0x2c/0x1a0 net/core/neighbour.c:102
 neigh_del net/core/neighbour.c:198 [inline]
 neigh_remove_one+0x343/0x3b0 net/core/neighbour.c:219
 neigh_forced_gc net/core/neighbour.c:252 [inline]
 neigh_alloc net/core/neighbour.c:430 [inline]
 ___neigh_create+0x48d/0x1a70 net/core/neighbour.c:592
 __neigh_create+0x31/0x40 net/core/neighbour.c:680
 ip6_finish_output2+0x8fe/0x1540 net/ipv6/ip6_output.c:127
 __ip6_finish_output+0x5fd/0x790 net/ipv6/ip6_output.c:201
 ip6_finish_output+0x33/0x1e0 net/ipv6/ip6_output.c:211
 NF_HOOK_COND include/linux/netfilter.h:288 [inline]
 ip6_output+0x1fa/0x420 net/ipv6/ip6_output.c:234
 dst_output include/net/dst.h:451 [inline]
 NF_HOOK include/linux/netfilter.h:299 [inline]
 ndisc_send_skb+0x721/0xbc0 net/ipv6/ndisc.c:513
 ndisc_send_rs+0x711/0x960 net/ipv6/ndisc.c:707
 addrconf_dad_completed+0x945/0xe30 net/ipv6/addrconf.c:4286
 addrconf_dad_work+0xc5f/0x1480 net/ipv6/addrconf.c:-1
 process_one_work+0x6fd/0xbc0 kernel/workqueue.c:2301
 worker_thread+0xa8e/0x13c0 kernel/workqueue.c:2447
 kthread+0x324/0x3b0 kernel/kthread.c:313
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298

The buggy address belongs to the object at ffff888118286800
 which belongs to the cache kmalloc-1k of size 1024
The buggy address is located 60 bytes inside of
 1024-byte region [ffff888118286800, ffff888118286c00)
The buggy address belongs to the page:
page:ffffea000460a000 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888118281800 pfn:0x118280
head:ffffea000460a000 order:3 compound_mapcount:0 compound_pincount:0
flags: 0x4000000000010200(slab|head)
raw: 4000000000010200 ffffea00049b1808 ffffea000415f808 ffff888100042f00
raw: ffff888118281800 000000000010000b 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 94, ts 5995247225, free_ts 0
 set_page_owner include/linux/page_owner.h:35 [inline]
 post_alloc_hook mm/page_alloc.c:2456 [inline]
 prep_new_page+0x176/0x190 mm/page_alloc.c:2462
 get_page_from_freelist+0x225f/0x23f0 mm/page_alloc.c:4254
 __alloc_pages_nodemask+0x29a/0x640 mm/page_alloc.c:5384
 alloc_slab_page mm/slub.c:-1 [inline]
 allocate_slab mm/slub.c:1813 [inline]
 new_slab+0x84/0x3f0 mm/slub.c:1874
 new_slab_objects mm/slub.c:2632 [inline]
 ___slab_alloc+0x2f8/0x4c0 mm/slub.c:2796
 __slab_alloc+0x63/0xa0 mm/slub.c:2836
 slab_alloc_node mm/slub.c:2918 [inline]
 slab_alloc mm/slub.c:2960 [inline]
 __kmalloc_track_caller+0x1e4/0x310 mm/slub.c:4541
 __kmalloc_reserve net/core/skbuff.c:144 [inline]
 __alloc_skb+0xdc/0x520 net/core/skbuff.c:212
 alloc_skb include/linux/skbuff.h:1126 [inline]
 netlink_alloc_large_skb net/netlink/af_netlink.c:1178 [inline]
 netlink_sendmsg+0x693/0xb70 net/netlink/af_netlink.c:1894
 sock_sendmsg_nosec net/socket.c:652 [inline]
 __sock_sendmsg net/socket.c:664 [inline]
 ____sys_sendmsg+0x5be/0x8f0 net/socket.c:2377
 ___sys_sendmsg+0x236/0x2e0 net/socket.c:2431
 __sys_sendmsg net/socket.c:2460 [inline]
 __do_sys_sendmsg net/socket.c:2469 [inline]
 __se_sys_sendmsg net/socket.c:2467 [inline]
 __x64_sys_sendmsg+0x201/0x2d0 net/socket.c:2467
 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
page_owner free stack trace missing

Memory state around the buggy address:
 ffff888118286700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff888118286780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888118286800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                        ^
 ffff888118286880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888118286900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
------------[ cut here ]------------
kobject: '' (ffff888118286800): is not initialized, yet kobject_get() is being called.
WARNING: CPU: 0 PID: 3023 at lib/kobject.c:666 kobject_get+0x7c/0x120 lib/kobject.c:664
Modules linked in:
CPU: 0 PID: 3023 Comm: syz.1.996 Tainted: G    B   W         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:664
Code: 0a ff 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 16 31 45 ff 48 8b 33 48 c7 c7 c0 9b 41 85 48 89 da e8 e4 fc 1e 02 <0f> 0b eb 0c e8 db bb 0a ff eb 4c e8 d4 bb 0a ff 4c 8d 73 38 4c 89
RSP: 0018:ffffc90000f07970 EFLAGS: 00010246
RAX: 47c69474ecc08400 RBX: ffff888118286800 RCX: 0000000000080000
RDX: ffffc90009ee6000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc90000f07988 R08: ffff8881f7052fbf R09: 1ffff1103ee0a5f7
R10: dffffc0000000000 R11: ffffed103ee0a5f8 R12: 0000000000000000
R13: ffff888127ad4068 R14: 0000000000000000 R15: dffffc0000000000
FS:  00007fae9ba976c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcc5f5de2f8 CR3: 0000000136151000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 get_device drivers/base/core.c:3361 [inline]
 device_add+0x331/0xc00 drivers/base/core.c:3191
 device_create_groups_vargs drivers/base/core.c:3960 [inline]
 device_create+0x26c/0x300 drivers/base/core.c:4002
 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31
 create_alsa_device drivers/usb/gadget/function/f_midi.c:1262 [inline]
 f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1303
 try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline]
 usb_get_function_instance+0xe2/0x2f0 drivers/usb/gadget/functions.c:44
 function_make+0x118/0x350 drivers/usb/gadget/configfs.c:636
 configfs_mkdir+0x5d2/0xd90 fs/configfs/dir.c:1354
 vfs_mkdir+0x42c/0x600 fs/namei.c:3798
 do_mkdirat+0x14c/0x340 fs/namei.c:3820
 __do_sys_mkdirat fs/namei.c:3831 [inline]
 __se_sys_mkdirat fs/namei.c:3829 [inline]
 __x64_sys_mkdirat+0x7b/0x90 fs/namei.c:3829
 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fae9d03e019
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:00007fae9ba97028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007fae9d2c5fa0 RCX: 00007fae9d03e019
RDX: 00000000000001ff RSI: 00002000000003c0 RDI: ffffffffffffff9c
RBP: 00007fae9d0d500c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fae9d2c6038 R14: 00007fae9d2c5fa0 R15: 00007fff9dbe9818
---[ end trace 07b8918733b02ddf ]---
------------[ cut here ]------------
kobject: '' (ffff888118286800): is not initialized, yet kobject_get() is being called.
WARNING: CPU: 0 PID: 3023 at lib/kobject.c:666 kobject_get lib/kobject.c:664 [inline]
WARNING: CPU: 0 PID: 3023 at lib/kobject.c:666 kobject_add_internal+0x12e/0xde0 lib/kobject.c:248
Modules linked in:
CPU: 0 PID: 3023 Comm: syz.1.996 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:664 [inline]
RIP: 0010:kobject_add_internal+0x12e/0xde0 lib/kobject.c:248
Code: b9 00 00 00 00 00 fc ff df 80 3c 08 00 74 08 4c 89 e7 e8 95 18 45 ff 49 8b 34 24 48 c7 c7 c0 9b 41 85 4c 89 e2 e8 62 e4 1e 02 <0f> 0b e9 04 01 00 00 e8 56 a3 0a ff b8 fe ff ff ff e9 b0 09 00 00
RSP: 0018:ffffc90000f077d8 EFLAGS: 00010246
RAX: 47c69474ecc08400 RBX: ffff88810aa27e00 RCX: 0000000000080000
RDX: ffffc90009ee6000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc90000f07830 R08: ffff8881f7052fbf R09: 1ffff1103ee0a5f7
R10: dffffc0000000000 R11: ffffed103ee0a5f8 R12: ffff888118286800
R13: ffff88810aa27e18 R14: 0000000000000000 R15: 1ffff11021544fc0
FS:  00007fae9ba976c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c2f6621 CR3: 0000000136151000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 kobject_add_varg lib/kobject.c:398 [inline]
 kobject_add+0x165/0x230 lib/kobject.c:450
 class_dir_create_and_add drivers/base/core.c:2825 [inline]
 get_device_parent+0x3a6/0x410 drivers/base/core.c:2880
 device_add+0x349/0xc00 drivers/base/core.c:3192
 device_create_groups_vargs drivers/base/core.c:3960 [inline]
 device_create+0x26c/0x300 drivers/base/core.c:4002
 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31
 create_alsa_device drivers/usb/gadget/function/f_midi.c:1262 [inline]
 f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1303
 try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline]
 usb_get_function_instance+0xe2/0x2f0 drivers/usb/gadget/functions.c:44
 function_make+0x118/0x350 drivers/usb/gadget/configfs.c:636
 configfs_mkdir+0x5d2/0xd90 fs/configfs/dir.c:1354
 vfs_mkdir+0x42c/0x600 fs/namei.c:3798
 do_mkdirat+0x14c/0x340 fs/namei.c:3820
 __do_sys_mkdirat fs/namei.c:3831 [inline]
 __se_sys_mkdirat fs/namei.c:3829 [inline]
 __x64_sys_mkdirat+0x7b/0x90 fs/namei.c:3829
 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fae9d03e019
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:00007fae9ba97028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007fae9d2c5fa0 RCX: 00007fae9d03e019
RDX: 00000000000001ff RSI: 00002000000003c0 RDI: ffffffffffffff9c
RBP: 00007fae9d0d500c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fae9d2c6038 R14: 00007fae9d2c5fa0 R15: 00007fff9dbe9818
---[ end trace 07b8918733b02de0 ]---
general protection fault, probably for non-canonical address 0xe03ffc0000000004: 0000 [#1] PREEMPT SMP KASAN
KASAN: maybe wild-memory-access in range [0x0200000000000020-0x0200000000000027]
CPU: 0 PID: 3023 Comm: syz.1.996 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:1084 [inline]
RIP: 0010:kobj_ns_ops lib/kobject.c:1092 [inline]
RIP: 0010:kobject_namespace lib/kobject.c:30 [inline]
RIP: 0010:create_dir lib/kobject.c:89 [inline]
RIP: 0010:kobject_add_internal+0x5e3/0xde0 lib/kobject.c:263
Code: 4c 89 e7 e8 ef 13 45 ff 4d 8b 24 24 4d 85 e4 0f 84 db 00 00 00 49 83 c4 20 4c 89 e0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 4c 89 e7 e8 bf 13 45 ff 49 8b 04 24 48 85 c0 0f
RSP: 0018:ffffc90000f077d8 EFLAGS: 00010202
RAX: 0040000000000004 RBX: ffff88810aa27e00 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888118286828
RBP: ffffc90000f07830 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff520001e0eec R12: 0200000000000020
R13: ffff88810aa27e18 R14: ffffffff8681cb60 R15: ffff888118286800
FS:  00007fae9ba976c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c2f6621 CR3: 0000000136151000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 kobject_add_varg lib/kobject.c:398 [inline]
 kobject_add+0x165/0x230 lib/kobject.c:450
 class_dir_create_and_add drivers/base/core.c:2825 [inline]
 get_device_parent+0x3a6/0x410 drivers/base/core.c:2880
 device_add+0x349/0xc00 drivers/base/core.c:3192
 device_create_groups_vargs drivers/base/core.c:3960 [inline]
 device_create+0x26c/0x300 drivers/base/core.c:4002
 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31
 create_alsa_device drivers/usb/gadget/function/f_midi.c:1262 [inline]
 f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1303
 try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline]
 usb_get_function_instance+0xe2/0x2f0 drivers/usb/gadget/functions.c:44
 function_make+0x118/0x350 drivers/usb/gadget/configfs.c:636
 configfs_mkdir+0x5d2/0xd90 fs/configfs/dir.c:1354
 vfs_mkdir+0x42c/0x600 fs/namei.c:3798
 do_mkdirat+0x14c/0x340 fs/namei.c:3820
 __do_sys_mkdirat fs/namei.c:3831 [inline]
 __se_sys_mkdirat fs/namei.c:3829 [inline]
 __x64_sys_mkdirat+0x7b/0x90 fs/namei.c:3829
 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fae9d03e019
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:00007fae9ba97028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007fae9d2c5fa0 RCX: 00007fae9d03e019
RDX: 00000000000001ff RSI: 00002000000003c0 RDI: ffffffffffffff9c
RBP: 00007fae9d0d500c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fae9d2c6038 R14: 00007fae9d2c5fa0 R15: 00007fff9dbe9818
Modules linked in:
---[ end trace 07b8918733b02de1 ]---
RIP: 0010:kobj_child_ns_ops lib/kobject.c:1084 [inline]
RIP: 0010:kobj_ns_ops lib/kobject.c:1092 [inline]
RIP: 0010:kobject_namespace lib/kobject.c:30 [inline]
RIP: 0010:create_dir lib/kobject.c:89 [inline]
RIP: 0010:kobject_add_internal+0x5e3/0xde0 lib/kobject.c:263
Code: 4c 89 e7 e8 ef 13 45 ff 4d 8b 24 24 4d 85 e4 0f 84 db 00 00 00 49 83 c4 20 4c 89 e0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 4c 89 e7 e8 bf 13 45 ff 49 8b 04 24 48 85 c0 0f
RSP: 0018:ffffc90000f077d8 EFLAGS: 00010202
RAX: 0040000000000004 RBX: ffff88810aa27e00 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888118286828
RBP: ffffc90000f07830 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff520001e0eec R12: 0200000000000020
R13: ffff88810aa27e18 R14: ffffffff8681cb60 R15: ffff888118286800
FS:  00007fae9ba976c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c2f6621 CR3: 0000000136151000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	4c 89 e7             	mov    %r12,%rdi
   3:	e8 ef 13 45 ff       	call   0xff4513f7
   8:	4d 8b 24 24          	mov    (%r12),%r12
   c:	4d 85 e4             	test   %r12,%r12
   f:	0f 84 db 00 00 00    	je     0xf0
  15:	49 83 c4 20          	add    $0x20,%r12
  19:	4c 89 e0             	mov    %r12,%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:	80 3c 08 00          	cmpb   $0x0,(%rax,%rcx,1) <-- trapping instruction
  2e:	74 08                	je     0x38
  30:	4c 89 e7             	mov    %r12,%rdi
  33:	e8 bf 13 45 ff       	call   0xff4513f7
  38:	49 8b 04 24          	mov    (%r12),%rax
  3c:	48 85 c0             	test   %rax,%rax
  3f:	0f                   	.byte 0xf

Crashes (14):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/08/02 02:29 android13-5.10-lts 50b3a256e550 e611ffe1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in device_create
2026/08/02 02:29 android13-5.10-lts 50b3a256e550 e611ffe1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in device_create
2026/08/02 02:29 android13-5.10-lts 50b3a256e550 e611ffe1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in device_create
2026/08/02 01:46 android13-5.10-lts 50b3a256e550 e611ffe1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in device_create
2026/08/02 01:45 android13-5.10-lts 50b3a256e550 e611ffe1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in device_create
2026/08/01 00:46 android13-5.10-lts 50b3a256e550 7664cf44 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in device_create
2026/08/01 00:45 android13-5.10-lts 50b3a256e550 7664cf44 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in device_create
2026/08/01 00:45 android13-5.10-lts 50b3a256e550 7664cf44 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in device_create
2026/07/30 03:16 android13-5.10-lts 50b3a256e550 6ef5c1e2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in device_create
2026/07/26 18:14 android13-5.10-lts 50b3a256e550 492bab15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in device_create
2026/07/26 16:42 android13-5.10-lts 50b3a256e550 492bab15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in device_create
2026/07/26 14:53 android13-5.10-lts 50b3a256e550 492bab15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in device_create
2026/07/25 01:58 android13-5.10-lts 50b3a256e550 492bab15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in device_create
2026/07/25 06:59 android13-5.10-lts 50b3a256e550 492bab15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in device_create
* Struck through repros no longer work on HEAD.