Home
last modified time | relevance | path

Searched refs:EFAULT (Results 1 – 25 of 72) sorted by relevance

123

/tools/testing/selftests/bpf/progs/
A Dstring_kfuncs_failure1.c21 #define USER_PTR_ERR -EFAULT
70 SEC("syscall") __retval(-EFAULT) int test_strcmp_pagefault1(void *ctx) { return bpf_strcmp(invalid_… in test_strcmp_pagefault1()
71 SEC("syscall") __retval(-EFAULT) int test_strcmp_pagefault2(void *ctx) { return bpf_strcmp("hello",… in test_strcmp_pagefault2()
72 SEC("syscall") __retval(-EFAULT) int test_strchr_pagefault(void *ctx) { return bpf_strchr(invalid_k… in test_strchr_pagefault()
74 SEC("syscall") __retval(-EFAULT) int test_strnchr_pagefault(void *ctx) { return bpf_strnchr(invalid… in test_strnchr_pagefault()
75 SEC("syscall") __retval(-EFAULT) int test_strrchr_pagefault(void *ctx) { return bpf_strrchr(invalid… in test_strrchr_pagefault()
76 SEC("syscall") __retval(-EFAULT) int test_strlen_pagefault(void *ctx) { return bpf_strlen(invalid_k… in test_strlen_pagefault()
77 SEC("syscall") __retval(-EFAULT) int test_strnlen_pagefault(void *ctx) { return bpf_strnlen(invalid… in test_strnlen_pagefault()
78 SEC("syscall") __retval(-EFAULT) int test_strspn_pagefault1(void *ctx) { return bpf_strspn(invalid_… in test_strspn_pagefault1()
79 SEC("syscall") __retval(-EFAULT) int test_strspn_pagefault2(void *ctx) { return bpf_strspn("hello",… in test_strspn_pagefault2()
[all …]
A Dload_bytes_relative.c31 BPF_HDR_START_MAC) != -EFAULT) in load_bytes_relative()
39 BPF_HDR_START_NET) != -EFAULT) in load_bytes_relative()
A Dtest_sig_in_xattr.c84 set_if_not_errno_or_zero(ret, -EFAULT); in BPF_PROG()
A Dverifier_bits_iter.c211 if (err != -EFAULT) in bad_words()
222 if (err != -EFAULT) in bad_words()
A Dlsm.c176 if (len == -3 && ret == -EFAULT) in BPF_PROG()
178 if (len == -4 && ret == -EFAULT) in BPF_PROG()
A Dtest_verify_pkcs7_sig.c89 set_if_not_errno_or_zero(ret, -EFAULT); in BPF_PROG()
/tools/testing/selftests/net/packetdrill/
A Dtcp_syscall_bad_arg_syscall-invalid-buf-ptr.pkt18 +0 write(4, NULL, 1000) = -1 EFAULT (Bad address)
19 +0 send(4, NULL, 1000, 0) = -1 EFAULT (Bad address)
20 +0 sendto(4, NULL, 1000, 0, ..., ...) = -1 EFAULT (Bad address)
23 +0 read(4, NULL, 1000) = -1 EFAULT (Bad address)
24 +0 recv(4, NULL, 1000, 0) = -1 EFAULT (Bad address)
25 +0 recvfrom(4, NULL, 1000, 0, ..., ...) = -1 EFAULT (Bad address)
/tools/testing/selftests/bpf/prog_tests/
A Dread_vsyscall.c22 { .name = "probe_read_user", .ret = -EFAULT },
23 { .name = "probe_read_user_str", .ret = -EFAULT },
24 { .name = "copy_from_user", .ret = -EFAULT },
25 { .name = "copy_from_user_task", .ret = -EFAULT },
26 { .name = "copy_from_user_str", .ret = -EFAULT },
27 { .name = "copy_from_user_task_str", .ret = -EFAULT },
A Dskb_load_bytes.c32 if (!ASSERT_EQ(test_result, -EFAULT, "offset -1")) in test_skb_load_bytes()
A Dmap_kptr.c126 return -EFAULT; in kern_sync_rcu_tasks_trace()
128 return -EFAULT; in kern_sync_rcu_tasks_trace()
A Dfill_link_info.c143 ASSERT_EQ(err, -EFAULT, "invalid_buff"); in kprobe_fill_invalid_user_buffer()
349 ASSERT_EQ(err, -EFAULT, "invalid_buff_addrs"); in verify_kmulti_invalid_user_buffer()
355 ASSERT_EQ(err, -EFAULT, "invalid_buff_cookies"); in verify_kmulti_invalid_user_buffer()
518 ASSERT_EQ(err, -EFAULT, "failed_bad_path_ptr"); in verify_umulti_invalid_user_buffer()
538 ASSERT_EQ(err, -EFAULT, "failed_wrong_offsets"); in verify_umulti_invalid_user_buffer()
A Dvarlen.c67 CHECK_VAL(bss->ret_bad_read, -EFAULT); in test_varlen()
/tools/testing/selftests/drivers/s390x/uvdevice/
A Dtest_uvdevice.c62 ASSERT_EQ(errno_cache, EFAULT); in TEST_F()
67 ASSERT_EQ(errno_cache, EFAULT); in TEST_F()
78 ASSERT_EQ(errno_cache, EFAULT); in TEST_F()
84 ASSERT_EQ(errno_cache, EFAULT); in TEST_F()
244 ASSERT_EQ(errno_cache, EFAULT); in att_inval_addr_test()
249 ASSERT_EQ(errno_cache, EFAULT); in att_inval_addr_test()
/tools/testing/selftests/riscv/abi/
A Dpointer_masking.c248 if (ret >= 0 || errno != EFAULT) in test_tagged_addr_abi_pmlen()
252 if (ret >= 0 || errno != EFAULT) in test_tagged_addr_abi_pmlen()
286 if (ret >= 0 || errno != EFAULT) in test_tagged_addr_abi_pmlen()
290 if (ret >= 0 || errno != EFAULT) in test_tagged_addr_abi_pmlen()
/tools/testing/selftests/kvm/x86/
A Dfix_hypercall_test.c25 regs->rax = -EFAULT; in guest_ud_handler()
75 GUEST_ASSERT(ret == (uint64_t)-EFAULT); in guest_main()
/tools/testing/selftests/lsm/
A Dlsm_list_modules_test.c26 ASSERT_EQ(EFAULT, errno); in TEST()
38 ASSERT_EQ(EFAULT, errno); in TEST()
/tools/include/uapi/asm-generic/
A Derrno-base.h18 #define EFAULT 14 /* Bad address */ macro
/tools/testing/selftests/ptrace/
A Dpeeksiginfo.c92 if (ret != -1 && errno != EFAULT) { in check_error_paths()
95 ret, errno, EFAULT); in check_error_paths()
/tools/testing/selftests/user_events/
A Dftrace_test.c481 ASSERT_EQ(EFAULT, errno); in TEST_F()
486 ASSERT_EQ(EFAULT, errno); in TEST_F()
491 ASSERT_EQ(EFAULT, errno); in TEST_F()
496 ASSERT_EQ(EFAULT, errno); in TEST_F()
502 ASSERT_EQ(EFAULT, errno); in TEST_F()
/tools/lib/bpf/
A Dstr_error.c61 case -EFAULT: return "-EFAULT"; in libbpf_errstr()
/tools/testing/selftests/kvm/
A Dmmu_stress_test.c154 TEST_ASSERT(r == -1 && errno == EFAULT, in vcpu_worker()
177 TEST_ASSERT_EQ(errno, EFAULT); in vcpu_worker()
197 } while (r && errno == EFAULT); in vcpu_worker()
/tools/testing/selftests/hid/
A Dhid_common.h129 return -EFAULT; in uhid_write()
180 return -EFAULT; in uhid_event()
187 return -EFAULT; in uhid_event()
/tools/testing/selftests/syscall_user_dispatch/
A Dsud_test.c135 prctl_invalid(_metadata, op, 0x0, 0x1, (void *) -1, EFAULT); in TEST()
157 prctl_invalid(_metadata, PR_SYS_DISPATCH_INCLUSIVE_ON, 2, 3, (void *) -1, EFAULT); in TEST()
/tools/perf/util/
A Dbpf-utils.c127 return ERR_PTR(-EFAULT); in get_bpf_prog_info_linear()
190 return ERR_PTR(-EFAULT); in get_bpf_prog_info_linear()
/tools/testing/selftests/x86/
A Dsyscall_arg_fault.c37 if (ax != -EFAULT && ax != -ENOSYS) { in sigsegv_or_sigbus()

Completed in 29 milliseconds

123