aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
authorMickaël Salaün <mic@linux.microsoft.com>2021-03-05 14:49:06 +0100
committerDmitry Vyukov <dvyukov@google.com>2021-03-05 18:12:06 +0100
commit800618b02f4f840756eb4218603a313113f94f05 (patch)
tree15f0a00c5ba18c431eb1906ad3c60a31dcb7628d /executor
parent7325cd4db12e532ea1ed4b021a03063f31fb740e (diff)
sys/linux: fix prctl variants
Because there is not a proper prctl syscall but only variants, it happens that the logic to infer the number of syscall argument doesn't work (cf. callArgSizes in pkg/compiler/gen.go). As a result, the kernel rejects multiple prctl calls by returning -EINVAL because the fifth argument is not zero: * PR_MCE_KILL * PR_MCE_KILL_GET * PR_SET_MM * PR_SET_NO_NEW_PRIVS * PR_GET_NO_NEW_PRIVS * PR_GET_THP_DISABLE * PR_SET_THP_DISABLE * PR_GET_SPECULATION_CTRL * PR_SET_SPECULATION_CTRL Fix this by adding a new dummy prctl variant with all 5 arguments. Signed-off-by: Mickaël Salaün <mic@linux.microsoft.com>
Diffstat (limited to 'executor')
0 files changed, 0 insertions, 0 deletions