/third_party/ltp/testcases/kernel/syscalls/clock_gettime/ |
H A D | clock_gettime02.c | 45 * It justifies testing EFAULT for all. 49 .exp_err = EFAULT, 53 .exp_err = EFAULT, 57 .exp_err = EFAULT, 61 .exp_err = EFAULT, 65 .exp_err = EFAULT, 70 .exp_err = EFAULT, 75 .exp_err = EFAULT, 80 .exp_err = EFAULT, 113 if (tc[i].exp_err == EFAULT) { in verify_clock_gettime() [all...] |
/third_party/NuttX/drivers/video/ |
H A D | fb.c | 238 return -EFAULT; in fb_read() 285 return -EFAULT; in fb_write() 394 ret = -EFAULT; in fb_ioctl() 411 ret = -EFAULT; in fb_ioctl() 429 ret = -EFAULT; in fb_ioctl() 448 ret = -EFAULT; in fb_ioctl() 463 ret = -EFAULT; in fb_ioctl() 483 ret = -EFAULT; in fb_ioctl() 498 ret = -EFAULT; in fb_ioctl() 516 ret = -EFAULT; in fb_ioctl() [all...] |
/third_party/libdrm/tests/exynos/ |
H A D | exynos_fimg2d_test.c | 201 return -EFAULT; in g2d_solid_fill_test() 252 return -EFAULT; in g2d_copy_test() 273 ret = -EFAULT; in g2d_copy_test() 282 ret = -EFAULT; in g2d_copy_test() 352 return -EFAULT; in g2d_move_test() 359 ret = -EFAULT; in g2d_move_test() 377 ret = -EFAULT; in g2d_move_test() 460 return -EFAULT; in g2d_copy_with_scale_test() 479 ret = -EFAULT; in g2d_copy_with_scale_test() 488 ret = -EFAULT; in g2d_copy_with_scale_test() [all...] |
/third_party/ltp/testcases/kernel/syscalls/ioctl/ |
H A D | ioctl01.c | 16 * - EFAULT: Pass an invalid address of arg in ioctl(fd, ..., arg) 19 * - EFAULT: Pass a NULL address for termio 48 {"Termio address is invalid", &fd, TCGETA, (struct termio *)-1, EFAULT}, 49 {"Termios address is invalid", &fd, TCGETS, (struct termios *)-1, EFAULT}, 56 {"Termio is NULL", &fd, TCGETA, NULL, EFAULT}, 57 {"Termios is NULL", &fd, TCGETS, NULL, EFAULT}
|
/third_party/ltp/testcases/kernel/syscalls/cma/ |
H A D | process_vm01.c | 170 check_errno(EFAULT); in test_iov_invalid() 177 check_errno(EFAULT); in test_iov_invalid() 184 check_errno(EFAULT); in test_iov_invalid() 191 check_errno(EFAULT); in test_iov_invalid() 269 check_errno(EFAULT); in test_invalid_protection() 276 check_errno(EFAULT); in test_invalid_protection()
|
/third_party/ltp/testcases/kernel/syscalls/setgroups/ |
H A D | setgroups04.c | 24 * Verify that, setgroups() fails with -1 and sets errno to EFAULT if the list has an invalid address. 101 test_desc = "EFAULT"; in main() 113 EFAULT); in main() 116 if (TEST_ERRNO == EFAULT) { in main() 119 "error EFAULT errno:%d", TEST_ERRNO); in main() 123 test_desc, TEST_ERRNO, EFAULT); in main()
|
/third_party/ltp/testcases/kernel/device-drivers/v4l/user_space/ |
H A D | test_VIDIOC_EXT_CTRLS.c | 107 CU_ASSERT(errno_get_invalid == EFAULT in test_VIDIOC_G_EXT_CTRLS_zero_invalid_count() 137 CU_ASSERT(errno_get_invalid == EFAULT in test_VIDIOC_G_EXT_CTRLS_zero_invalid_count() 165 CU_ASSERT(errno_get_invalid == EFAULT in test_VIDIOC_G_EXT_CTRLS_zero_invalid_count() 331 CU_ASSERT_EQUAL(errno_null, EFAULT); in test_VIDIOC_G_EXT_CTRLS_NULL() 420 CU_ASSERT(errno_set_invalid == EFAULT in test_VIDIOC_S_EXT_CTRLS_zero_invalid_count() 450 CU_ASSERT(errno_set_invalid == EFAULT in test_VIDIOC_S_EXT_CTRLS_zero_invalid_count() 478 CU_ASSERT(errno_set_invalid == EFAULT in test_VIDIOC_S_EXT_CTRLS_zero_invalid_count() 518 CU_ASSERT_EQUAL(errno_null, EFAULT); in test_VIDIOC_S_EXT_CTRLS_NULL() 607 CU_ASSERT(errno_try_invalid == EFAULT in test_VIDIOC_TRY_EXT_CTRLS_zero_invalid_count() 638 CU_ASSERT(errno_try_invalid == EFAULT in test_VIDIOC_TRY_EXT_CTRLS_zero_invalid_count() [all...] |
/third_party/ltp/testcases/kernel/device-drivers/dev_sim_framework/kernel_space/ |
H A D | tmod.c | 118 return (-EFAULT); in tmod_ioctl() 133 return (-EFAULT); in tmod_ioctl() 178 rc = -EFAULT; in tmod_ioctl() 185 rc = -EFAULT; in tmod_ioctl()
|
/third_party/ltp/testcases/kernel/syscalls/select/ |
H A D | select03.c | 39 { "Faulty readfds", &maxfds, &faulty_fds, &pwritefds_reg, &nullfds, &valid_to, EFAULT }, 40 { "Faulty writefds", &maxfds, &preadfds_reg, &faulty_fds, &nullfds, &valid_to, EFAULT }, 41 { "Faulty exceptfds", &maxfds, &preadfds_reg, &pwritefds_reg, &faulty_fds, &valid_to, EFAULT }, 42 { "Faulty timeout", &maxfds, &preadfds_reg, &pwritefds_reg, &nullfds, &invalid_to, EFAULT },
|
/third_party/NuttX/drivers/usbdev/gadget/fconfig/src/ |
H A D | usbd_generic_epfile.c | 81 return -EFAULT; in generic_epfile_submit_sync() 93 return -EFAULT; in generic_epfile_submit_sync() 103 return -EFAULT; in generic_epfile_submit_sync() 108 return -EFAULT; in generic_epfile_submit_sync() 354 return -EFAULT; in generic_epfile_handle_read() 430 return -EFAULT; in generic_epfile_handle_ioctl() 449 return -EFAULT; in generic_epfile_handle_ioctl() 459 return -EFAULT; in generic_epfile_handle_ioctl() 479 return -EFAULT; in generic_epfile_handle_ioctl() 506 return -EFAULT; in generic_epfile_handle_ioctl() [all...] |
/third_party/ltp/testcases/kernel/syscalls/init_module/ |
H A D | init_module02.c | 40 {"NULL-buffer", &null_buf, &size, "", 0, 0, EFAULT}, 41 {"faulty-buffer", &faulty_buf, &size, "", 0, 0, EFAULT}, 42 {"null-param", &buf, &size, NULL, 0, 1, EFAULT},
|
/third_party/ltp/testcases/kernel/syscalls/name_to_handle_at/ |
H A D | name_to_handle_at02.c | 33 {"invalid-path", AT_FDCWD, &invalid_path, 0, &valid_fhp, &valid_mount_id, EFAULT}, 34 {"invalid-file-handle", AT_FDCWD, &valid_path, 0, &invalid_fhp, &valid_mount_id, EFAULT}, 37 {"invalid-mount_id", AT_FDCWD, &valid_path, 0, &valid_fhp, &invalid_mount_id, EFAULT},
|
/third_party/ltp/testcases/kernel/syscalls/sched_rr_get_interval/ |
H A D | sched_rr_get_interval03.c | 11 * 3) sched_rr_get_interval() fails with errno set to EFAULT if the 33 { &zero_pid, NULL, EFAULT} 70 if (tc->exp_errno == EFAULT in run() 72 tst_res(TCONF, "EFAULT skipped for libc_variant"); in run() 76 if (tc->exp_errno == EFAULT) in run()
|
/third_party/ltp/testcases/kernel/syscalls/statfs/ |
H A D | statfs02.c | 16 * - EFAULT A pathname pointer outside the address space of the process. 17 * - EFAULT A buf pointer outside the address space of the process. 46 {(char *)-1, &buf, EFAULT}, 47 {TEST_FILE, (struct statfs *)-1, EFAULT}, 66 if (tests[n].exp_error == EFAULT && in statfs_verify() 68 tst_res(TPASS, "Got SIGSEGV instead of EFAULT"); in statfs_verify()
|
/third_party/ltp/testcases/kernel/syscalls/rename/ |
H A D | rename08.c | 11 * Verify that rename(2) fails with EFAULT, when 31 EFAULT); in run() local 33 EFAULT); in run() local
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmctl/ |
H A D | hugeshmctl02.c | 9 * hugeshmctl02 - check for EACCES, EFAULT and EINVAL errors 17 * issue a PASS message if we get EACCES, EFAULT or EINVAL 44 /* EFAULT - IPC_SET & buf isn't valid */ 45 {&shm_id_2, IPC_SET, (struct shmid_ds *)-1, EFAULT}, 46 /* EFAULT - IPC_STAT & buf isn't valid */ 47 {&shm_id_2, IPC_STAT, (struct shmid_ds *)-1, EFAULT}, 79 if (tcases[i].error == EFAULT && tv->shmctl == libc_shmctl) { in test_hugeshmctl() 80 tst_res(TCONF, "EFAULT is skipped for libc variant"); in test_hugeshmctl()
|
/third_party/ltp/testcases/kernel/syscalls/getpeername/ |
H A D | getpeername01.c | 71 {-1, (struct sockaddr *)-1, &sinlen, -1, EFAULT, setup4, cleanup4, 72 "EFAULT"}, 73 {-1, (struct sockaddr *)&fsin1, NULL, -1, EFAULT, setup4, 74 cleanup4, "EFAULT"}, 75 {-1, (struct sockaddr *)&fsin1, (socklen_t *)1, -1, EFAULT, setup4, 76 cleanup4, "EFAULT"},
|
/third_party/ltp/testcases/kernel/syscalls/io_pgetevents/ |
H A D | io_pgetevents02.c | 35 {"invalid events", &ctx, 1, 1, NULL, &to, &sigmask, EFAULT}, 36 {"invalid timeout", &ctx, 1, 1, events, NULL, &sigmask, EFAULT}, 37 {"invalid sigmask", &ctx, 1, 1, events, &to, NULL, EFAULT},
|
/third_party/ltp/testcases/kernel/syscalls/ipc/msgctl/ |
H A D | msgctl04.c | 9 * Test for EACCES, EFAULT and EINVAL errors using a variety of incorrect 45 /* EFAULT - the structure address is invalid - IPC_STAT */ 46 {&msg_id2, IPC_STAT, (struct msqid_ds *)-1, EFAULT}, 47 /* EFAULT - the structure address is invalid - IPC_SET */ 48 {&msg_id2, IPC_SET, (struct msqid_ds *)-1, EFAULT}, 73 if (tc[i].error == EFAULT && in verify_msgctl() 75 tst_res(TCONF, "EFAULT is skipped for libc variant"); in verify_msgctl()
|
/third_party/ltp/testcases/kernel/syscalls/ipc/semctl/ |
H A D | semctl03.c | 11 * Test for semctl() EINVAL and EFAULT errors 58 {&sem_id, GETALL, &bad_ptr, EFAULT, "invalid union arg"}, 59 {&sem_id, IPC_SET, &bad_ptr, EFAULT, "invalid union arg"} 78 if (tc->error == EFAULT && tv->semctl == libc_semctl) { in verify_semctl() 79 tst_res(TCONF, "EFAULT is skipped for libc variant"); in verify_semctl()
|
/third_party/ltp/testcases/kernel/syscalls/clone3/ |
H A D | clone302.c | 36 {"invalid args", &invalid_args, sizeof(*valid_args), 0, NULL, SIGCHLD, 0, 0, 0, EFAULT}, 39 {"extra size", &valid_args, sizeof(*valid_args) + 1, 0, NULL, SIGCHLD, 0, 0, 0, EFAULT}, 43 {"invalid pidfd", &valid_args, sizeof(*valid_args), CLONE_PIDFD, &invalid_address, SIGCHLD, 0, 0, 0, EFAULT}, 52 * can't be checked anymore so you'd never receive EFAULT for a bogus
|
/third_party/ltp/testcases/kernel/syscalls/getsockname/ |
H A D | getsockname01.c | 90 &sinlen, -1, EFAULT, setup1, cleanup1, 94 NULL, -1, EFAULT, setup1, cleanup1, 98 (socklen_t *) 1, -1, EFAULT, setup1, cleanup1,
|
/third_party/ltp/testcases/kernel/syscalls/ipc/shmctl/ |
H A D | shmctl02.c | 14 * Test for EACCES, EFAULT and EINVAL errors. 17 * * EFAULT - IPC_SET & buf isn't valid 18 * * EFAULT - IPC_STAT & buf isn't valid 64 {&shm_id2, IPC_SET, (struct shmid_ds *)-1, EFAULT}, 65 {&shm_id2, IPC_STAT, (struct shmid_ds *)-1, EFAULT}, 92 if (tc[i].error == EFAULT && tv->shmctl == libc_shmctl) { in verify_shmctl() 93 tst_res(TCONF, "EFAULT is skipped for libc variant"); in verify_shmctl()
|
/third_party/ltp/testcases/kernel/device-drivers/tbio/tbio_kernel/ |
H A D | ltp_tbio.c | 85 return -EFAULT; in send_request() 90 return -EFAULT; in send_request() 100 return -EFAULT; in send_request() 115 return -EFAULT; in send_request() 129 return -EFAULT; in tbio_io() 295 return -EFAULT; in test_bio_split() 302 return -EFAULT; in test_bio_split()
|
/third_party/ltp/testcases/kernel/syscalls/access/ |
H A D | access03.c | 10 * access(2) test for errno(s) EFAULT as root and nobody respectively. 37 TST_EXP_FAIL(access(tc->addr, tc->mode), EFAULT, in verify_access() 46 TST_EXP_FAIL(access(tc->addr, tc->mode), EFAULT, in verify_access()
|