------------[ cut here ]------------ BUG? WARNING: CPU: 1 PID: 4295 at sound/usb/midi.c:1137 snd_usbmidi_output_open+0x7f1/0x990 sound/usb/midi.c:1137 Modules linked in: CPU: 1 PID: 4295 Comm: syz-executor.0 Not tainted 6.1.0-rc4-syzkaller-00356-g8f2975c2bb4c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:snd_usbmidi_output_open+0x7f1/0x990 sound/usb/midi.c:1137 Code: ed 0f 85 2e 01 00 00 eb 0e e8 eb 71 62 f9 4d 85 ed 0f 85 1e 01 00 00 e8 dd 71 62 f9 48 c7 c7 e0 11 b6 8b 31 c0 e8 af 73 29 f9 <0f> 0b b8 fa ff ff ff 48 83 c4 08 5b 41 5c 41 5d 41 5e 41 5f 5d c3 RSP: 0018:ffffc9000b03ed38 EFLAGS: 00010246 RAX: d97eb76bcaee6e00 RBX: ffff8880799940f0 RCX: 0000000000040000 RDX: ffffc90004b82000 RSI: 0000000000005e79 RDI: 0000000000005e7a RBP: dffffc0000000000 R08: ffffffff816cfd9d R09: ffffed1017364f1b R10: ffffed1017364f1b R11: 1ffff11017364f1a R12: ffff88807971aa10 R13: 0000000000000000 R14: 1ffff1100f2e3540 R15: 1ffff1100f2e3542 FS: 00007ff1b3813700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5ca75dd110 CR3: 000000007455a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: open_substream+0x34a/0x6c0 sound/core/rawmidi.c:344 rawmidi_open_priv+0xc2/0x6a0 sound/core/rawmidi.c:394 snd_rawmidi_kernel_open+0x1e3/0x280 sound/core/rawmidi.c:429 midisynth_use+0xf9/0x2b0 sound/core/seq/seq_midi.c:215 subscribe_port sound/core/seq/seq_ports.c:412 [inline] check_and_subscribe_port+0x633/0xac0 sound/core/seq/seq_ports.c:495 snd_seq_port_connect+0x27e/0x480 sound/core/seq/seq_ports.c:581 snd_seq_ioctl_subscribe_port+0x394/0x750 sound/core/seq/seq_clientmgr.c:1490 snd_seq_oss_midi_open+0x44b/0x9b0 sound/core/seq/oss/seq_oss_midi.c:361 snd_seq_oss_synth_setup_midi+0x126/0x530 sound/core/seq/oss/seq_oss_synth.c:269 snd_seq_oss_open+0x96d/0x1020 sound/core/seq/oss/seq_oss_init.c:260 odev_open+0x5e/0x90 sound/core/seq/oss/seq_oss.c:128 chrdev_open+0x5fb/0x680 fs/char_dev.c:414 do_dentry_open+0x85f/0x11b0 fs/open.c:882 do_open fs/namei.c:3557 [inline] path_openat+0x260e/0x2e00 fs/namei.c:3713 do_filp_open+0x275/0x500 fs/namei.c:3740 do_sys_openat2+0x13b/0x500 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_openat fs/open.c:1342 [inline] __se_sys_openat fs/open.c:1337 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1337 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7ff1b2a8b639 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff1b3813168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007ff1b2babf80 RCX: 00007ff1b2a8b639 RDX: 0000000000184001 RSI: 0000000020000000 RDI: ffffffffffffff9c RBP: 00007ff1b2ae67e1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe0d74bd1f R14: 00007ff1b3813300 R15: 0000000000022000