syzbot


gvisor boot error: panic: prctl(PR_SET_NO_NEW_PRIVS) failed: invalid argument

Status: fixed on 2023/03/29 00:24
Fix commit: 6890e539c700 systrap: set all arguments of prctl(PR_SET_NO_NEW_PRIVS)
First crash: 609d, last: 608d

Sample crash report:
panic: prctl(PR_SET_NO_NEW_PRIVS) failed: invalid argument

goroutine 1 [running]:
panic({0x2b1280, 0xc0003d5d50})
	GOROOT/src/runtime/panic.go:987 +0x3ac fp=0xc0004cf910 sp=0xc0004cf850 pc=0x124463c
gvisor.dev/gvisor/pkg/sentry/platform/systrap.(*subprocess).createSysmsgThread(0xc000112400, 0x0, 0x0, 0x0?)
	pkg/sentry/platform/systrap/subprocess.go:1091 +0xd9c fp=0xc0004cfc60 sp=0xc0004cf910 pc=0x1dbcd0c
gvisor.dev/gvisor/pkg/sentry/platform/systrap.newSubprocess(0x55de20, 0xc00016d100)
	pkg/sentry/platform/systrap/subprocess.go:319 +0x448 fp=0xc0004cfdb0 sp=0xc0004cfc60 pc=0x1db8848
gvisor.dev/gvisor/pkg/sentry/platform/systrap.New.func1()
	pkg/sentry/platform/systrap/systrap.go:331 +0x3c fp=0xc0004cfe00 sp=0xc0004cfdb0 pc=0x1dc361c
sync.(*Once).doSlow(0x34ecfc8, 0xc0004cff48)
	GOROOT/src/sync/once.go:74 +0xb4 fp=0xc0004cfed0 sp=0xc0004cfe00 pc=0x128a404
sync.(*Once).Do(0x34ecfc8, 0x1?)
	GOROOT/src/sync/once.go:65 +0x44 fp=0xc0004cff00 sp=0xc0004cfed0 pc=0x128a324
gvisor.dev/gvisor/pkg/sentry/platform/systrap.New()
	pkg/sentry/platform/systrap/systrap.go:325 +0x5c fp=0xc0004cff60 sp=0xc0004cff00 pc=0x1dc352c
gvisor.dev/gvisor/pkg/sentry/platform/systrap.(*constructor).New(0x4d982b, 0xc?)
	pkg/sentry/platform/systrap/systrap.go:385 +0x24 fp=0xc0004cff90 sp=0xc0004cff60 pc=0x1dc3914
gvisor.dev/gvisor/runsc/boot.createPlatform(0xc000138a00, 0x1?)
	runsc/boot/loader.go:575 +0x19c fp=0xc0004d0080 sp=0xc0004cff90 pc=0x1fe33ac
gvisor.dev/gvisor/runsc/boot.New({{0xffffdb85af96, 0x2b}, 0xc00012c1b0, 0xc000138a00, 0x8, 0x0, {0xc000133118, 0x1, 0x1}, {0xc000110260, ...}, ...})
	runsc/boot/loader.go:319 +0x818 fp=0xc0004d08e0 sp=0xc0004d0080 pc=0x1fe11e8
gvisor.dev/gvisor/runsc/cmd.(*Boot).Execute(0xc000142a20, {0xc00003c2e0?, 0xd?}, 0xc0001701e0, {0xc000128be0, 0x2, 0xc0004d10a8?})
	runsc/cmd/boot.go:402 +0x14e0 fp=0xc0004d0f90 sp=0xc0004d08e0 pc=0x2282040
github.com/google/subcommands.(*Commander).Execute(0xc000190000, {0x7c14e8, 0xc000040058}, {0xc000128be0, 0x2, 0x2})
	external/com_github_google_subcommands/subcommands.go:200 +0x598 fp=0xc0004d10b0 sp=0xc0004d0f90 pc=0x1357bb8
