------------[ cut here ]------------ BUG? WARNING: CPU: 0 PID: 3574 at sound/usb/midi.c:1137 snd_usbmidi_output_open+0x7f1/0x990 sound/usb/midi.c:1137 Modules linked in: CPU: 1 PID: 3574 Comm: syz-executor.5 Not tainted 6.1.0-rc5-syzkaller-00144-g84368d882b96 #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 c3 02 f9 4d 85 ed 0f 85 1e 01 00 00 e8 dd c3 02 f9 48 c7 c7 a0 5b 23 8c 31 c0 e8 af c5 c9 f8 <0f> 0b b8 fa ff ff ff 48 83 c4 08 5b 41 5c 41 5d 41 5e 41 5f 5d c3 RSP: 0018:ffffc90004fded38 EFLAGS: 00010246 RAX: a0f41d9cbdcdd200 RBX: ffff88807ae180f0 RCX: 0000000000040000 RDX: ffffc9000d35b000 RSI: 0000000000005c92 RDI: 0000000000005c93 RBP: dffffc0000000000 R08: ffffffff816fdb6d R09: fffff520009fbd61 R10: fffff520009fbd61 R11: 1ffff920009fbd60 R12: ffff88801e78ea10 R13: 0000000000000000 R14: 1ffff11003cf1d40 R15: 1ffff11003cf1d42 FS: 00007fd84889e700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1f0d5811b8 CR3: 0000000077f24000 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:0x7fd847a8b639 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:00007fd84889e168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fd847babf80 RCX: 00007fd847a8b639 RDX: 0000000000000001 RSI: 0000000020000080 RDI: ffffffffffffff9c RBP: 00007fd847ae6ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffffac7a07f R14: 00007fd84889e300 R15: 0000000000022000