==================================================================
BUG: KASAN: use-after-free in kobject_get+0x113/0x120 lib/kobject.c:631
Read of size 1 at addr ffff88811496b83c by task syz.4.415/2264
CPU: 1 PID: 2264 Comm: syz.4.415 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/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:0x7f75d0f9e1d9
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:00007f75d1dcf028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f75d1225fa0 RCX: 00007f75d0f9e1d9
RDX: 00000000000001ff RSI: 0000200000000280 RDI: ffffffffffffff9c
RBP: 00007f75d1035888 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f75d1226038 R14: 00007f75d1225fa0 R15: 00007fff31e6ba48
Allocated by task 6:
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_kmalloc mm/kasan/common.c:380 [inline]
__kasan_kmalloc+0x95/0xb0 mm/kasan/common.c:389
kasan_kmalloc include/linux/kasan.h:212 [inline]
__do_kmalloc_node mm/slab_common.c:938 [inline]
__kmalloc_node_track_caller+0xb1/0x1e0 mm/slab_common.c:958
kmalloc_reserve net/core/skbuff.c:449 [inline]
__alloc_skb+0x226/0x4a0 net/core/skbuff.c:518
alloc_skb include/linux/skbuff.h:1322 [inline]
nlmsg_new include/net/netlink.h:987 [inline]
__neigh_notify+0x84/0x130 net/core/neighbour.c:3516
neigh_cleanup_and_release+0x2c/0x1a0 net/core/neighbour.c:101
neigh_periodic_work+0x9c5/0xbc0 net/core/neighbour.c:1005
process_one_work+0x717/0xc30 kernel/workqueue.c:2302
worker_thread+0xa4d/0x11d0 kernel/workqueue.c:2449
kthread+0x281/0x320 kernel/kthread.c:386
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
Freed by task 6:
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+0xb7/0x1b0 mm/slub.c:3728
kfree+0x6f/0xf0 mm/slab_common.c:990
skb_free_head net/core/skbuff.c:765 [inline]
skb_release_data+0x63d/0x8a0 net/core/skbuff.c:794
skb_release_all net/core/skbuff.c:859 [inline]
__kfree_skb net/core/skbuff.c:873 [inline]
consume_skb+0xab/0x1f0 net/core/skbuff.c:1038
netlink_broadcast+0x10c4/0x11c0 net/netlink/af_netlink.c:1527
nlmsg_multicast include/net/netlink.h:1067 [inline]
nlmsg_notify+0xdf/0x1a0 net/netlink/af_netlink.c:2569
rtnl_notify+0x9a/0xc0 net/core/rtnetlink.c:799
__neigh_notify+0xd3/0x130 net/core/neighbour.c:3527
neigh_cleanup_and_release+0x2c/0x1a0 net/core/neighbour.c:101
neigh_periodic_work+0x9c5/0xbc0 net/core/neighbour.c:1005
process_one_work+0x717/0xc30 kernel/workqueue.c:2302
worker_thread+0xa4d/0x11d0 kernel/workqueue.c:2449
kthread+0x281/0x320 kernel/kthread.c:386
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
The buggy address belongs to the object at ffff88811496b800
which belongs to the cache kmalloc-1k of size 1024
The buggy address is located 60 bytes inside of
1024-byte region [ffff88811496b800, ffff88811496bc00)
The buggy address belongs to the physical page:
page:ffffea0004525a00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x114968
head:ffffea0004525a00 order:3 compound_mapcount:0 compound_pincount:0
flags: 0x4000000000010200(slab|head|zone=1)
raw: 4000000000010200 ffffea0004404000 dead000000000002 ffff888100043080
raw: 0000000000000000 0000000000100010 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 104, tgid 104 (udevd), ts 6291010341, free_ts 0
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]
__kmem_cache_alloc_node+0x204/0x2d0 mm/slub.c:3423
__do_kmalloc_node mm/slab_common.c:937 [inline]
__kmalloc_node_track_caller+0xa1/0x1e0 mm/slab_common.c:958
kmalloc_reserve net/core/skbuff.c:449 [inline]
__alloc_skb+0x226/0x4a0 net/core/skbuff.c:518
alloc_skb include/linux/skbuff.h:1322 [inline]
netlink_alloc_large_skb net/netlink/af_netlink.c:1183 [inline]
netlink_sendmsg+0x635/0xbd0 net/netlink/af_netlink.c:1853
sock_sendmsg_nosec net/socket.c:716 [inline]
__sock_sendmsg net/socket.c:728 [inline]
____sys_sendmsg+0x5fb/0x9c0 net/socket.c:2509
___sys_sendmsg+0x2a2/0x360 net/socket.c:2563
__sys_sendmsg net/socket.c:2592 [inline]
__do_sys_sendmsg net/socket.c:2601 [inline]
__se_sys_sendmsg net/socket.c:2599 [inline]
__x64_sys_sendmsg+0x20d/0x2e0 net/socket.c:2599
x64_sys_call+0x171/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:47
page_owner free stack trace missing
Memory state around the buggy address:
ffff88811496b700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88811496b780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88811496b800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88811496b880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88811496b900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
------------[ cut here ]------------
kobject: '' (ffff88811496b800): is not initialized, yet kobject_get() is being called.
WARNING: CPU: 1 PID: 2264 at lib/kobject.c:634 kobject_get+0x7c/0x120 lib/kobject.c:632
Modules linked in:
CPU: 1 PID: 2264 Comm: syz.4.415 Tainted: G B syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/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 c6 f3 c8 fc 48 8b 33 48 c7 c7 60 10 0b 86 48 89 da e8 24 ea 53 fc <0f> 0b eb 0c e8 db 66 83 fc eb 4c e8 d4 66 83 fc 4c 8d 73 38 4c 89
RSP: 0018:ffffc90000997a38 EFLAGS: 00010246
RAX: 02d61d00a2236d00 RBX: ffff88811496b800 RCX: ffff888117c00000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002
RBP: ffffc90000997a50 R08: ffffc90000997747 R09: 1ffff92000132ee8
R10: dffffc0000000000 R11: fffff52000132ee9 R12: 1ffff110234e120e
R13: dffffc0000000000 R14: 0000000000000000 R15: dffffc0000000000
FS: 00007f75d1dcf6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f75d1d8dd58 CR3: 0000000128bee000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
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:0x7f75d0f9e1d9
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:00007f75d1dcf028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f75d1225fa0 RCX: 00007f75d0f9e1d9
RDX: 00000000000001ff RSI: 0000200000000280 RDI: ffffffffffffff9c
RBP: 00007f75d1035888 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f75d1226038 R14: 00007f75d1225fa0 R15: 00007fff31e6ba48
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
refcount_t: addition on 0; use-after-free.
WARNING: CPU: 1 PID: 2264 at lib/refcount.c:25 refcount_warn_saturate+0x104/0x1a0 lib/refcount.c:25
Modules linked in:
CPU: 1 PID: 2264 Comm: syz.4.415 Tainted: G B W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026
RIP: 0010:refcount_warn_saturate+0x104/0x1a0 lib/refcount.c:25
Code: 05 01 48 c7 c7 40 13 ca 85 e8 98 bd d8 fe 0f 0b eb df e8 4f 3a 08 ff c6 05 40 73 26 05 01 48 c7 c7 80 12 ca 85 e8 7c bd d8 fe <0f> 0b eb c3 e8 33 3a 08 ff c6 05 25 73 26 05 01 48 c7 c7 e0 12 ca
RSP: 0018:ffffc90000997a18 EFLAGS: 00010246
RAX: 02d61d00a2236d00 RBX: 0000000000000002 RCX: ffff888117c00000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002
RBP: ffffc90000997a28 R08: ffffc90000997607 R09: 1ffff92000132ec0
R10: dffffc0000000000 R11: fffff52000132ec1 R12: 1ffff110234e120e
R13: dffffc0000000000 R14: 0000000000000002 R15: 0000000000000000
FS: 00007f75d1dcf6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f75d1d8dd58 CR3: 0000000128bee000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__refcount_add include/linux/refcount.h:-1 [inline]
__refcount_inc include/linux/refcount.h:250 [inline]
refcount_inc include/linux/refcount.h:267 [inline]
kref_get include/linux/kref.h:45 [inline]
kobject_get+0xfb/0x120 lib/kobject.c:635
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:0x7f75d0f9e1d9
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:00007f75d1dcf028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f75d1225fa0 RCX: 00007f75d0f9e1d9
RDX: 00000000000001ff RSI: 0000200000000280 RDI: ffffffffffffff9c
RBP: 00007f75d1035888 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f75d1226038 R14: 00007f75d1225fa0 R15: 00007fff31e6ba48
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
kobject: '' (ffff88811496b800): is not initialized, yet kobject_get() is being called.
WARNING: CPU: 1 PID: 2264 at lib/kobject.c:634 kobject_get lib/kobject.c:632 [inline]
WARNING: CPU: 1 PID: 2264 at lib/kobject.c:634 kobject_add_internal+0x110/0xc20 lib/kobject.c:216
Modules linked in:
CPU: 1 PID: 2264 Comm: syz.4.415 Tainted: G B W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/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 62 dc c8 fc 49 8b 36 48 c7 c7 60 10 0b 86 4c 89 f2 e8 c0 d2 53 fc <0f> 0b e9 f8 00 00 00 e8 74 4f 83 fc b8 fe ff ff ff e9 31 08 00 00
RSP: 0018:ffffc900009978b8 EFLAGS: 00010246
RAX: 02d61d00a2236d00 RBX: ffff888114f88500 RCX: ffff888117c00000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002
RBP: ffffc90000997910 R08: ffffc900009975c7 R09: 1ffff92000132eb8
R10: dffffc0000000000 R11: fffff52000132eb9 R12: dffffc0000000000
R13: ffff888114f88518 R14: ffff88811496b800 R15: 1ffff110229f10a0
FS: 00007f75d1dcf6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f75d1d8dd58 CR3: 0000000128bee000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
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_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:0x7f75d0f9e1d9
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:00007f75d1dcf028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f75d1225fa0 RCX: 00007f75d0f9e1d9
RDX: 00000000000001ff RSI: 0000200000000280 RDI: ffffffffffffff9c
RBP: 00007f75d1035888 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f75d1226038 R14: 00007f75d1225fa0 R15: 00007fff31e6ba48
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
refcount_t: saturated; leaking memory.
WARNING: CPU: 1 PID: 2264 at lib/refcount.c:22 refcount_warn_saturate+0x158/0x1a0 lib/refcount.c:22
Modules linked in:
CPU: 1 PID: 2264 Comm: syz.4.415 Tainted: G B W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026
RIP: 0010:refcount_warn_saturate+0x158/0x1a0 lib/refcount.c:22
Code: 05 01 48 c7 c7 20 12 ca 85 e8 44 bd d8 fe 0f 0b eb 8b e8 fb 39 08 ff c6 05 eb 72 26 05 01 48 c7 c7 20 12 ca 85 e8 28 bd d8 fe <0f> 0b e9 6c ff ff ff e8 dc 39 08 ff c6 05 d0 72 26 05 01 48 c7 c7
RSP: 0018:ffffc90000997898 EFLAGS: 00010246
RAX: 02d61d00a2236d00 RBX: 0000000000000001 RCX: ffff888117c00000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002
RBP: ffffc900009978a8 R08: ffff8881f6e2759b R09: 1ffff1103edc4eb3
R10: dffffc0000000000 R11: ffffed103edc4eb4 R12: dffffc0000000000
R13: ffff888114f88518 R14: 0000000000000001 R15: 00000000c0000000
FS: 00007f75d1dcf6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f75d1d8dd58 CR3: 0000000128bee000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__refcount_add include/linux/refcount.h:-1 [inline]
__refcount_inc include/linux/refcount.h:250 [inline]
refcount_inc include/linux/refcount.h:267 [inline]
kref_get include/linux/kref.h:45 [inline]
kobject_get lib/kobject.c:635 [inline]
kobject_add_internal+0xa81/0xc20 lib/kobject.c:216
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_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:0x7f75d0f9e1d9
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:00007f75d1dcf028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f75d1225fa0 RCX: 00007f75d0f9e1d9
RDX: 00000000000001ff RSI: 0000200000000280 RDI: ffffffffffffff9c
RBP: 00007f75d1035888 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f75d1226038 R14: 00007f75d1225fa0 R15: 00007fff31e6ba48
---[ end trace 0000000000000000 ]---
general protection fault, probably for non-canonical address 0xe03ffc0000000003: 0000 [#1] PREEMPT SMP KASAN
KASAN: maybe wild-memory-access in range [0x0200000000000018-0x020000000000001f]
CPU: 1 PID: 2264 Comm: syz.4.415 Tainted: G B W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/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 e8 d7 c8 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 c2 d7 c8 fc 49 8b 07 48 85 c0 0f
RSP: 0018:ffffc900009978b8 EFLAGS: 00010206
RAX: 0040000000000003 RBX: ffff888114f88500 RCX: ffffffff84ee2328
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88811496b828
RBP: ffffc90000997910 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52000132f08 R12: dffffc0000000000
R13: 1ffff110229f10a5 R14: ffffffff8747fb60 R15: 0200000000000018
FS: 00007f75d1dcf6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f75d1d8dd58 CR3: 0000000128bee000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
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_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:0x7f75d0f9e1d9
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:00007f75d1dcf028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f75d1225fa0 RCX: 00007f75d0f9e1d9
RDX: 00000000000001ff RSI: 0000200000000280 RDI: ffffffffffffff9c
RBP: 00007f75d1035888 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f75d1226038 R14: 00007f75d1225fa0 R15: 00007fff31e6ba48
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 e8 d7 c8 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 c2 d7 c8 fc 49 8b 07 48 85 c0 0f
RSP: 0018:ffffc900009978b8 EFLAGS: 00010206
RAX: 0040000000000003 RBX: ffff888114f88500 RCX: ffffffff84ee2328
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88811496b828
RBP: ffffc90000997910 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52000132f08 R12: dffffc0000000000
R13: 1ffff110229f10a5 R14: ffffffff8747fb60 R15: 0200000000000018
FS: 00007f75d1dcf6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f75d1d8dd58 CR3: 0000000128bee000 CR4: 00000000003506a0
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 e8 d7 c8 fc call 0xfcc8d7fb
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 c2 d7 c8 fc call 0xfcc8d7fb
39: 49 8b 07 mov (%r15),%rax
3c: 48 85 c0 test %rax,%rax
3f: 0f .byte 0xf