audit: type=1326 audit(1703289902.886:245): auid=0 uid=0 gid=0 ses=4 subj=system_u:system_r:kernel_t:s0 pid=20775 comm="syz-executor.2" exe="/syz-executor.2" sig=9 arch=c000003e syscall=231 compat=0 ip=0x7ff2638ebb19 code=0x0 general protection fault, probably for non-canonical address 0xdffffc000000000a: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000050-0x0000000000000057] CPU: 0 PID: 20923 Comm: syz-executor.7 Not tainted 5.10.204 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 RIP: 0010:relay_switch_subbuf+0x216/0x940 kernel/relay.c:761 Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 d3 06 00 00 48 ba 00 00 00 00 00 fc ff df 4c 8b 73 68 49 8d 7e 50 48 89 f9 48 c1 e9 03 <80> 3c 11 00 0f 85 92 06 00 00 49 8b 55 28 49 8b 5e 50 48 b9 00 00 RSP: 0018:ffff88806ce09b80 EFLAGS: 00010016 RAX: dffffc0000000000 RBX: ffff888017a44468 RCX: 000000000000000a RDX: dffffc0000000000 RSI: ffffffff8141f98e RDI: 0000000000000050 RBP: 0000000000000000 R08: 1ffff11009042c81 R09: ffffc900036065ff R10: 0000000000000100 R11: 0000000000000001 R12: 0000000000000040 R13: ffff88800d425400 R14: 0000000000000000 R15: 0000000000000100 FS: 000055555612c400(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f59fb243718 CR3: 000000004da62000 CR4: 0000000000350ef0 Call Trace: relay_reserve include/linux/relay.h:261 [inline] trace_note.constprop.0+0x42f/0x550 kernel/trace/blktrace.c:95 trace_note_tsk kernel/trace/blktrace.c:126 [inline] __blk_add_trace.constprop.0+0xa7a/0xbd0 kernel/trace/blktrace.c:266 blk_add_trace_rq.constprop.0+0x3bd/0x4f0 kernel/trace/blktrace.c:844 trace_block_rq_complete include/trace/events/block.h:115 [inline] blk_update_request+0xa86/0xeb0 block/blk-core.c:1434 scsi_end_request+0x7a/0x8c0 drivers/scsi/scsi_lib.c:570 scsi_io_completion+0x194/0x12c0 drivers/scsi/scsi_lib.c:967 scsi_softirq_done+0x11b/0x490 drivers/scsi/scsi_lib.c:1445 blk_done_softirq+0x22f/0x370 block/blk-mq.c:590 __do_softirq+0x1b8/0x7c9 kernel/softirq.c:298 asm_call_irq_on_stack+0x12/0x20 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] do_softirq_own_stack+0x80/0xa0 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:393 [inline] __irq_exit_rcu kernel/softirq.c:423 [inline] irq_exit_rcu+0x114/0x1b0 kernel/softirq.c:435 common_interrupt+0xa1/0x1a0 arch/x86/kernel/irq.c:239 asm_common_interrupt+0x1e/0x40 arch/x86/include/asm/idtentry.h:626 RIP: 0010:__preempt_count_sub arch/x86/include/asm/preempt.h:84 [inline] RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x25/0x40 kernel/locking/spinlock.c:191 Code: 3a 00 0f 1f 00 55 48 89 fd 48 83 c7 18 53 48 89 f3 48 8b 74 24 10 e8 9a 2c 41 fd 48 89 ef e8 62 e6 41 fd f6 c7 02 75 10 53 9d <65> ff 0d 54 7e 1c 7c 5b 5d e9 8d 4f 3a 00 e8 08 04 61 fd eb e9 66 RSP: 0018:ffff8880412d7d50 EFLAGS: 00000246 RAX: 0000000000000661 RBX: 0000000000000246 RCX: 1ffffffff0d11cf2 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff83e5f0f8 RBP: ffff88800d6044e0 R08: 0000000000000001 R09: ffffffff86861757 R10: fffffbfff0d0c2ea R11: 0000000000000001 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000246 spin_unlock_irqrestore include/linux/spinlock.h:409 [inline] __wake_up_common_lock+0xde/0x140 kernel/sched/wait.c:125 pipe_release+0x18e/0x330 fs/pipe.c:727 __fput+0x285/0x980 fs/file_table.c:281 task_work_run+0xe2/0x1a0 kernel/task_work.c:161 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop kernel/entry/common.c:172 [inline] exit_to_user_mode_prepare+0x186/0x190 kernel/entry/common.c:199 syscall_exit_to_user_mode+0x38/0x1e0 kernel/entry/common.c:274 entry_SYSCALL_64_after_hwframe+0x62/0xc7 RIP: 0033:0x7f98a7b1472b Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44 RSP: 002b:00007ffe2174b6e0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007f98a7b1472b RDX: 00007f98a7c797c8 RSI: ffffffff83e4593d RDI: 0000000000000004 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000001b2d421dc0 R10: 00000000000002a6 R11: 0000000000000293 R12: 00000000001ce780 R13: 00000000000003e8 R14: 00007f98a7c74f60 R15: 00000000001ce77d Modules linked in: ---[ end trace 2e5bf3ddb4475538 ]--- RIP: 0010:relay_switch_subbuf+0x216/0x940 kernel/relay.c:761 Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 d3 06 00 00 48 ba 00 00 00 00 00 fc ff df 4c 8b 73 68 49 8d 7e 50 48 89 f9 48 c1 e9 03 <80> 3c 11 00 0f 85 92 06 00 00 49 8b 55 28 49 8b 5e 50 48 b9 00 00 RSP: 0018:ffff88806ce09b80 EFLAGS: 00010016 RAX: dffffc0000000000 RBX: ffff888017a44468 RCX: 000000000000000a RDX: dffffc0000000000 RSI: ffffffff8141f98e RDI: 0000000000000050 RBP: 0000000000000000 R08: 1ffff11009042c81 R09: ffffc900036065ff R10: 0000000000000100 R11: 0000000000000001 R12: 0000000000000040 R13: ffff88800d425400 R14: 0000000000000000 R15: 0000000000000100 FS: 000055555612c400(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f59fb243718 CR3: 000000004da62000 CR4: 0000000000350ef0 ---------------- Code disassembly (best guess): 0: 48 89 fa mov %rdi,%rdx 3: 48 c1 ea 03 shr $0x3,%rdx 7: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) b: 0f 85 d3 06 00 00 jne 0x6e4 11: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx 18: fc ff df 1b: 4c 8b 73 68 mov 0x68(%rbx),%r14 1f: 49 8d 7e 50 lea 0x50(%r14),%rdi 23: 48 89 f9 mov %rdi,%rcx 26: 48 c1 e9 03 shr $0x3,%rcx * 2a: 80 3c 11 00 cmpb $0x0,(%rcx,%rdx,1) <-- trapping instruction 2e: 0f 85 92 06 00 00 jne 0x6c6 34: 49 8b 55 28 mov 0x28(%r13),%rdx 38: 49 8b 5e 50 mov 0x50(%r14),%rbx 3c: 48 rex.W 3d: b9 .byte 0xb9