github.com/google/subcommands.Execute(...)
	external/com_github_google_subcommands/subcommands.go:481
gvisor.dev/gvisor/runsc/cli.Main()
	runsc/cli/main.go:254 +0x9084 fp=0xc0004d1f50 sp=0xc0004d10b0 pc=0x22c3694
main.main()
	runsc/main.go:28 +0x24 fp=0xc0004d1f70 sp=0xc0004d1f50 pc=0x22c3e54
runtime.main()
	GOROOT/src/runtime/proc.go:250 +0x200 fp=0xc0004d1fd0 sp=0xc0004d1f70 pc=0x12470b0
runtime.goexit()
	src/runtime/asm_arm64.s:1172 +0x4 fp=0xc0004d1fd0 sp=0xc0004d1fd0 pc=0x127b884

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/03/28 17:48 gvisor 3d1c4c113b1c 48c74771 .config console log report ci-gvisor-arm64-systrap-1-race-cover gvisor boot error: panic: prctl(PR_SET_NO_NEW_PRIVS) failed: invalid argument
2023/03/28 17:48 gvisor 3d1c4c113b1c 48c74771 .config console log report ci-gvisor-arm64-systrap-1-race-cover gvisor boot error: panic: prctl(PR_SET_NO_NEW_PRIVS) failed: invalid argument
2023/03/28 17:47 gvisor 3d1c4c113b1c 48c74771 .config console log report ci-gvisor-arm64-systrap-1-race gvisor boot error: panic: prctl(PR_SET_NO_NEW_PRIVS) failed: invalid argument
2023/03/28 17:47 gvisor 3d1c4c113b1c 48c74771 .config console log report ci-gvisor-arm64-systrap-1-race gvisor boot error: panic: prctl(PR_SET_NO_NEW_PRIVS) failed: invalid argument
2023/03/28 12:07 gvisor 05f88d6490de 48c74771 .config console log report ci-gvisor-arm64-systrap-1-race-cover gvisor boot error: panic: prctl(PR_SET_NO_NEW_PRIVS) failed: invalid argument
2023/03/28 12:07 gvisor 05f88d6490de 48c74771 .config console log report ci-gvisor-arm64-systrap-1-race-cover gvisor boot error: panic: prctl(PR_SET_NO_NEW_PRIVS) failed: invalid argument
2023/03/28 12:06 gvisor 05f88d6490de 48c74771 .config console log report ci-gvisor-arm64-systrap-1-race gvisor boot error: panic: prctl(PR_SET_NO_NEW_PRIVS) failed: invalid argument
2023/03/28 12:06 gvisor 05f88d6490de 48c74771 .config console log report ci-gvisor-arm64-systrap-1-race gvisor boot error: panic: prctl(PR_SET_NO_NEW_PRIVS) failed: invalid argument
2023/03/28 10:04 gvisor 05f88d6490de 47f3aaf1 .config console log report ci-gvisor-arm64-systrap-1-race gvisor boot error: panic: prctl(PR_SET_NO_NEW_PRIVS) failed: invalid argument
2023/03/28 10:04 gvisor 05f88d6490de 47f3aaf1 .config console log report ci-gvisor-arm64-systrap-1-race gvisor boot error: panic: prctl(PR_SET_NO_NEW_PRIVS) failed: invalid argument
2023/03/28 09:53 gvisor 05f88d6490de 47f3aaf1 .config console log report ci-gvisor-arm64-systrap-1-race-cover gvisor boot error: panic: prctl(PR_SET_NO_NEW_PRIVS) failed: invalid argument
2023/03/28 09:53 gvisor 05f88d6490de 47f3aaf1 .config console log report ci-gvisor-arm64-systrap-1-race-cover gvisor boot error: panic: prctl(PR_SET_NO_NEW_PRIVS) failed: invalid argument
* Struck through repros no longer work on HEAD.