general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f] CPU: 1 PID: 4645 Comm: syz-executor.1 Not tainted 5.18.0-syzkaller-13842-g952923ddc011 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:snd_virmidi_output_trigger+0x82/0x130 sound/core/seq/seq_virmidi.c:169 Code: 8b ad 30 01 00 00 31 ff 89 de e8 d9 8b 4f fa 85 db 48 b8 00 00 00 00 00 fc ff df 41 0f 95 c4 48 8d 7d 1c 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 04 84 c0 75 60 31 ff 44 88 RSP: 0018:ffffc9000cf3fc28 EFLAGS: 00010207 RAX: dffffc0000000000 RBX: 0000000000000001 RCX: ffffffff872af747 RDX: 0000000000000003 RSI: 0000000000000000 RDI: 000000000000001c RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffff888020909c01 R13: 000000007fc88000 R14: ffff88814a459900 R15: 0000000000001000 FS: 0000000000000000(0000) GS:ffff8880b9b00000(0063) knlGS:00000000f7faeb40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000020376000 CR3: 00000000202c7000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: snd_rawmidi_output_trigger sound/core/rawmidi.c:186 [inline] snd_rawmidi_output_trigger sound/core/rawmidi.c:182 [inline] snd_rawmidi_kernel_write1+0x548/0x870 sound/core/rawmidi.c:1502 snd_rawmidi_write+0x273/0xb90 sound/core/rawmidi.c:1555 vfs_write+0x269/0xac0 fs/read_write.c:589 ksys_write+0x1e8/0x250 fs/read_write.c:644 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x53/0x62 RIP: 0023:0xf7fb3549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f7fae5cc EFLAGS: 00000296 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000020000000 RDX: 00000000fffffd2c RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:snd_virmidi_output_trigger+0x82/0x130 sound/core/seq/seq_virmidi.c:169 Code: 8b ad 30 01 00 00 31 ff 89 de e8 d9 8b 4f fa 85 db 48 b8 00 00 00 00 00 fc ff df 41 0f 95 c4 48 8d 7d 1c 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 04 84 c0 75 60 31 ff 44 88 RSP: 0018:ffffc9000cf3fc28 EFLAGS: 00010207 RAX: dffffc0000000000 RBX: 0000000000000001 RCX: ffffffff872af747 RDX: 0000000000000003 RSI: 0000000000000000 RDI: 000000000000001c RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffff888020909c01 R13: 000000007fc88000 R14: ffff88814a459900 R15: 0000000000001000 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0063) knlGS:00000000f7faeb40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 000000002f424000 CR3: 00000000202c7000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 8b ad 30 01 00 00 mov 0x130(%rbp),%ebp 6: 31 ff xor %edi,%edi 8: 89 de mov %ebx,%esi a: e8 d9 8b 4f fa callq 0xfa4f8be8 f: 85 db test %ebx,%ebx 11: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 18: fc ff df 1b: 41 0f 95 c4 setne %r12b 1f: 48 8d 7d 1c lea 0x1c(%rbp),%rdi 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax <-- trapping instruction 2e: 48 89 fa mov %rdi,%rdx 31: 83 e2 07 and $0x7,%edx 34: 38 d0 cmp %dl,%al 36: 7f 04 jg 0x3c 38: 84 c0 test %al,%al 3a: 75 60 jne 0x9c 3c: 31 ff xor %edi,%edi 3e: 44 rex.R 3f: 88 .byte 0x88