]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.23] os: ignore SIGSYS in checkPidfd
authorcions <gh.cions@gmail.com>
Tue, 24 Sep 2024 01:27:40 +0000 (01:27 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 2 Oct 2024 16:52:24 +0000 (16:52 +0000)
commit9563300f6e262589ae25c71d778bfcd646d4a750
tree9b71791777ebe44928d4e6afd4f875ac465dda97
parentf8080edefd60c8740915f922cf8a4352e6658174
[release-branch.go1.23] os: ignore SIGSYS in checkPidfd

In Android version 11 and earlier, pidfd-related system calls
are not allowed by the seccomp policy, which causes crashes due
to SIGSYS signals.

For #69065
Fixes #69640

Change-Id: Ib29631639a5cf221ac11b4d82390cb79436b8657
GitHub-Last-Rev: aad6b3b32c81795f86bc4a9e81aad94899daf520
GitHub-Pull-Request: golang/go#69543
Reviewed-on: https://go-review.googlesource.com/c/go/+/614277
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
(cherry picked from commit a3a05ed04cb53c53bdacded2d16f0f3e5facdbb0)
Reviewed-on: https://go-review.googlesource.com/c/go/+/616077
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Kirill Kolyshkin <kolyshkin@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
src/os/pidfd_linux.go
src/runtime/os_linux.go
src/runtime/os_unix_nonlinux.go
src/runtime/signal_unix.go