syzbot


panic: ptrace status unexpected: got 9, wanted stopped (2)

Status: fixed on 2018/12/12 09:36
Fix commit: e7191f058f55 Use TRAP to simplify vsyscall emulation.
First crash: 2334d, last: 2181d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
gvisor panic: ptrace status unexpected: got 9, wanted stopped (4) 142 1390d 1862d 0/26 auto-closed as invalid on 2021/05/17 08:51
gvisor panic: ptrace status unexpected: got 9, wanted stopped (3) C 21 2099d 2083d 0/26 closed as invalid on 2019/08/13 22:02

Sample crash report:
panic: ptrace status unexpected: got 9, wanted stopped

goroutine 311262 [running]:
gvisor.googlesource.com/gvisor/pkg/sentry/platform/ptrace.(*thread).wait(0xc4204dc0d0, 0x18)
	pkg/sentry/platform/ptrace/subprocess.go:304 +0x1e6
gvisor.googlesource.com/gvisor/pkg/sentry/platform/ptrace.(*thread).syscall(0xc4204dc0d0, 0xc420b69a78, 0xc420895c08, 0x6, 0x6)
	pkg/sentry/platform/ptrace/subprocess.go:363 +0x119
gvisor.googlesource.com/gvisor/pkg/sentry/platform/ptrace.(*thread).syscallIgnoreInterrupt(0xc4204dc0d0, 0xc420238900, 0x9, 0xc420b69c08, 0x6, 0x6, 0xc420133868, 0x0, 0xc420895c58)
	pkg/sentry/platform/ptrace/subprocess.go:383 +0xc2
gvisor.googlesource.com/gvisor/pkg/sentry/platform/ptrace.(*subprocess).syscall(0xc420238900, 0x9, 0xc420895c08, 0x6, 0x6, 0x0, 0x0, 0x0)
	pkg/sentry/platform/ptrace/subprocess.go:510 +0xe2
gvisor.googlesource.com/gvisor/pkg/sentry/platform/ptrace.(*subprocess).MapFile(0xc420238900, 0x400000, 0x8, 0x7e7e000, 0x7f5a000, 0x10001, 0x4dc000, 0xc420133270)
	pkg/sentry/platform/ptrace/subprocess.go:519 +0xf0
gvisor.googlesource.com/gvisor/pkg/sentry/platform/filemem.(*FileMem).MapInto(0xc42029a000, 0xc7e460, 0xc420238900, 0x400000, 0x7e7e000, 0x7f5a000, 0x10001, 0x0, 0xc420895d38)
	pkg/sentry/platform/filemem/filemem.go:460 +0xf1
gvisor.googlesource.com/gvisor/pkg/sentry/mm.(*MemoryManager).mapASLocked(0xc420133200, 0xc420133868, 0x0, 0x454000, 0x455000, 0x454000, 0x455000, 0x0)
	pkg/sentry/mm/address_space.go:184 +0x185
gvisor.googlesource.com/gvisor/pkg/sentry/mm.(*MemoryManager).HandleUserFault(0xc420133200, 0xc7ee20, 0xc42067ad00, 0x45418b, 0xc420010001, 0x7f06b64e6dd0, 0xc4206a0540, 0x10001)
	pkg/sentry/mm/syscalls.go:69 +0x27c
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc42067ad00, 0xc71f00, 0x0)
	pkg/sentry/kernel/task_run.go:235 +0x845
gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run(0xc42067ad00, 0x2390)
	pkg/sentry/kernel/task_run.go:95 +0x174
created by gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:258 +0x100

