syzbot


gvisor test error: panic: ptrace set regs (&{PtraceRegs:{Regs:[ADDR NUM ADDR NUM NUM NUM NUM ADDR ADDR NUM NUM ADDR ADDR NUM ADDR ADDR NUM

Status: fixed on 2023/01/18 18:09
Fix commit: 194029b95444 arm64: validate registers that come from user-space
First crash: 679d, last: 679d

Sample crash report:
panic: ptrace set regs (&{PtraceRegs:{Regs:[274878498120 0 278528111184384 20 3 0 0 27021597764222976 278528113552312 1 24 155360 278528113552312 0 278528762734816 591280 100 0 274878498200 0 278528113552312 28500400 274878498264 155604 28549224 0 28500096 28500016 274878498360 114756 13995616] Sp:28549224 Pc:13995640 Pstate:114780} TPIDR_EL0:0}) failed: invalid argument

goroutine 5393 [running]:
panic({0x9b9ae0, 0x400024d070})
	GOROOT/src/runtime/panic.go:987 +0x3d8 fp=0x40024d7cb0 sp=0x40024d7bf0 pc=0x46ba8
gvisor.dev/gvisor/pkg/sentry/platform/ptrace.(*subprocess).switchToApp(0x400046f1a0, 0x4002a81ad0, 0x4002ac0000)
	pkg/sentry/platform/ptrace/subprocess.go:541 +0x6a4 fp=0x40024d7db0 sp=0x40024d7cb0 pc=0x6e8624
gvisor.dev/gvisor/pkg/sentry/platform/ptrace.(*context).Switch(0x4002a81ad0, {0x4001933950?, 0xb91751?}, {0xda02e8?, 0x4002abe000?}, 0x4002ac0000, 0x24d7e78?)
	pkg/sentry/platform/ptrace/ptrace.go:112 +0x58 fp=0x40024d7e20 sp=0x40024d7db0 pc=0x6e55b8
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x400075a520?, 0x4002abc000)
	pkg/sentry/kernel/task_run.go:242 +0x658 fp=0x40024d7f40 sp=0x40024d7e20 pc=0x4b46c8
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0x4002abc000, 0x915)
	pkg/sentry/kernel/task_run.go:94 +0x1ac fp=0x40024d7fb0 sp=0x40024d7f40 pc=0x4b3a8c
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.func1()
	pkg/sentry/kernel/task_start.go:377 +0x2c fp=0x40024d7fd0 sp=0x40024d7fb0 pc=0x4bd54c
runtime.goexit()
	src/runtime/asm_arm64.s:1172 +0x4 fp=0x40024d7fd0 sp=0x40024d7fd0 pc=0x7b594
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:377 +0xe8

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/16 16:20 gvisor 42e92cae6e7b fccb8cdb .config console log report ci-gvisor-arm64-ptrace-1 gvisor test error: panic: ptrace set regs (&{PtraceRegs:{Regs:[ADDR NUM ADDR NUM NUM NUM NUM ADDR ADDR NUM NUM ADDR ADDR NUM ADDR ADDR NUM
2023/01/16 16:20 gvisor 42e92cae6e7b fccb8cdb .config console log report ci-gvisor-arm64-ptrace-1 gvisor test error: panic: ptrace set regs (&{PtraceRegs:{Regs:[ADDR NUM ADDR NUM NUM NUM NUM ADDR ADDR NUM NUM ADDR ADDR NUM ADDR ADDR NUM
2023/01/16 16:20 gvisor 42e92cae6e7b fccb8cdb .config console log report ci-gvisor-arm64-ptrace-1 gvisor test error: panic: ptrace set regs (&{PtraceRegs:{Regs:[ADDR NUM ADDR NUM NUM NUM NUM ADDR ADDR NUM NUM ADDR ADDR NUM ADDR ADDR NUM
2023/01/16 16:20 gvisor 42e92cae6e7b fccb8cdb .config console log report ci-gvisor-arm64-ptrace-1 gvisor test error: panic: ptrace set regs (&{PtraceRegs:{Regs:[ADDR NUM ADDR NUM NUM NUM NUM ADDR ADDR NUM NUM ADDR ADDR NUM ADDR ADDR NUM
2023/01/16 16:19 gvisor 42e92cae6e7b fccb8cdb .config console log report ci-gvisor-arm64-ptrace-1 gvisor test error: panic: ptrace set regs (&{PtraceRegs:{Regs:[ADDR NUM ADDR NUM NUM NUM NUM ADDR ADDR NUM NUM ADDR ADDR NUM ADDR ADDR NUM
2023/01/16 16:19 gvisor 42e92cae6e7b fccb8cdb .config console log report ci-gvisor-arm64-ptrace-1 gvisor test error: panic: ptrace set regs (&{PtraceRegs:{Regs:[ADDR NUM ADDR NUM NUM NUM NUM ADDR ADDR NUM NUM ADDR ADDR NUM ADDR ADDR NUM
2023/01/16 16:18 gvisor 42e92cae6e7b fccb8cdb .config console log report ci-gvisor-arm64-ptrace-1 gvisor test error: panic: ptrace set regs (&{PtraceRegs:{Regs:[ADDR NUM ADDR NUM NUM NUM NUM ADDR ADDR NUM NUM ADDR ADDR NUM ADDR ADDR NUM
2023/01/16 16:18 gvisor 42e92cae6e7b fccb8cdb .config console log report ci-gvisor-arm64-ptrace-1 gvisor test error: panic: ptrace set regs (&{PtraceRegs:{Regs:[ADDR NUM ADDR NUM NUM NUM NUM ADDR ADDR NUM NUM ADDR ADDR NUM ADDR ADDR NUM
2023/01/16 16:16 gvisor 42e92cae6e7b fccb8cdb .config console log report ci-gvisor-arm64-ptrace-1 gvisor test error: panic: ptrace set regs (&{PtraceRegs:{Regs:[ADDR NUM ADDR NUM NUM NUM NUM ADDR ADDR NUM NUM ADDR ADDR NUM ADDR ADDR NUM
2023/01/16 16:16 gvisor 42e92cae6e7b fccb8cdb .config console log report ci-gvisor-arm64-ptrace-1 gvisor test error: panic: ptrace set regs (&{PtraceRegs:{Regs:[ADDR NUM ADDR NUM NUM NUM NUM ADDR ADDR NUM NUM ADDR ADDR NUM ADDR ADDR NUM
* Struck through repros no longer work on HEAD.