arch/um/os-Linux/process.c
192
prctl(PR_SET_PDEATHSIG, SIGKILL);
arch/um/os-Linux/start_up.c
282
prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
kernel/sys.c
2533
SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3,
samples/bpf/tracex5_user.c
31
if (prctl(PR_SET_SECCOMP, 2, &prog))
samples/check-exec/inc.c
119
secbits = prctl(PR_GET_SECUREBITS);
samples/check-exec/set-exec.c
36
secbits_cur = prctl(PR_GET_SECUREBITS);
samples/check-exec/set-exec.c
71
prctl(PR_SET_SECUREBITS, secbits_new)) {
samples/landlock/sandboxer.c
517
if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {
samples/seccomp/bpf-direct.c
150
if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {
samples/seccomp/bpf-direct.c
156
if (prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog)) {
samples/seccomp/bpf-fancy.c
88
if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {
samples/seccomp/bpf-fancy.c
93
if (prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog)) {
samples/seccomp/dropper.c
49
if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {
samples/seccomp/dropper.c
53
if (prctl(PR_SET_SECCOMP, 2, &prog)) {
tools/lib/perf/tests/test-evlist.c
256
prctl(0, 0, 0, 0, 0);
tools/lib/perf/tests/test-evlist.c
387
prctl(0, 0, 0, 0, 0);
tools/perf/bench/futex.c
23
ret = prctl(PR_FUTEX_HASH, PR_FUTEX_HASH_SET_SLOTS, params->nbuckets, 0);
tools/perf/bench/futex.c
36
ret = prctl(PR_FUTEX_HASH, PR_FUTEX_HASH_GET_SLOTS);
tools/perf/bench/numa.c
422
prctl(PR_SET_NAME, name); \
tools/perf/bench/numa.c
966
prctl(0, bytes_worked);
tools/perf/bench/sched-seccomp-notify.c
107
prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/perf/bench/sched-seccomp-notify.c
117
if (prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0))
tools/perf/builtin-bench.c
227
prctl(PR_SET_NAME, name);
tools/perf/builtin-sched.c
632
prctl(PR_SET_NAME, comm2);
tools/perf/builtin-top.c
634
prctl(PR_SET_NAME, "perf-top-UI", 0, 0, 0);
tools/perf/builtin-top.c
689
prctl(PR_SET_NAME, "perf-top-UI", 0, 0, 0);
tools/perf/tests/backward-ring-buffer.c
28
prctl(PR_SET_NAME, proc_name);
tools/perf/tests/keep-tracking.c
119
CHECK__(prctl(PR_SET_NAME, (unsigned long)comm, 0, 0, 0));
tools/perf/tests/keep-tracking.c
141
CHECK__(prctl(PR_SET_NAME, (unsigned long)comm, 0, 0, 0));
tools/perf/tests/perf-time-to-tsc.c
139
CHECK__(prctl(PR_SET_NAME, (unsigned long)comm1, 0, 0, 0));
tools/perf/tests/perf-time-to-tsc.c
144
CHECK__(prctl(PR_SET_NAME, (unsigned long)comm2, 0, 0, 0));
tools/perf/tests/switch-tracking.c
490
err = prctl(PR_SET_NAME, (unsigned long)comm, 0, 0, 0);
tools/perf/tests/switch-tracking.c
503
err = prctl(PR_SET_NAME, (unsigned long)comm, 0, 0, 0);
tools/perf/tests/switch-tracking.c
516
err = prctl(PR_SET_NAME, (unsigned long)comm, 0, 0, 0);
tools/perf/tests/switch-tracking.c
529
err = prctl(PR_SET_NAME, (unsigned long)comm, 0, 0, 0);
tools/perf/tests/thread-map.c
28
!prctl(PR_SET_NAME, NAMEUL, 0, 0, 0));
tools/perf/tests/thread-map.c
95
!prctl(PR_SET_NAME, NAMEUL, 0, 0, 0));
tools/perf/util/evlist.c
1508
prctl(PR_SET_NAME, "perf-exec");
tools/testing/selftests/arm64/abi/syscall-abi.c
420
ret = prctl(PR_SVE_SET_VL, sve_vls[sve]);
tools/testing/selftests/arm64/abi/syscall-abi.c
429
ret = prctl(PR_SME_SET_VL, sme_vls[sme]);
tools/testing/selftests/arm64/abi/syscall-abi.c
454
ret = prctl(PR_SME_SET_VL, sme_vls[sme]);
tools/testing/selftests/arm64/abi/syscall-abi.c
484
vl = prctl(PR_SVE_SET_VL, vq * 16);
tools/testing/selftests/arm64/abi/syscall-abi.c
510
vl = prctl(PR_SME_SET_VL, vq * 16);
tools/testing/selftests/arm64/fp/fp-ptrace.c
1489
vl = prctl(set_vl, vq * 16);
tools/testing/selftests/arm64/fp/fp-ptrace.c
237
ret = prctl(PR_SVE_SET_VL, config->sve_vl_in);
tools/testing/selftests/arm64/fp/fp-ptrace.c
245
ret = prctl(PR_SME_SET_VL, config->sme_vl_in);
tools/testing/selftests/arm64/fp/fp-stress.c
341
ret = prctl(PR_SVE_SET_VL, vl | PR_SVE_VL_INHERIT);
tools/testing/selftests/arm64/fp/fp-stress.c
362
ret = prctl(PR_SME_SET_VL, vl | PR_SME_VL_INHERIT);
tools/testing/selftests/arm64/fp/fp-stress.c
375
ret = prctl(PR_SME_SET_VL, vl | PR_SVE_VL_INHERIT);
tools/testing/selftests/arm64/fp/fp-stress.c
409
vl = prctl(set_vl, vq * 16);
tools/testing/selftests/arm64/fp/sve-probe-vls.c
35
vl = prctl(PR_SVE_SET_VL, vq * 16);
tools/testing/selftests/arm64/fp/sve-ptrace.c
275
prctl_vl = prctl(type->prctl_set, vl);
tools/testing/selftests/arm64/fp/vec-syscfg.c
316
ret = prctl(data->prctl_get);
tools/testing/selftests/arm64/fp/vec-syscfg.c
341
ret = prctl(data->prctl_set, cur_vl);
tools/testing/selftests/arm64/fp/vec-syscfg.c
365
ret = prctl(data->prctl_set, data->min_vl);
tools/testing/selftests/arm64/fp/vec-syscfg.c
386
ret = prctl(data->prctl_set, data->max_vl);
tools/testing/selftests/arm64/fp/vec-syscfg.c
401
ret = prctl(data->prctl_get);
tools/testing/selftests/arm64/fp/vec-syscfg.c
428
ret = prctl(data->prctl_set, data->min_vl);
tools/testing/selftests/arm64/fp/vec-syscfg.c
466
ret = prctl(data->prctl_set, data->min_vl | PR_SVE_VL_INHERIT);
tools/testing/selftests/arm64/fp/vec-syscfg.c
475
ret = prctl(data->prctl_get);
tools/testing/selftests/arm64/fp/vec-syscfg.c
522
ret = prctl(data->prctl_set, data->max_vl);
tools/testing/selftests/arm64/fp/vec-syscfg.c
531
ret = prctl(data->prctl_set, data->min_vl | PR_SVE_SET_VL_ONEXEC);
tools/testing/selftests/arm64/fp/vec-syscfg.c
582
ret = prctl(data->prctl_set, vl);
tools/testing/selftests/arm64/fp/vec-syscfg.c
710
ret = prctl(sve_data->prctl_set, sve_data->min_vl);
tools/testing/selftests/arm64/fp/vec-syscfg.c
721
ret = prctl(sve_data->prctl_set, sve_data->max_vl);
tools/testing/selftests/arm64/fp/vec-syscfg.c
743
ret = prctl(sve_data->prctl_set, sve_data->default_vl);
tools/testing/selftests/arm64/fp/vlset.c
134
t = prctl(set_ctl, vl | flags);
tools/testing/selftests/arm64/fp/vlset.c
141
t = prctl(get_ctl);
tools/testing/selftests/arm64/fp/za-ptrace.c
118
prctl_vl = prctl(PR_SME_SET_VL, vl);
tools/testing/selftests/arm64/fp/zt-ptrace.c
347
sme_vl = prctl(PR_SME_GET_VL);
tools/testing/selftests/arm64/gcs/gcs-locking.c
110
ret = prctl(PR_GET_SHADOW_STACK_STATUS, &mode, 0, 0, 0);
tools/testing/selftests/arm64/gcs/gcs-locking.c
114
ret = prctl(PR_LOCK_SHADOW_STACK_STATUS, variant->mode, 0, 0, 0);
tools/testing/selftests/arm64/gcs/gcs-locking.c
129
ret = prctl(PR_LOCK_SHADOW_STACK_STATUS, variant->mode, 0, 0, 0);
tools/testing/selftests/arm64/gcs/gcs-locking.c
136
ret = prctl(PR_GET_SHADOW_STACK_STATUS, &mode, 0, 0, 0);
tools/testing/selftests/arm64/gcs/gcs-locking.c
153
ret = prctl(PR_GET_SHADOW_STACK_STATUS, &mode, 0, 0, 0);
tools/testing/selftests/arm64/gcs/gcs-locking.c
157
ret = prctl(PR_LOCK_SHADOW_STACK_STATUS, variant->mode, 0, 0, 0);
tools/testing/selftests/arm64/gcs/gcs-locking.c
164
ret = prctl(PR_GET_SHADOW_STACK_STATUS, &mode, 0, 0, 0);
tools/testing/selftests/arm64/gcs/gcs-locking.c
172
ret = prctl(PR_GET_SHADOW_STACK_STATUS, &mode, 0, 0, 0);
tools/testing/selftests/arm64/gcs/gcs-locking.c
187
ret = prctl(PR_GET_SHADOW_STACK_STATUS, &mode, 0, 0, 0);
tools/testing/selftests/arm64/gcs/gcs-locking.c
46
ret = prctl(PR_LOCK_SHADOW_STACK_STATUS, ULONG_MAX, 0, 0, 0);
tools/testing/selftests/arm64/gcs/libc-gcs.c
70
ret = prctl(PR_GET_SHADOW_STACK_STATUS, &mode, 0, 0, 0);
tools/testing/selftests/arm64/mte/check_gcr_el1_cswitch.c
49
if (prctl(PR_SET_TAGGED_ADDR_CTRL, prctl_set, 0, 0, 0)) {
tools/testing/selftests/arm64/mte/check_gcr_el1_cswitch.c
54
prctl_get = prctl(PR_GET_TAGGED_ADDR_CTRL, 0, 0, 0, 0);
tools/testing/selftests/arm64/mte/check_prctl.c
23
ret = prctl(PR_SET_TAGGED_ADDR_CTRL, val, 0, 0, 0);
tools/testing/selftests/arm64/mte/check_prctl.c
34
ret = prctl(PR_GET_TAGGED_ADDR_CTRL, 0, 0, 0, 0);
tools/testing/selftests/arm64/mte/mte_common_util.c
356
if (prctl(PR_SET_TAGGED_ADDR_CTRL, en, 0, 0, 0) != 0) {
tools/testing/selftests/arm64/mte/mte_common_util.c
382
ret = prctl(PR_GET_TAGGED_ADDR_CTRL, en, 0, 0, 0);
tools/testing/selftests/arm64/signal/sve_helpers.c
26
vl = prctl(pr_set_vl, vq * 16);
tools/testing/selftests/arm64/signal/testcases/gcs_frame.c
27
ret = prctl(PR_GET_SHADOW_STACK_STATUS, &expected, 0, 0, 0);
tools/testing/selftests/arm64/signal/testcases/sme_vl.c
21
int ret = prctl(PR_SME_GET_VL);
tools/testing/selftests/arm64/signal/testcases/ssve_regs.c
52
ret = prctl(PR_SME_SET_VL, vl);
tools/testing/selftests/arm64/signal/testcases/ssve_za_regs.c
59
ret = prctl(PR_SME_SET_VL, vl);
tools/testing/selftests/arm64/signal/testcases/sve_regs.c
51
if (prctl(PR_SVE_SET_VL, vl) == -1) {
tools/testing/selftests/arm64/signal/testcases/sve_vl.c
21
int ret = prctl(PR_SVE_GET_VL);
tools/testing/selftests/arm64/signal/testcases/za_no_regs.c
45
if (prctl(PR_SME_SET_VL, vl) != vl) {
tools/testing/selftests/arm64/signal/testcases/za_regs.c
53
if (prctl(PR_SME_SET_VL, vl) != vl) {
tools/testing/selftests/arm64/tags/tags_test.c
24
if (prctl(PR_SET_TAGGED_ADDR_CTRL, PR_TAGGED_ADDR_ENABLE, 0, 0, 0) == 0)
tools/testing/selftests/bpf/benchs/bench_local_storage_rcu_tasks_trace.c
144
err = prctl(PR_SET_PDEATHSIG, SIGKILL);
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
555
err = prctl(0xffff, 0);
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
564
err = prctl(0xffff, 0);
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
576
err = prctl(0xffff, 0);
tools/testing/selftests/bpf/prog_tests/test_bpf_syscall_macro.c
39
prctl(exp_arg1, exp_arg2, exp_arg3, exp_arg4, exp_arg5);
tools/testing/selftests/bpf/prog_tests/test_overhead.c
146
prctl(PR_SET_NAME, comm, 0L, 0L, 0L);
tools/testing/selftests/bpf/prog_tests/test_overhead.c
72
if (CHECK_FAIL(prctl(PR_GET_NAME, comm, 0L, 0L, 0L)))
tools/testing/selftests/capabilities/test_execve.c
279
if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_BIND_SERVICE, 0, 0, 0) != -1 || errno != EPERM) {
tools/testing/selftests/capabilities/test_execve.c
296
if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_RAW, 0, 0, 0) != -1 || errno != EPERM) {
tools/testing/selftests/capabilities/test_execve.c
307
if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_BIND_SERVICE, 0, 0, 0) != 0) {
tools/testing/selftests/capabilities/test_execve.c
314
if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_NET_BIND_SERVICE, 0, 0, 0) != 1) {
tools/testing/selftests/capabilities/test_execve.c
319
if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_CLEAR_ALL, 0, 0, 0, 0) != 0)
tools/testing/selftests/capabilities/test_execve.c
323
if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_NET_BIND_SERVICE, 0, 0, 0) != 0) {
tools/testing/selftests/capabilities/test_execve.c
329
if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_BIND_SERVICE, 0, 0, 0) != 0)
tools/testing/selftests/capabilities/test_execve.c
337
if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_NET_BIND_SERVICE, 0, 0, 0) != 0) {
tools/testing/selftests/capabilities/test_execve.c
357
if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_BIND_SERVICE, 0, 0, 0) != 0)
tools/testing/selftests/capabilities/test_execve.c
93
if (prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0) != 0)
tools/testing/selftests/capabilities/validate_cap.c
69
if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_NET_BIND_SERVICE, 0, 0, 0) != bool_arg(argv, 4)) {
tools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c
163
ASSERT_EQ(prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0), 0);
tools/testing/selftests/exec/check-exec.c
350
EXPECT_EQ(0, prctl(PR_GET_SECUREBITS));
tools/testing/selftests/exec/check-exec.c
377
unsigned int secbits = prctl(PR_GET_SECUREBITS);
tools/testing/selftests/exec/check-exec.c
381
EXPECT_EQ(secbits, prctl(PR_GET_SECUREBITS));
tools/testing/selftests/exec/check-exec.c
382
CHILD(EXPECT_EQ(secbits, prctl(PR_GET_SECUREBITS)));
tools/testing/selftests/exec/check-exec.c
386
EXPECT_EQ(secbits, prctl(PR_GET_SECUREBITS));
tools/testing/selftests/exec/check-exec.c
387
CHILD(EXPECT_EQ(secbits, prctl(PR_GET_SECUREBITS)));
tools/testing/selftests/exec/check-exec.c
391
EXPECT_EQ(secbits, prctl(PR_GET_SECUREBITS));
tools/testing/selftests/exec/check-exec.c
392
CHILD(EXPECT_EQ(secbits, prctl(PR_GET_SECUREBITS)));
tools/testing/selftests/exec/check-exec.c
397
unsigned int secbits = prctl(PR_GET_SECUREBITS);
tools/testing/selftests/exec/check-exec.c
415
unsigned int secbits = prctl(PR_GET_SECUREBITS);
tools/testing/selftests/exec/check-exec.c
431
unsigned int secbits = prctl(PR_GET_SECUREBITS);
tools/testing/selftests/exec/check-exec.c
449
unsigned int secbits = prctl(PR_GET_SECUREBITS);
tools/testing/selftests/exec/check-exec.c
65
err = prctl(PR_SET_SECUREBITS, secbits);
tools/testing/selftests/filesystems/nsfs/owner.c
41
prctl(PR_SET_PDEATHSIG, SIGKILL);
tools/testing/selftests/filesystems/nsfs/pidns.c
35
prctl(PR_SET_PDEATHSIG, SIGKILL);
tools/testing/selftests/filesystems/utils.c
344
if (prctl(PR_SET_DUMPABLE, 1, 0, 0, 0))
tools/testing/selftests/futex/functional/futex_priv_hash.c
34
return prctl(PR_FUTEX_HASH, PR_FUTEX_HASH_SET_SLOTS, slots, 0);
tools/testing/selftests/futex/functional/futex_priv_hash.c
39
return prctl(PR_FUTEX_HASH, PR_FUTEX_HASH_GET_SLOTS);
tools/testing/selftests/kselftest_harness/harness-selftest.c
132
prctl(PR_SET_DUMPABLE, 0, 0, 0, 0);
tools/testing/selftests/landlock/audit_test.c
243
EXPECT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0));
tools/testing/selftests/landlock/audit_test.c
372
EXPECT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0));
tools/testing/selftests/landlock/audit_test.c
578
prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/landlock/audit_test.c
91
EXPECT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0));
tools/testing/selftests/landlock/base_test.c
265
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0));
tools/testing/selftests/landlock/base_test.c
427
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0));
tools/testing/selftests/landlock/base_test.c
475
EXPECT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0));
tools/testing/selftests/landlock/common.h
200
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0));
tools/testing/selftests/landlock/fs_bench.c
110
if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0) < 0)
tools/testing/selftests/landlock/fs_test.c
2605
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0));
tools/testing/selftests/landlock/fs_test.c
565
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0));
tools/testing/selftests/landlock/ptrace_test.c
41
EXPECT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0));
tools/testing/selftests/landlock/sandbox-and-launch.c
46
if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {
tools/testing/selftests/landlock/scoped_abstract_unix_test.c
43
EXPECT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0));
tools/testing/selftests/landlock/tsync_test.c
100
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0));
tools/testing/selftests/landlock/tsync_test.c
147
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0));
tools/testing/selftests/landlock/tsync_test.c
218
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0));
tools/testing/selftests/landlock/tsync_test.c
39
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0));
tools/testing/selftests/landlock/tsync_test.c
52
*nnp = prctl(PR_GET_NO_NEW_PRIVS, 0, 0, 0, 0);
tools/testing/selftests/landlock/tsync_test.c
76
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0));
tools/testing/selftests/mm/ksm_functional_tests.c
117
ret = prctl(PR_SET_MEMORY_MERGE, 1, 0, 0, 0);
tools/testing/selftests/mm/ksm_functional_tests.c
384
ret = prctl(PR_SET_MEMORY_MERGE, 1, 0, 0, 0);
tools/testing/selftests/mm/ksm_functional_tests.c
393
ret = prctl(PR_GET_MEMORY_MERGE, 0, 0, 0, 0);
tools/testing/selftests/mm/ksm_functional_tests.c
402
ret = prctl(PR_SET_MEMORY_MERGE, 0, 0, 0, 0);
tools/testing/selftests/mm/ksm_functional_tests.c
408
ret = prctl(PR_GET_MEMORY_MERGE, 0, 0, 0, 0);
tools/testing/selftests/mm/ksm_functional_tests.c
426
if (prctl(PR_GET_MEMORY_MERGE, 0, 0, 0, 0) != 1)
tools/testing/selftests/mm/ksm_functional_tests.c
461
ret = prctl(PR_SET_MEMORY_MERGE, 1, 0, 0, 0);
tools/testing/selftests/mm/ksm_functional_tests.c
490
if (prctl(PR_SET_MEMORY_MERGE, 0, 0, 0, 0)) {
tools/testing/selftests/mm/ksm_functional_tests.c
548
ret = prctl(PR_SET_MEMORY_MERGE, 1, 0, 0, 0);
tools/testing/selftests/mm/ksm_functional_tests.c
585
if (prctl(PR_SET_MEMORY_MERGE, 0, 0, 0, 0)) {
tools/testing/selftests/mm/ksm_functional_tests.c
609
if (prctl(PR_SET_MEMORY_MERGE, 0, 0, 0, 0)) {
tools/testing/selftests/mm/ksm_tests.c
225
if (prctl(PR_SET_MEMORY_MERGE, 1, 0, 0, 0)) {
tools/testing/selftests/mm/ksm_tests.c
344
prctl(PR_SET_MEMORY_MERGE, 0, 0, 0, 0);
tools/testing/selftests/mm/mdwe_test.c
111
EXPECT_EQ(prctl(PR_SET_MDWE, variant->first_flags, 0L, 0L, 0L), 0);
tools/testing/selftests/mm/mdwe_test.c
113
ret = prctl(PR_SET_MDWE, variant->second_flags, 0L, 0L, 0L);
tools/testing/selftests/mm/mdwe_test.c
117
ret = prctl(PR_GET_MDWE, 0L, 0L, 0L, 0L);
tools/testing/selftests/mm/mdwe_test.c
189
ret = prctl(PR_SET_MDWE, mdwe_flags, 0L, 0L, 0L);
tools/testing/selftests/mm/mdwe_test.c
194
ret = prctl(PR_GET_MDWE, 0L, 0L, 0L, 0L);
tools/testing/selftests/mm/mdwe_test.c
25
EXPECT_LT(prctl(PR_SET_MDWE, PR_MDWE_NO_INHERIT, 0L, 0L, 7L), 0);
tools/testing/selftests/mm/mdwe_test.c
28
EXPECT_LT(prctl(PR_SET_MDWE, 7L, 0L, 0L, 0L), 0);
tools/testing/selftests/mm/mdwe_test.c
30
EXPECT_LT(prctl(PR_SET_MDWE, 0L, 7L, 0L, 0L), 0);
tools/testing/selftests/mm/mdwe_test.c
32
EXPECT_LT(prctl(PR_SET_MDWE, 0L, 0L, 7L, 0L), 0);
tools/testing/selftests/mm/mdwe_test.c
34
EXPECT_LT(prctl(PR_SET_MDWE, 0L, 0L, 0L, 7L), 0);
tools/testing/selftests/mm/mdwe_test.c
37
EXPECT_LT(prctl(PR_GET_MDWE, 7L, 0L, 0L, 0L), 0);
tools/testing/selftests/mm/mdwe_test.c
39
EXPECT_LT(prctl(PR_GET_MDWE, 0L, 7L, 0L, 0L), 0);
tools/testing/selftests/mm/mdwe_test.c
41
EXPECT_LT(prctl(PR_GET_MDWE, 0L, 0L, 7L, 0L), 0);
tools/testing/selftests/mm/mdwe_test.c
43
EXPECT_LT(prctl(PR_GET_MDWE, 0L, 0L, 0L, 7L), 0);
tools/testing/selftests/mm/merge.c
108
prctl(PR_SET_MEMORY_MERGE, 0, 0, 0, 0);
tools/testing/selftests/mm/merge.c
588
err = prctl(PR_SET_MEMORY_MERGE, 1, 0, 0, 0);
tools/testing/selftests/mm/merge.c
70
prctl(PR_SET_MEMORY_MERGE, 0, 0, 0, 0);
tools/testing/selftests/mm/migration.c
166
prctl(PR_SET_PDEATHSIG, SIGHUP);
tools/testing/selftests/mm/migration.c
238
prctl(PR_SET_PDEATHSIG, SIGHUP);
tools/testing/selftests/mm/migration.c
298
prctl(PR_SET_PDEATHSIG, SIGHUP);
tools/testing/selftests/mm/prctl_thp_disable.c
140
if (prctl(PR_SET_THP_DISABLE, 1, NULL, NULL, NULL))
tools/testing/selftests/mm/prctl_thp_disable.c
186
ASSERT_EQ(prctl(PR_GET_THP_DISABLE, NULL, NULL, NULL, NULL), 3);
tools/testing/selftests/mm/prctl_thp_disable.c
199
ASSERT_EQ(prctl(PR_SET_THP_DISABLE, 0, NULL, NULL, NULL), 0);
tools/testing/selftests/mm/prctl_thp_disable.c
248
if (prctl(PR_SET_THP_DISABLE, 1, PR_THP_DISABLE_EXCEPT_ADVISED, NULL, NULL))
tools/testing/selftests/mm/prctl_thp_disable.c
79
ASSERT_EQ(prctl(PR_GET_THP_DISABLE, NULL, NULL, NULL, NULL), 1);
tools/testing/selftests/mm/prctl_thp_disable.c
91
ASSERT_EQ(prctl(PR_SET_THP_DISABLE, 0, NULL, NULL, NULL), 0);
tools/testing/selftests/mm/rmap.c
420
ret = prctl(PR_SET_MEMORY_MERGE, 1, 0, 0, 0);
tools/testing/selftests/namespaces/listns_permissions_test.c
724
prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/nolibc/nolibc-test.c
1435
CASE_TEST(prctl); EXPECT_SYSER(1, prctl(PR_SET_NAME, (unsigned long)NULL, 0, 0, 0), -1, EFAULT); break;
tools/testing/selftests/nolibc/nolibc-test.c
1871
prctl(PR_SET_DUMPABLE, 0, 0, 0, 0);
tools/testing/selftests/openat2/helpers.h
82
#define E_prctl(...) E_func(prctl, __VA_ARGS__)
tools/testing/selftests/pidfd/pidfd_getfd_test.c
46
ret = prctl(PR_SET_PDEATHSIG, SIGKILL);
tools/testing/selftests/pidfd/pidfd_getfd_test.c
71
ret = prctl(PR_SET_DUMPABLE, 0);
tools/testing/selftests/powerpc/dexcr/chdexcr.c
38
if (aspect->prctl == -1)
tools/testing/selftests/powerpc/dexcr/chdexcr.c
48
if (aspects[i].prctl != -1 && !strcmp(aspects[i].opt, opt))
tools/testing/selftests/powerpc/dexcr/chdexcr.c
84
err = pr_set_dexcr(aspect->prctl, ctrl);
tools/testing/selftests/powerpc/dexcr/dexcr.c
65
return prctl(PR_PPC_GET_DEXCR, which, 0UL, 0UL, 0UL);
tools/testing/selftests/powerpc/dexcr/dexcr.c
70
return prctl(PR_PPC_SET_DEXCR, which, ctrl, 0UL, 0UL);
tools/testing/selftests/powerpc/dexcr/dexcr.h
35
unsigned long prctl; /* 'which' value for get/set prctl */
tools/testing/selftests/powerpc/dexcr/dexcr.h
44
.prctl = PR_PPC_DEXCR_SBHE,
tools/testing/selftests/powerpc/dexcr/dexcr.h
51
.prctl = PR_PPC_DEXCR_IBRTPD,
tools/testing/selftests/powerpc/dexcr/dexcr.h
58
.prctl = PR_PPC_DEXCR_SRAPD,
tools/testing/selftests/powerpc/dexcr/dexcr.h
65
.prctl = PR_PPC_DEXCR_NPHIE,
tools/testing/selftests/powerpc/dexcr/dexcr.h
72
.prctl = -1,
tools/testing/selftests/powerpc/dexcr/lsdexcr.c
85
if (aspect->prctl != -1) {
tools/testing/selftests/powerpc/dexcr/lsdexcr.c
86
int ctrl = pr_get_dexcr(aspect->prctl);
tools/testing/selftests/powerpc/mm/tlbie_test.c
688
prctl(PR_SET_PDEATHSIG, SIGKILL);
tools/testing/selftests/powerpc/pmu/count_instructions.c
35
prctl(PR_TASK_PERF_EVENTS_ENABLE);
tools/testing/selftests/powerpc/pmu/count_instructions.c
40
prctl(PR_TASK_PERF_EVENTS_DISABLE);
tools/testing/selftests/powerpc/pmu/count_stcx_fail.c
36
prctl(PR_TASK_PERF_EVENTS_ENABLE);
tools/testing/selftests/powerpc/pmu/count_stcx_fail.c
41
prctl(PR_TASK_PERF_EVENTS_DISABLE);
tools/testing/selftests/powerpc/pmu/per_event_excludes.c
74
prctl(PR_TASK_PERF_EVENTS_ENABLE);
tools/testing/selftests/powerpc/pmu/per_event_excludes.c
80
prctl(PR_TASK_PERF_EVENTS_DISABLE);
tools/testing/selftests/powerpc/security/spectre_v2.c
29
prctl(PR_TASK_PERF_EVENTS_ENABLE);
tools/testing/selftests/powerpc/security/spectre_v2.c
36
prctl(PR_TASK_PERF_EVENTS_DISABLE);
tools/testing/selftests/prctl/disable-tsc-ctxt-sw-stress-test.c
46
if (prctl(PR_SET_TSC, PR_TSC_SIGSEGV) < 0)
tools/testing/selftests/prctl/disable-tsc-ctxt-sw-stress-test.c
67
if (prctl(PR_SET_TSC, PR_TSC_ENABLE) < 0)
tools/testing/selftests/prctl/disable-tsc-on-off-stress-test.c
50
if (prctl(PR_SET_TSC, PR_TSC_ENABLE) < 0)
tools/testing/selftests/prctl/disable-tsc-on-off-stress-test.c
72
if (prctl(PR_SET_TSC, PR_TSC_SIGSEGV) < 0)
tools/testing/selftests/prctl/disable-tsc-test.c
49
if ( prctl(PR_GET_TSC, &tsc_val) == -1)
tools/testing/selftests/prctl/disable-tsc-test.c
55
if ( prctl(PR_SET_TSC, PR_TSC_ENABLE) == -1)
tools/testing/selftests/prctl/disable-tsc-test.c
71
if ( prctl(PR_GET_TSC, &tsc_val) == -1)
tools/testing/selftests/prctl/disable-tsc-test.c
79
if ( prctl(PR_SET_TSC, PR_TSC_ENABLE) == -1)
tools/testing/selftests/prctl/disable-tsc-test.c
86
if ( prctl(PR_SET_TSC, PR_TSC_SIGSEGV) == -1)
tools/testing/selftests/prctl/set-anon-vma-name-test.c
30
res = prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, addr, size, name);
tools/testing/selftests/prctl/set-process-name.c
21
res = prctl(PR_SET_NAME, name, NULL, NULL, NULL);
tools/testing/selftests/prctl/set-process-name.c
33
res = prctl(PR_GET_NAME, name, NULL, NULL, NULL);
tools/testing/selftests/prctl/set-process-name.c
46
res = prctl(PR_GET_NAME, name, NULL, NULL, NULL);
tools/testing/selftests/prctl/set-process-name.c
72
int res = prctl(PR_GET_NAME, name, NULL, NULL, NULL);
tools/testing/selftests/proc/proc-pidns.c
77
prctl(PR_SET_PDEATHSIG, SIGKILL);
tools/testing/selftests/riscv/abi/pointer_masking.c
47
ret = prctl(PR_SET_TAGGED_ADDR_CTRL, request << PR_PMLEN_SHIFT, 0, 0, 0);
tools/testing/selftests/riscv/abi/pointer_masking.c
51
ret = prctl(PR_GET_TAGGED_ADDR_CTRL, 0, 0, 0, 0);
tools/testing/selftests/riscv/abi/pointer_masking.c
83
ret = prctl(PR_SET_TAGGED_ADDR_CTRL, arg, 0, 0, 0);
tools/testing/selftests/riscv/abi/pointer_masking.c
85
ret = prctl(PR_GET_TAGGED_ADDR_CTRL, 0, 0, 0, 0);
tools/testing/selftests/riscv/vector/vstate_exec_nolibc.c
19
ctrl = prctl(PR_RISCV_V_GET_CONTROL, 0, 0, 0, 0);
tools/testing/selftests/riscv/vector/vstate_exec_nolibc.c
54
rc = prctl(PR_RISCV_V_GET_CONTROL, 0, 0, 0, 0);
tools/testing/selftests/riscv/vector/vstate_prctl.c
18
rc = prctl(PR_RISCV_V_SET_CONTROL, provided);
tools/testing/selftests/riscv/vector/vstate_prctl.c
215
rc = prctl(PR_RISCV_V_SET_CONTROL, 0xff0);
tools/testing/selftests/riscv/vector/vstate_prctl.c
228
rc = prctl(PR_RISCV_V_SET_CONTROL, 0x3);
tools/testing/selftests/riscv/vector/vstate_prctl.c
241
rc = prctl(PR_RISCV_V_SET_CONTROL, 0xc);
tools/testing/selftests/riscv/vector/vstate_prctl.c
42
rc = prctl(PR_RISCV_V_GET_CONTROL);
tools/testing/selftests/riscv/vector/vstate_prctl.c
56
rc = prctl(PR_RISCV_V_SET_CONTROL, PR_RISCV_V_VSTATE_CTRL_ON);
tools/testing/selftests/riscv/vector/vstate_prctl.c
72
rc = prctl(PR_RISCV_V_SET_CONTROL, flag);
tools/testing/selftests/riscv/vector/vstate_prctl.c
85
rc = prctl(PR_RISCV_V_SET_CONTROL, flag);
tools/testing/selftests/rlimits/rlimits-per-userns.c
58
if (prctl(PR_SET_PDEATHSIG, SIGKILL) < 0)
tools/testing/selftests/rseq/slice_test.c
142
ASSERT_EQ(prctl(PR_RSEQ_SLICE_EXTENSION, PR_RSEQ_SLICE_EXTENSION_SET,
tools/testing/selftests/safesetid/safesetid-test.c
484
if (prctl(PR_SET_KEEPCAPS, 1L))
tools/testing/selftests/safesetid/safesetid-test.c
498
if (prctl(PR_SET_DUMPABLE, 1, 0, 0, 0))
tools/testing/selftests/sched/cs_prctl_test.c
117
ret = prctl(PR_SCHED_CORE, PR_SCHED_CORE_GET, pid, PIDTYPE_PID,
tools/testing/selftests/sched/cs_prctl_test.c
82
res = prctl(option, arg2, arg3, arg4, arg5);
tools/testing/selftests/seccomp/seccomp_benchmark.c
220
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_benchmark.c
224
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &bitmap_prog);
tools/testing/selftests/seccomp/seccomp_benchmark.c
231
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &bitmap_prog);
tools/testing/selftests/seccomp/seccomp_benchmark.c
238
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog);
tools/testing/selftests/seccomp/seccomp_benchmark.c
245
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &bitmap_prog);
tools/testing/selftests/seccomp/seccomp_bpf.c
1004
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
1007
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog_zero);
tools/testing/selftests/seccomp/seccomp_bpf.c
1026
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
1029
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog_capped);
tools/testing/selftests/seccomp/seccomp_bpf.c
1051
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
1054
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog_first);
tools/testing/selftests/seccomp/seccomp_bpf.c
1057
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog_second);
tools/testing/selftests/seccomp/seccomp_bpf.c
1060
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog_third);
tools/testing/selftests/seccomp/seccomp_bpf.c
1099
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
1102
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog);
tools/testing/selftests/seccomp/seccomp_bpf.c
1112
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
1117
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog);
tools/testing/selftests/seccomp/seccomp_bpf.c
1151
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
1153
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog);
tools/testing/selftests/seccomp/seccomp_bpf.c
1260
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
1263
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow);
tools/testing/selftests/seccomp/seccomp_bpf.c
1265
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log);
tools/testing/selftests/seccomp/seccomp_bpf.c
1267
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trace);
tools/testing/selftests/seccomp/seccomp_bpf.c
1269
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->error);
tools/testing/selftests/seccomp/seccomp_bpf.c
1271
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trap);
tools/testing/selftests/seccomp/seccomp_bpf.c
1273
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->kill);
tools/testing/selftests/seccomp/seccomp_bpf.c
1286
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
1289
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow);
tools/testing/selftests/seccomp/seccomp_bpf.c
1291
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log);
tools/testing/selftests/seccomp/seccomp_bpf.c
1293
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trace);
tools/testing/selftests/seccomp/seccomp_bpf.c
1295
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->error);
tools/testing/selftests/seccomp/seccomp_bpf.c
1297
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trap);
tools/testing/selftests/seccomp/seccomp_bpf.c
1299
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->kill);
tools/testing/selftests/seccomp/seccomp_bpf.c
1315
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
1318
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow);
tools/testing/selftests/seccomp/seccomp_bpf.c
1320
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->kill);
tools/testing/selftests/seccomp/seccomp_bpf.c
1322
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->error);
tools/testing/selftests/seccomp/seccomp_bpf.c
1324
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log);
tools/testing/selftests/seccomp/seccomp_bpf.c
1326
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trace);
tools/testing/selftests/seccomp/seccomp_bpf.c
1328
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trap);
tools/testing/selftests/seccomp/seccomp_bpf.c
1342
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
1345
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow);
tools/testing/selftests/seccomp/seccomp_bpf.c
1347
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log);
tools/testing/selftests/seccomp/seccomp_bpf.c
1349
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trace);
tools/testing/selftests/seccomp/seccomp_bpf.c
1351
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->error);
tools/testing/selftests/seccomp/seccomp_bpf.c
1353
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trap);
tools/testing/selftests/seccomp/seccomp_bpf.c
1367
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
1370
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow);
tools/testing/selftests/seccomp/seccomp_bpf.c
1372
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trap);
tools/testing/selftests/seccomp/seccomp_bpf.c
1374
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log);
tools/testing/selftests/seccomp/seccomp_bpf.c
1376
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trace);
tools/testing/selftests/seccomp/seccomp_bpf.c
1378
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->error);
tools/testing/selftests/seccomp/seccomp_bpf.c
1392
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
1395
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow);
tools/testing/selftests/seccomp/seccomp_bpf.c
1397
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log);
tools/testing/selftests/seccomp/seccomp_bpf.c
1399
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trace);
tools/testing/selftests/seccomp/seccomp_bpf.c
1401
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->error);
tools/testing/selftests/seccomp/seccomp_bpf.c
1414
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
1417
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log);
tools/testing/selftests/seccomp/seccomp_bpf.c
1419
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->error);
tools/testing/selftests/seccomp/seccomp_bpf.c
1421
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trace);
tools/testing/selftests/seccomp/seccomp_bpf.c
1423
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow);
tools/testing/selftests/seccomp/seccomp_bpf.c
1436
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
1439
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow);
tools/testing/selftests/seccomp/seccomp_bpf.c
1441
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log);
tools/testing/selftests/seccomp/seccomp_bpf.c
1443
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trace);
tools/testing/selftests/seccomp/seccomp_bpf.c
1457
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
1460
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->trace);
tools/testing/selftests/seccomp/seccomp_bpf.c
1462
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow);
tools/testing/selftests/seccomp/seccomp_bpf.c
1464
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log);
tools/testing/selftests/seccomp/seccomp_bpf.c
1479
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
1482
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow);
tools/testing/selftests/seccomp/seccomp_bpf.c
1484
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log);
tools/testing/selftests/seccomp/seccomp_bpf.c
1499
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
1502
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->log);
tools/testing/selftests/seccomp/seccomp_bpf.c
1504
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->allow);
tools/testing/selftests/seccomp/seccomp_bpf.c
1629
prctl(PR_SET_PTRACER, tracer_pid, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
1716
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
1719
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
1732
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
1735
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
2185
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
2192
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
2266
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
2289
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
2314
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
2332
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
2384
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, NULL, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
2398
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_STRICT, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
2511
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, NULL, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
2648
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER,
tools/testing/selftests/seccomp/seccomp_bpf.c
2663
ret = prctl(PR_GET_NO_NEW_PRIVS, 0, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
2691
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2732
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2808
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2840
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2885
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {
tools/testing/selftests/seccomp/seccomp_bpf.c
2935
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {
tools/testing/selftests/seccomp/seccomp_bpf.c
3074
EXPECT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {
tools/testing/selftests/seccomp/seccomp_bpf.c
3078
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
3221
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
3396
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
3490
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
3516
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
3572
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
362
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_STRICT, NULL, NULL, NULL);
tools/testing/selftests/seccomp/seccomp_bpf.c
3644
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
3722
ASSERT_EQ(prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0), 0) {
tools/testing/selftests/seccomp/seccomp_bpf.c
373
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_STRICT, NULL, NULL, NULL);
tools/testing/selftests/seccomp/seccomp_bpf.c
3851
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
389
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
3939
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
3991
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
400
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, NULL, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
404
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, NULL, NULL);
tools/testing/selftests/seccomp/seccomp_bpf.c
4050
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4151
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
424
ret = prctl(PR_GET_NO_NEW_PRIVS, 0, NULL, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
429
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4311
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4378
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4440
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0));
tools/testing/selftests/seccomp/seccomp_bpf.c
4441
ASSERT_EQ(0, prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog_block_read));
tools/testing/selftests/seccomp/seccomp_bpf.c
4545
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
459
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4651
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
466
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4723
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
473
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4795
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
4844
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
496
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
5000
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
502
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
509
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
5199
if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0) ||
tools/testing/selftests/seccomp/seccomp_bpf.c
530
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
533
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
536
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_STRICT, NULL, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
553
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
556
ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
559
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
562
ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
578
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
581
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog);
tools/testing/selftests/seccomp/seccomp_bpf.c
595
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
598
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog);
tools/testing/selftests/seccomp/seccomp_bpf.c
615
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
618
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog);
tools/testing/selftests/seccomp/seccomp_bpf.c
636
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
639
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog);
tools/testing/selftests/seccomp/seccomp_bpf.c
658
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
661
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog);
tools/testing/selftests/seccomp/seccomp_bpf.c
679
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
682
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog);
tools/testing/selftests/seccomp/seccomp_bpf.c
702
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
705
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog);
tools/testing/selftests/seccomp/seccomp_bpf.c
737
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
740
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog);
tools/testing/selftests/seccomp/seccomp_bpf.c
779
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
782
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog);
tools/testing/selftests/seccomp/seccomp_bpf.c
853
ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {
tools/testing/selftests/seccomp/seccomp_bpf.c
958
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
961
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog);
tools/testing/selftests/seccomp/seccomp_bpf.c
986
ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
tools/testing/selftests/seccomp/seccomp_bpf.c
989
ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog_valid);
tools/testing/selftests/syscall_user_dispatch/sud_benchmark.c
163
if (prctl(PR_SET_SYSCALL_USER_DISPATCH, PR_SYS_DISPATCH_ON,
tools/testing/selftests/syscall_user_dispatch/sud_test.c
224
ret = prctl(PR_SET_SYSCALL_USER_DISPATCH, PR_SYS_DISPATCH_EXCLUSIVE_ON, 0, 0, &glob_sel);
tools/testing/selftests/syscall_user_dispatch/sud_test.c
280
ret = prctl(PR_SET_SYSCALL_USER_DISPATCH, PR_SYS_DISPATCH_EXCLUSIVE_ON, 0, 0, &glob_sel);
tools/testing/selftests/syscall_user_dispatch/sud_test.c
304
ret = prctl(PR_SET_SYSCALL_USER_DISPATCH, PR_SYS_DISPATCH_EXCLUSIVE_ON, 0, 0, &sel);
tools/testing/selftests/syscall_user_dispatch/sud_test.c
312
ret = prctl(PR_SET_SYSCALL_USER_DISPATCH, PR_SYS_DISPATCH_OFF, 0, 0, 0);
tools/testing/selftests/syscall_user_dispatch/sud_test.c
336
ret = prctl(PR_SET_SYSCALL_USER_DISPATCH, PR_SYS_DISPATCH_EXCLUSIVE_ON, 0, -1L, &sel);
tools/testing/selftests/syscall_user_dispatch/sud_test.c
355
EXPECT_EQ(0, prctl(PR_SET_SYSCALL_USER_DISPATCH, op, off, size, &glob_sel));
tools/testing/selftests/syscall_user_dispatch/sud_test.c
74
ret = prctl(PR_SET_SYSCALL_USER_DISPATCH, PR_SYS_DISPATCH_EXCLUSIVE_ON, 0, 0, &sel);
tools/testing/selftests/syscall_user_dispatch/sud_test.c
92
EXPECT_EQ(0, prctl(PR_SET_SYSCALL_USER_DISPATCH, op, off, size, sel));
tools/testing/selftests/syscall_user_dispatch/sud_test.c
99
EXPECT_EQ(-1, prctl(PR_SET_SYSCALL_USER_DISPATCH, op, off, size, sel));
tools/testing/selftests/timers/posix_timers.c
627
if (prctl(PR_TIMER_CREATE_RESTORE_IDS, PR_TIMER_CREATE_RESTORE_IDS_ON, 0, 0, 0)) {
tools/testing/selftests/timers/posix_timers.c
638
if (prctl(PR_TIMER_CREATE_RESTORE_IDS, PR_TIMER_CREATE_RESTORE_IDS_GET, 0, 0, 0) != 1)
tools/testing/selftests/timers/posix_timers.c
648
if (prctl(PR_TIMER_CREATE_RESTORE_IDS, PR_TIMER_CREATE_RESTORE_IDS_OFF, 0, 0, 0))
tools/testing/selftests/timers/posix_timers.c
651
if (prctl(PR_TIMER_CREATE_RESTORE_IDS, PR_TIMER_CREATE_RESTORE_IDS_GET, 0, 0, 0) != 0)
tools/testing/selftests/tty/tty_tiocsti_test.c
337
ASSERT_EQ(prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0), 0);
tools/testing/selftests/uevent/uevent_filtering.c
225
ret = prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0);
tools/testing/selftests/x86/fsgsbase_restore.c
159
prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0, 0);
tools/testing/selftests/x86/mov_ss_trap.c
138
if (prctl(PR_SET_PTRACER, PR_SET_PTRACER_ANY, 0, 0, 0) == 0)
tools/tracing/rtla/src/timerlat_u.c
164
prctl(PR_SET_NAME, (unsigned long)proc_name, 0, 0, 0);