Crashes (78):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/07/12 15:42 https://gvisor.googlesource.com/gvisor master c15cb8d43203 06c33b3a .config console log report syz ci-gvisor-main
2018/12/06 20:31 https://gvisor.googlesource.com/gvisor master 9d17eba121da ac912200 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/11/29 21:09 https://gvisor.googlesource.com/gvisor master 9d17eba121da ac912200 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/11/29 11:58 https://gvisor.googlesource.com/gvisor master 9d17eba121da ac912200 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/11/29 05:47 https://gvisor.googlesource.com/gvisor master 9d17eba121da ac912200 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/11/23 11:57 https://gvisor.googlesource.com/gvisor master 8cbca46b6d99 0ab8db64 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/11/23 09:26 https://gvisor.googlesource.com/gvisor master 8cbca46b6d99 87815d9d .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/11/23 06:29 https://gvisor.googlesource.com/gvisor master 8cbca46b6d99 87815d9d .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/11/23 03:07 https://gvisor.googlesource.com/gvisor master 8cbca46b6d99 87815d9d .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/11/23 00:08 https://gvisor.googlesource.com/gvisor master 8cbca46b6d99 87815d9d .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/11/22 22:40 https://gvisor.googlesource.com/gvisor master 8cbca46b6d99 87815d9d .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/11/22 20:54 https://gvisor.googlesource.com/gvisor master 8cbca46b6d99 87815d9d .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/11/22 16:33 https://gvisor.googlesource.com/gvisor master 8cbca46b6d99 2ee77802 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/11/22 09:32 https://gvisor.googlesource.com/gvisor master 8cbca46b6d99 2ee77802 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/11/22 07:28 https://gvisor.googlesource.com/gvisor master 8cbca46b6d99 9db828b5 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/11/22 00:28 https://gvisor.googlesource.com/gvisor master 8cbca46b6d99 9db828b5 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/11/21 21:05 https://gvisor.googlesource.com/gvisor master 8cbca46b6d99 9db828b5 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/11/21 20:00 https://gvisor.googlesource.com/gvisor master 8cbca46b6d99 9db828b5 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/11/21 18:52 https://gvisor.googlesource.com/gvisor master 8cbca46b6d99 9db828b5 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/11/21 06:15 https://gvisor.googlesource.com/gvisor master 8cbca46b6d99 37a6ea34 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/11/21 04:52 https://gvisor.googlesource.com/gvisor master 9d17eba121da 37a6ea34 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/11/21 03:25 https://gvisor.googlesource.com/gvisor master 8cbca46b6d99 3dedf116 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/11/21 01:53 https://gvisor.googlesource.com/gvisor master 8cbca46b6d99 3dedf116 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/11/21 00:06 https://gvisor.googlesource.com/gvisor master 8cbca46b6d99 3dedf116 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/11/20 21:41 https://gvisor.googlesource.com/gvisor master 8cbca46b6d99 3dedf116 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/11/20 06:49 https://gvisor.googlesource.com/gvisor master 8cbca46b6d99 9bc2a903 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/11/20 05:35 https://gvisor.googlesource.com/gvisor master 9d17eba121da 9bc2a903 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/11/20 05:35 https://gvisor.googlesource.com/gvisor master 9d17eba121da 9bc2a903 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/11/20 05:34 https://gvisor.googlesource.com/gvisor master 9d17eba121da 9bc2a903 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/11/20 05:33 https://gvisor.googlesource.com/gvisor master 9d17eba121da 9bc2a903 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/11/20 05:08 https://gvisor.googlesource.com/gvisor master 9d17eba121da 9bc2a903 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/11/20 04:40 https://gvisor.googlesource.com/gvisor master 9d17eba121da 9bc2a903 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/10/30 07:51 https://gvisor.googlesource.com/gvisor master 9d17eba121da 7df9db2e .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/10/30 01:28 https://gvisor.googlesource.com/gvisor master 9d17eba121da 7df9db2e .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/10/29 15:36 https://gvisor.googlesource.com/gvisor master 9d17eba121da 7df9db2e .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/10/29 10:52 https://gvisor.googlesource.com/gvisor master 9d17eba121da 24808096 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/10/27 19:27 https://gvisor.googlesource.com/gvisor master 9d17eba121da 8efba39a .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/10/23 20:00 https://gvisor.googlesource.com/gvisor master 8cbca46b6d99 24fa2ad8 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/10/23 10:48 https://gvisor.googlesource.com/gvisor master 9d17eba121da 24fa2ad8 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/10/23 10:48 https://gvisor.googlesource.com/gvisor master 8cbca46b6d99 24fa2ad8 .config console log report ci-gvisor-ptrace-direct-overlay-host
2018/10/23 10:34 https://gvisor.googlesource.com/gvisor master 9d17eba121da 24fa2ad8 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/10/23 10:21 https://gvisor.googlesource.com/gvisor master 9d17eba121da 24fa2ad8 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/10/23 03:06 https://gvisor.googlesource.com/gvisor master 9d17eba121da 9aba67b5 .config console log report ci-gvisor-kvm-direct-overlay-host-race
2018/08/04 01:23 https://gvisor.googlesource.com/gvisor master 25178ebdf5e8 cc4f6d0a .config console log report ci-gvisor-main
2018/07/07 05:16 https://gvisor.googlesource.com/gvisor master f107a5b1a0e2 6c0c0099 .config console log report ci-gvisor-main
2018/08/25 00:17 https://github.com/dvyukov/gvisor.git race d4d5ed1d9def 9b0f5c75 .config console log report ci-gvisor-ptrace-proxy-sandbox-race
* Struck through repros no longer work on HEAD.