================================================================== BUG: KASAN: use-after-free in kobject_get+0x113/0x120 lib/kobject.c:663 Read of size 1 at addr ffff88810bfd683c by task syz.7.1647/6524 CPU: 1 PID: 6524 Comm: syz.7.1647 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report+0x10f/0x150 mm/kasan/report.c:444 __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:3518 [inline] device_add+0x2f0/0xe90 drivers/base/core.c:3342 device_create_groups_vargs drivers/base/core.c:4118 [inline] device_create+0x26c/0x300 drivers/base/core.c:4160 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:642 configfs_mkdir+0x50a/0x9c0 fs/configfs/dir.c:1329 vfs_mkdir+0x38b/0x590 fs/namei.c:4073 do_mkdirat+0x174/0x4d0 fs/namei.c:4098 __do_sys_mkdirat fs/namei.c:4113 [inline] __se_sys_mkdirat fs/namei.c:4111 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4111 x64_sys_call+0x37e/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:259 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fa755e7e0d9 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:00007fa7548b6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fa756106090 RCX: 00007fa755e7e0d9 RDX: 00000000000001ff RSI: 00002000000003c0 RDI: ffffffffffffff9c RBP: 00007fa755f15024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa756106128 R14: 00007fa756106090 R15: 00007ffc5dca8468 Allocated by task 3085: 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:433 [inline] ____kasan_kmalloc mm/kasan/common.c:512 [inline] __kasan_kmalloc+0xd4/0x100 mm/kasan/common.c:521 kasan_kmalloc include/linux/kasan.h:227 [inline] __kmalloc_track_caller+0x13c/0x2c0 mm/slub.c:4959 kmalloc_reserve net/core/skbuff.c:357 [inline] __alloc_skb+0x210/0x730 net/core/skbuff.c:428 alloc_skb include/linux/skbuff.h:1183 [inline] wg_packet_send_keepalive+0x62/0x1c0 drivers/net/wireguard/send.c:226 wg_expired_send_persistent_keepalive+0x53/0x80 drivers/net/wireguard/timers.c:141 call_timer_fn+0x38/0x290 kernel/time/timer.c:1459 expire_timers kernel/time/timer.c:1504 [inline] __run_timers+0x637/0x9a0 kernel/time/timer.c:1775 run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1788 handle_softirqs+0x250/0x560 kernel/softirq.c:583 __do_softirq kernel/softirq.c:621 [inline] invoke_softirq kernel/softirq.c:443 [inline] __irq_exit_rcu+0x52/0xf0 kernel/softirq.c:670 irq_exit_rcu+0x9/0x10 kernel/softirq.c:682 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline] sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1108 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:676 Freed by task 3198: 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:365 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:373 kasan_slab_free include/linux/kasan.h:193 [inline] slab_free_hook mm/slub.c:1728 [inline] slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1754 slab_free mm/slub.c:3526 [inline] kfree+0xc4/0x270 mm/slub.c:4588 skb_free_head net/core/skbuff.c:656 [inline] skb_release_data+0x7bd/0xa20 net/core/skbuff.c:678 skb_release_all net/core/skbuff.c:743 [inline] __kfree_skb net/core/skbuff.c:757 [inline] consume_skb+0xab/0x1f0 net/core/skbuff.c:930 wg_packet_consume_data_done drivers/net/wireguard/receive.c:442 [inline] wg_packet_rx_poll+0x1131/0x1b40 drivers/net/wireguard/receive.c:481 __napi_poll+0xbb/0x580 net/core/dev.c:7109 napi_poll net/core/dev.c:7176 [inline] net_rx_action+0x37f/0x910 net/core/dev.c:7266 handle_softirqs+0x250/0x560 kernel/softirq.c:583 __do_softirq+0xb/0xd kernel/softirq.c:621 The buggy address belongs to the object at ffff88810bfd6800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 60 bytes inside of 1024-byte region [ffff88810bfd6800, ffff88810bfd6c00) The buggy address belongs to the page: page:ffffea00042ff400 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10bfd0 head:ffffea00042ff400 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 dead000000000100 dead000000000122 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 1, ts 2660091445, free_ts 0 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2607 prep_new_page+0x1c/0x110 mm/page_alloc.c:2613 get_page_from_freelist+0x2c3a/0x2cd0 mm/page_alloc.c:4487 __alloc_pages+0x1a2/0x460 mm/page_alloc.c:5824 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1937 [inline] new_slab+0xa0/0x4d0 mm/slub.c:2000 ___slab_alloc+0x3ac/0x840 mm/slub.c:3033 __slab_alloc+0x49/0x90 mm/slub.c:3120 slab_alloc_node mm/slub.c:3211 [inline] slab_alloc mm/slub.c:3255 [inline] __kmalloc+0x16a/0x2c0 mm/slub.c:4432 __kmalloc_node include/linux/slab.h:487 [inline] kmalloc_node include/linux/slab.h:642 [inline] kzalloc_node include/linux/slab.h:761 [inline] crypto_create_tfm_node+0x77/0x360 crypto/api.c:488 crypto_alloc_tfm_node+0x162/0x340 crypto/api.c:572 crypto_alloc_tfm crypto/internal.h:124 [inline] crypto_alloc_skcipher+0x30/0x40 crypto/skcipher.c:756 simd_skcipher_create_compat+0x31/0x740 crypto/simd.c:149 simd_register_skciphers_compat+0x1b8/0x370 crypto/simd.c:249 aesni_init+0x197/0x2e0 arch/x86/crypto/aesni-intel_glue.c:1266 do_one_initcall+0x1fc/0x5a0 init/main.c:1318 do_initcall_level+0x174/0x2e0 init/main.c:1391 page_owner free stack trace missing Memory state around the buggy address: ffff88810bfd6700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88810bfd6780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88810bfd6800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88810bfd6880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88810bfd6900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ------------[ cut here ]------------ kobject: '' (ffff88810bfd6800): is not initialized, yet kobject_get() is being called. WARNING: CPU: 1 PID: 6524 at lib/kobject.c:666 kobject_get+0x7c/0x120 lib/kobject.c:664 Modules linked in: CPU: 1 PID: 6524 Comm: syz.7.1647 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:kobject_get+0x7c/0x120 lib/kobject.c:664 Code: f9 fe 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 f6 46 39 ff 48 8b 33 48 c7 c7 a0 c6 64 85 48 89 da e8 04 be 3a 02 <0f> 0b eb 0c e8 6b d7 f9 fe eb 4c e8 64 d7 f9 fe 4c 8d 73 38 4c 89 RSP: 0018:ffffc900012c7a18 EFLAGS: 00010246 RAX: d0a494e9237b5500 RBX: ffff88810bfd6800 RCX: 0000000000080000 RDX: ffffc90006fce000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc900012c7a30 R08: ffff8881f7132f3f R09: 1ffff1103ee265e7 R10: dffffc0000000000 R11: ffffed103ee265e8 R12: 1ffff1102236920e R13: dffffc0000000000 R14: 0000000000000000 R15: dffffc0000000000 FS: 00007fa7548b66c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fea102192f8 CR3: 000000011cc76000 CR4: 00000000003526a0 Call Trace: get_device drivers/base/core.c:3518 [inline] device_add+0x2f0/0xe90 drivers/base/core.c:3342 device_create_groups_vargs drivers/base/core.c:4118 [inline] device_create+0x26c/0x300 drivers/base/core.c:4160 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:642 configfs_mkdir+0x50a/0x9c0 fs/configfs/dir.c:1329 vfs_mkdir+0x38b/0x590 fs/namei.c:4073 do_mkdirat+0x174/0x4d0 fs/namei.c:4098 __do_sys_mkdirat fs/namei.c:4113 [inline] __se_sys_mkdirat fs/namei.c:4111 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4111 x64_sys_call+0x37e/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:259 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fa755e7e0d9 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:00007fa7548b6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fa756106090 RCX: 00007fa755e7e0d9 RDX: 00000000000001ff RSI: 00002000000003c0 RDI: ffffffffffffff9c RBP: 00007fa755f15024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa756106128 R14: 00007fa756106090 R15: 00007ffc5dca8468 ---[ end trace 5df6894da707996d ]--- ------------[ cut here ]------------ refcount_t: saturated; leaking memory. WARNING: CPU: 1 PID: 6524 at lib/refcount.c:22 refcount_warn_saturate+0x158/0x1a0 lib/refcount.c:22 Modules linked in: CPU: 1 PID: 6524 Comm: syz.7.1647 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:refcount_warn_saturate+0x158/0x1a0 lib/refcount.c:22 Code: 04 01 48 c7 c7 a0 4a 63 85 e8 04 69 5a 02 0f 0b eb 8b e8 6b 82 19 ff c6 05 16 f6 95 04 01 48 c7 c7 a0 4a 63 85 e8 e8 68 5a 02 <0f> 0b e9 6c ff ff ff e8 4c 82 19 ff c6 05 fb f5 95 04 01 48 c7 c7 RSP: 0018:ffffc900012c79f8 EFLAGS: 00010246 RAX: d0a494e9237b5500 RBX: 0000000000000001 RCX: 0000000000080000 RDX: ffffc90006fce000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc900012c7a08 R08: ffff8881f7132f3f R09: 1ffff1103ee265e7 R10: dffffc0000000000 R11: ffffed103ee265e8 R12: 1ffff1102236920e R13: dffffc0000000000 R14: 0000000000000001 R15: 00000000aaaaaaaa FS: 00007fa7548b66c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fea102192f8 CR3: 000000011cc76000 CR4: 00000000003526a0 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:667 get_device drivers/base/core.c:3518 [inline] device_add+0x2f0/0xe90 drivers/base/core.c:3342 device_create_groups_vargs drivers/base/core.c:4118 [inline] device_create+0x26c/0x300 drivers/base/core.c:4160 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:642 configfs_mkdir+0x50a/0x9c0 fs/configfs/dir.c:1329 vfs_mkdir+0x38b/0x590 fs/namei.c:4073 do_mkdirat+0x174/0x4d0 fs/namei.c:4098 __do_sys_mkdirat fs/namei.c:4113 [inline] __se_sys_mkdirat fs/namei.c:4111 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4111 x64_sys_call+0x37e/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:259 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fa755e7e0d9 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:00007fa7548b6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fa756106090 RCX: 00007fa755e7e0d9 RDX: 00000000000001ff RSI: 00002000000003c0 RDI: ffffffffffffff9c RBP: 00007fa755f15024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa756106128 R14: 00007fa756106090 R15: 00007ffc5dca8468 ---[ end trace 5df6894da707996e ]--- ------------[ cut here ]------------ kobject: '' (ffff88810bfd6800): is not initialized, yet kobject_get() is being called. WARNING: CPU: 1 PID: 6524 at lib/kobject.c:666 kobject_get lib/kobject.c:664 [inline] WARNING: CPU: 1 PID: 6524 at lib/kobject.c:666 kobject_add_internal+0x12e/0xde0 lib/kobject.c:248 Modules linked in: CPU: 1 PID: 6524 Comm: syz.7.1647 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/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 75 2e 39 ff 49 8b 34 24 48 c7 c7 a0 c6 64 85 4c 89 e2 e8 82 a5 3a 02 <0f> 0b e9 04 01 00 00 e8 e6 be f9 fe b8 fe ff ff ff e9 b0 09 00 00 RSP: 0018:ffffc900012c7898 EFLAGS: 00010246 RAX: d0a494e9237b5500 RBX: ffff88810ae15800 RCX: 0000000000080000 RDX: ffffc90006fce000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc900012c78f0 R08: ffff8881f7132f3f R09: 1ffff1103ee265e7 R10: dffffc0000000000 R11: ffffed103ee265e8 R12: ffff88810bfd6800 R13: ffff88810ae15818 R14: 0000000000000000 R15: 1ffff110215c2b00 FS: 00007fa7548b66c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fea102192f8 CR3: 000000011cc76000 CR4: 00000000003526a0 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:2976 [inline] get_device_parent+0x3a6/0x410 drivers/base/core.c:3031 device_add+0x308/0xe90 drivers/base/core.c:3343 device_create_groups_vargs drivers/base/core.c:4118 [inline] device_create+0x26c/0x300 drivers/base/core.c:4160 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:642 configfs_mkdir+0x50a/0x9c0 fs/configfs/dir.c:1329 vfs_mkdir+0x38b/0x590 fs/namei.c:4073 do_mkdirat+0x174/0x4d0 fs/namei.c:4098 __do_sys_mkdirat fs/namei.c:4113 [inline] __se_sys_mkdirat fs/namei.c:4111 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4111 x64_sys_call+0x37e/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:259 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fa755e7e0d9 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:00007fa7548b6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fa756106090 RCX: 00007fa755e7e0d9 RDX: 00000000000001ff RSI: 00002000000003c0 RDI: ffffffffffffff9c RBP: 00007fa755f15024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa756106128 R14: 00007fa756106090 R15: 00007ffc5dca8468 ---[ end trace 5df6894da707996f ]--- general protection fault, probably for non-canonical address 0xe15551555555400e: 0000 [#1] PREEMPT SMP KASAN KASAN: maybe wild-memory-access in range [0x0aaaaaaaaaaa0070-0x0aaaaaaaaaaa0077] CPU: 1 PID: 6524 Comm: syz.7.1647 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:kernfs_new_node+0x3f/0x260 fs/kernfs/dir.c:657 Code: 45 89 c5 89 4d d4 41 89 d7 48 89 75 c0 48 89 fb 49 be 00 00 00 00 00 fc ff df e8 6c a3 98 ff 4c 8d 63 72 4c 89 e0 48 c1 e8 03 <42> 0f b6 04 30 84 c0 0f 85 b8 01 00 00 45 0f b7 24 24 44 89 e6 81 RSP: 0018:ffffc900012c7748 EFLAGS: 00010202 RAX: 015555555555400e RBX: 0aaaaaaaaaaa0000 RCX: 0000000000080000 RDX: ffffc90006fce000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc900012c7788 R08: 0000000000000000 R09: 0000000000000001 R10: dffffc0000000000 R11: fffff52000258f04 R12: 0aaaaaaaaaaa0072 R13: 0000000000000000 R14: dffffc0000000000 R15: 00000000000041ed FS: 00007fa7548b66c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fea102192f8 CR3: 000000011cc76000 CR4: 00000000003526a0 Call Trace: kernfs_create_dir_ns+0x47/0x130 fs/kernfs/dir.c:1017 sysfs_create_dir_ns+0x128/0x290 fs/sysfs/dir.c:59 create_dir lib/kobject.c:89 [inline] kobject_add_internal+0x774/0xde0 lib/kobject.c:263 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:2976 [inline] get_device_parent+0x3a6/0x410 drivers/base/core.c:3031 device_add+0x308/0xe90 drivers/base/core.c:3343 device_create_groups_vargs drivers/base/core.c:4118 [inline] device_create+0x26c/0x300 drivers/base/core.c:4160 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:642 configfs_mkdir+0x50a/0x9c0 fs/configfs/dir.c:1329 vfs_mkdir+0x38b/0x590 fs/namei.c:4073 do_mkdirat+0x174/0x4d0 fs/namei.c:4098 __do_sys_mkdirat fs/namei.c:4113 [inline] __se_sys_mkdirat fs/namei.c:4111 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4111 x64_sys_call+0x37e/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:259 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fa755e7e0d9 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:00007fa7548b6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fa756106090 RCX: 00007fa755e7e0d9 RDX: 00000000000001ff RSI: 00002000000003c0 RDI: ffffffffffffff9c RBP: 00007fa755f15024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa756106128 R14: 00007fa756106090 R15: 00007ffc5dca8468 Modules linked in: ---[ end trace 5df6894da7079970 ]--- RIP: 0010:kernfs_new_node+0x3f/0x260 fs/kernfs/dir.c:657 Code: 45 89 c5 89 4d d4 41 89 d7 48 89 75 c0 48 89 fb 49 be 00 00 00 00 00 fc ff df e8 6c a3 98 ff 4c 8d 63 72 4c 89 e0 48 c1 e8 03 <42> 0f b6 04 30 84 c0 0f 85 b8 01 00 00 45 0f b7 24 24 44 89 e6 81 RSP: 0018:ffffc900012c7748 EFLAGS: 00010202 RAX: 015555555555400e RBX: 0aaaaaaaaaaa0000 RCX: 0000000000080000 RDX: ffffc90006fce000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc900012c7788 R08: 0000000000000000 R09: 0000000000000001 R10: dffffc0000000000 R11: fffff52000258f04 R12: 0aaaaaaaaaaa0072 R13: 0000000000000000 R14: dffffc0000000000 R15: 00000000000041ed FS: 00007fa7548b66c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fea102192f8 CR3: 000000011cc76000 CR4: 00000000003526a0 ---------------- Code disassembly (best guess): 0: 45 89 c5 mov %r8d,%r13d 3: 89 4d d4 mov %ecx,-0x2c(%rbp) 6: 41 89 d7 mov %edx,%r15d 9: 48 89 75 c0 mov %rsi,-0x40(%rbp) d: 48 89 fb mov %rdi,%rbx 10: 49 be 00 00 00 00 00 movabs $0xdffffc0000000000,%r14 17: fc ff df 1a: e8 6c a3 98 ff call 0xff98a38b 1f: 4c 8d 63 72 lea 0x72(%rbx),%r12 23: 4c 89 e0 mov %r12,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 0f b6 04 30 movzbl (%rax,%r14,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 85 b8 01 00 00 jne 0x1ef 37: 45 0f b7 24 24 movzwl (%r12),%r12d 3c: 44 89 e6 mov %r12d,%esi 3f: 81 .byte 0x81