aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/prctl.txt
Commit message (Collapse)AuthorAgeFilesLines
* sys/linux: add LAM descriptionsDmitry Vyukov2023-04-031-0/+4
|
* sys/linux: add descriptions of arch_prctl(XCOMP)Dmitry Vyukov2023-04-031-0/+5
|
* sys/linux: add map_shadow_stack syscall descriptionsDmitry Vyukov2023-04-031-0/+6
|
* sys/linux: add PR_SET_VMA descriptionsDmitry Vyukov2022-01-271-0/+2
|
* sys/linux: add prctl(PR_SCHED_CORE)Dmitry Vyukov2021-10-131-0/+5
|
* sys/linux: add new prctl'sDmitry Vyukov2021-03-101-1/+16
|
* sys/linux: fix prctl variantsMickaël Salaün2021-03-051-0/+6
| | | | | | | | | | | | | | | | | | | | 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>
* sys/linux, sys/freebsd: apply more ignore_return attributesDmitry Vyukov2020-12-051-53/+54
| | | | | | | | | | | | | | 1. Apply ignore_return to semctl$GETVAL which produces random errno values on linux and freebsd. 2. Apply ignore_return to prctl and remove the custom code in executor. 3. Remove the custom errno ignoring code in fuchsia executor. The calls are already marked as ignore_return, so this is just a leftover. 4. Only reset errno for ignore_return. The syscall can still return a resource (maybe). We only need to reset errno for fallback coverage.
* prog: add ignore_return and breaks_returns call attribtuesDmitry Vyukov2020-04-191-52/+54
| | | | | We had these hard-coded for fuchsia and linux accordingly. Replace with call attributes.
* pkg/compiler: ensure consistency of syscall argument typesDmitry Vyukov2020-03-171-3/+3
| | | | | | | | | | | | | | | | | | Ensure that we don't have conflicting sizes for the same argument of the same syscall, e.g.: foo$1(a int16) foo$2(a int32) This is useful for several reasons: - we will be able avoid morphing syscalls into other syscalls - we will be able to figure out more precise sizes for args (lots of them are implicitly intptr, which is the largest type on most important arches) - found few bugs in linux descriptions Update #477 Update #502
* sys/linux: fix up some int64 syscall argsDmitry Vyukov2019-11-071-3/+3
| | | | | See the discussion on #1493. These args are actually intptr's.
* sys/linux: refine description for PR_SET_MMDmitry Vyukov2018-11-171-3/+24
|
* sys/linux: modernize arch_prctl descriptionsDmitry Vyukov2018-11-171-2/+8
|
* sys/linux: modernize prctl descriptionsDmitry Vyukov2018-11-171-18/+107
| | | | Use one syscall per command, refine arguments, etc.
* sys/linux: move prctl to a separate fileDmitry Vyukov2018-11-171-0/+30