/openbmc/qemu/bsd-user/freebsd/ |
H A D | os-stat.c | 31 if (!lock_user_struct(VERIFY_WRITE, target_st, target_addr, 0)) { in h2t_freebsd11_stat() 66 if (!lock_user_struct(VERIFY_WRITE, target_st, target_addr, 0)) { in h2t_freebsd_stat() 110 if (!lock_user_struct(VERIFY_WRITE, target_st, target_addr, 0)) { in h2t_freebsd11_nstat() 146 if (!lock_user_struct(VERIFY_READ, target_fh, target_addr, 1)) { in t2h_freebsd_fhandle() 163 if (!lock_user_struct(VERIFY_WRITE, target_fh, target_addr, 0)) { in h2t_freebsd_fhandle() 184 if (!lock_user_struct(VERIFY_WRITE, target_statfs, target_addr, 0)) { in h2t_freebsd11_statfs() 222 if (!lock_user_struct(VERIFY_WRITE, target_statfs, target_addr, 0)) { in h2t_freebsd_statfs()
|
H A D | os-proc.c | 185 if (!lock_user_struct(VERIFY_WRITE, target_rs, target_rs_addr, 0)) { in h2t_reaper_status() 203 if (!lock_user_struct(VERIFY_READ, target_rk, target_rk_addr, 1)) { in t2h_reaper_kill() 221 if (!lock_user_struct(VERIFY_WRITE, target_rk, target_rk_addr, 0)) { in h2t_reaper_kill() 240 if (!lock_user_struct(VERIFY_WRITE, target_pi, target_pi_addr, 0)) { in h2t_procctl_reaper_pidinfo() 309 if (!lock_user_struct(VERIFY_READ, target_rp, target_arg, 1)) { in do_freebsd_procctl()
|
H A D | os-stat.h | 578 if (!lock_user_struct(VERIFY_READ, target_fl, arg3, 1)) { in do_freebsd_fcntl() 590 if (!lock_user_struct(VERIFY_WRITE, target_fl, arg3, 0)) { in do_freebsd_fcntl() 605 if (!lock_user_struct(VERIFY_READ, target_fl, arg3, 1)) { in do_freebsd_fcntl()
|
/openbmc/qemu/linux-user/ppc/ |
H A D | signal.c | 436 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 1)) in setup_frame() 494 if (!lock_user_struct(VERIFY_WRITE, rt_sf, rt_sf_addr, 1)) in setup_rt_frame() 583 if (!lock_user_struct(VERIFY_READ, sc, sc_addr, 1)) in do_sigreturn() 593 if (!lock_user_struct(VERIFY_READ, sr, sr_addr, 1)) in do_sigreturn() 628 if (!lock_user_struct(VERIFY_READ, mcp, mcp_addr, 1)) in do_setcontext() 645 if (!lock_user_struct(VERIFY_READ, rt_sf, rt_sf_addr, 1)) in do_rt_sigreturn() 679 if (!lock_user_struct(VERIFY_WRITE, uctx, uold_ctx, 1)) { in do_swapcontext() 702 if (!lock_user_struct(VERIFY_READ, uctx, unew_ctx, 1)) { in do_swapcontext()
|
/openbmc/qemu/linux-user/alpha/ |
H A D | signal.c | 134 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_frame() 172 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_rt_frame() 216 if (!lock_user_struct(VERIFY_READ, sc, sc_addr, 1)) { in do_sigreturn() 242 if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) { in do_rt_sigreturn()
|
/openbmc/qemu/linux-user/mips/ |
H A D | signal.c | 208 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_frame() 255 if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) in do_sigreturn() 302 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_rt_frame() 359 if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) { in do_rt_sigreturn()
|
/openbmc/qemu/linux-user/sh4/ |
H A D | signal.c | 186 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_frame() 232 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_rt_frame() 282 if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) { in do_sigreturn() 313 if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) { in do_rt_sigreturn()
|
/openbmc/openbmc/poky/meta/recipes-devtools/qemu/qemu/ |
H A D | 0009-linux-user-Replace-use-of-lfs64-related-functions-an.patch | 89 - if (!lock_user_struct(VERIFY_READ, target_fl, target_flock_addr, 1)) { 113 - if (!lock_user_struct(VERIFY_WRITE, target_fl, target_flock_addr, 0)) { 150 if (!lock_user_struct(VERIFY_READ, target_fl, target_flock_addr, 1)) { 164 if (!lock_user_struct(VERIFY_WRITE, target_fl, target_flock_addr, 0)) { 177 if (!lock_user_struct(VERIFY_READ, target_fl, target_flock_addr, 1)) { 191 if (!lock_user_struct(VERIFY_WRITE, target_fl, target_flock_addr, 0)) {
|
/openbmc/qemu/bsd-user/ |
H A D | bsd-mem.c | 51 if (!lock_user_struct(VERIFY_READ, target_sd, target_addr, 1)) { in target_to_host_shmid_ds() 87 if (!lock_user_struct(VERIFY_WRITE, target_sd, target_addr, 0)) { in host_to_target_shmid_ds()
|
H A D | bsd-proc.c | 81 if (!lock_user_struct(VERIFY_WRITE, target_rusage, target_addr, 0)) { in host_to_target_rusage() 95 if (!lock_user_struct(VERIFY_WRITE, target_wrusage, target_addr, 0)) { in host_to_target_wrusage()
|
H A D | bsd-proc.h | 163 if (!lock_user_struct(VERIFY_WRITE, target_rlim, arg2, 0)) { in do_bsd_getrlimit() 185 if (!lock_user_struct(VERIFY_READ, target_rlim, arg2, 1)) { in do_bsd_setrlimit()
|
H A D | signal.c | 609 if (!lock_user_struct(VERIFY_READ, uss, uss_addr, 1)) { in do_sigaltstack() 745 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_frame() 813 if (!lock_user_struct(VERIFY_READ, ucontext, target_ucontext, 0)) { in do_sigreturn()
|
/openbmc/qemu/linux-user/s390x/ |
H A D | signal.c | 181 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_frame() 251 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_rt_frame() 366 if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) { in do_sigreturn() 392 if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) { in do_rt_sigreturn()
|
/openbmc/qemu/linux-user/m68k/ |
H A D | signal.c | 136 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_frame() 286 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_rt_frame() 337 if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) in do_sigreturn() 370 if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) in do_rt_sigreturn()
|
/openbmc/qemu/linux-user/sparc/ |
H A D | signal.c | 390 if ((sf_addr & 15) || !lock_user_struct(VERIFY_READ, sf, sf_addr, 1)) { in do_sigreturn() 415 if ((ptr & 3) || !lock_user_struct(VERIFY_READ, fpu, ptr, 1)) { in do_sigreturn() 457 if ((sf_addr & 15) || !lock_user_struct(VERIFY_READ, sf, sf_addr, 1)) { in do_rt_sigreturn() 480 if ((ptr & 7) || !lock_user_struct(VERIFY_READ, fpu, ptr, 1)) { in do_rt_sigreturn() 596 if (!lock_user_struct(VERIFY_READ, ucp, ucp_addr, 1)) { in sparc64_set_context() 714 if (!lock_user_struct(VERIFY_WRITE, ucp, ucp_addr, 0)) { in sparc64_get_context()
|
/openbmc/qemu/linux-user/openrisc/ |
H A D | signal.c | 101 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_rt_frame() 144 if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) { in do_rt_sigreturn()
|
/openbmc/qemu/linux-user/ |
H A D | syscall.c | 989 if (!lock_user_struct(VERIFY_WRITE, target_rusage, target_addr, 0)) in host_to_target_rusage() 1095 if (!lock_user_struct(VERIFY_READ, target_tv, target_tv_addr, 1)) { in copy_from_user_timeval() 1112 if (!lock_user_struct(VERIFY_WRITE, target_tv, target_tv_addr, 0)) { in copy_to_user_timeval() 1130 if (!lock_user_struct(VERIFY_READ, target_tv, target_tv_addr, 1)) { in copy_from_user_timeval64() 1148 if (!lock_user_struct(VERIFY_WRITE, target_tv, target_tv_addr, 0)) { in copy_to_user_timeval64() 1174 if (!lock_user_struct(VERIFY_READ, target_ts, target_addr, 1)) { in target_to_host_timespec() 1200 if (!lock_user_struct(VERIFY_READ, target_ts, target_addr, 1)) { in target_to_host_timespec64() 1217 if (!lock_user_struct(VERIFY_WRITE, target_ts, target_addr, 0)) { in host_to_target_timespec() 1231 if (!lock_user_struct(VERIFY_WRITE, target_ts, target_addr, 0)) { in host_to_target_timespec64() 1246 if (!lock_user_struct(VERIFY_WRITE, target_tz, target_tz_addr, 1)) { in copy_to_user_timezone() [all …]
|
H A D | vm86.c | 56 if (!lock_user_struct(VERIFY_WRITE, target_v86, ts->target_v86, 0)) in save_v86_state() 238 if (!lock_user_struct(VERIFY_READ, target_v86, vm86_addr, 1)) in do_vm86()
|
H A D | qemu.h | 359 #define lock_user_struct(type, host_ptr, guest_addr, copy) \ macro
|
/openbmc/qemu/linux-user/riscv/ |
H A D | signal.c | 123 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_rt_frame() 189 if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) { in do_rt_sigreturn()
|
/openbmc/qemu/linux-user/hppa/ |
H A D | signal.c | 128 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_rt_frame() 183 if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) { in do_rt_sigreturn()
|
/openbmc/qemu/linux-user/arm/ |
H A D | signal.c | 328 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_frame() 354 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_rt_frame() 519 if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) { in do_sigreturn() 554 if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) { in do_rt_sigreturn()
|
/openbmc/qemu/linux-user/xtensa/ |
H A D | signal.c | 182 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_rt_frame() 280 if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) { in do_rt_sigreturn()
|
/openbmc/qemu/linux-user/microblaze/ |
H A D | signal.c | 145 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_rt_frame() 198 if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) { in do_rt_sigreturn()
|
/openbmc/qemu/linux-user/hexagon/ |
H A D | signal.c | 160 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_rt_frame() 268 if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) { in do_rt_sigreturn()
|