Home
last modified time | relevance | path

Searched refs:verify_area (Results 1 – 15 of 15) sorted by relevance

/DragonOS-0.1.8/kernel/src/syscall/
Dmod.rs20 mm::{verify_area, MemoryManagementArch, VirtAddr},
438 let res = if from_user && verify_area(virt_addr, len as usize).is_err() { in handle()
457 let res = if from_user && verify_area(virt_addr, len as usize).is_err() { in handle()
519 || (from_user && verify_area(virt_addr, PAGE_2M_SIZE as usize).is_err()) in handle()
548 let res = if from_user && verify_area(virt_addr, len as usize).is_err() { in handle()
572 && (verify_area(virt_path_ptr, PAGE_4K_SIZE as usize).is_err() in handle()
573 || verify_area(virt_argv_ptr, PAGE_4K_SIZE as usize).is_err()) in handle()
574 || verify_area(virt_env_ptr, PAGE_4K_SIZE as usize).is_err() in handle()
595 && (verify_area(virt_wstatus, core::mem::size_of::<c_int>() as usize).is_err() in handle()
596 || verify_area(virt_rusage, PAGE_4K_SIZE as usize).is_err()) in handle()
[all …]
Duser_access.rs6 use crate::mm::{verify_area, VirtAddr};
25 verify_area(dest, len).map_err(|_| SystemError::EFAULT)?; in clear_user()
34 verify_area(dest, src.len()).map_err(|_| SystemError::EFAULT)?; in copy_to_user()
44 verify_area(src, dst.len()).map_err(|_| SystemError::EFAULT)?; in copy_from_user()
/DragonOS-0.1.8/kernel/src/libs/
Dstring.c86 if (!verify_area((uint64_t)src, size)) in strncpy_from_user()
104 if (!verify_area((uint64_t)src, size)) in strnlen_user()
/DragonOS-0.1.8/kernel/src/common/
Dglib.h201 bool verify_area(uint64_t addr_start, uint64_t length) in verify_area() function
220 if (!verify_area((uint64_t)src, size)) in copy_from_user()
249 if (verify_area((uint64_t)src, size)) in copy_to_user()
/DragonOS-0.1.8/kernel/src/mm/
Dsyscall.rs16 verify_area, VirtAddr,
174 if unlikely(verify_area(start_vaddr, len).is_err()) { in munmap()
207 if unlikely(verify_area(start_vaddr, len).is_err()) { in mprotect()
Dmod.rs614 pub fn verify_area(addr: VirtAddr, size: usize) -> Result<(), SystemError> { in verify_area() function
/DragonOS-0.1.8/kernel/src/arch/x86_64/
Dsyscall.rs13 mm::{ucontext::AddressSpace, verify_area, VirtAddr},
77 && (verify_area(VirtAddr::new(path_ptr), MAX_PATHLEN).is_err() in syscall_handler()
78 || verify_area(VirtAddr::new(argv_ptr), MAX_PATHLEN).is_err() in syscall_handler()
79 || verify_area(VirtAddr::new(env_ptr), MAX_PATHLEN).is_err()) in syscall_handler()
/DragonOS-0.1.8/kernel/src/ipc/
Dsyscall.rs9 include::bindings::bindings::{pid_t, verify_area, NULL},
99 !verify_area( in sigaction()
175 !verify_area( in sigaction()
Dsignal.rs16 spinlock_t, verify_area, NULL, PF_EXITING, PF_KTHREAD, PF_SIGNALED, PF_WAKEKILL,
607 let access_check_ok = unsafe { verify_area(frame as u64, size_of::<sigframe>() as u64) }; in setup_frame()
702 if unsafe { !verify_area(to as u64, size_of::<siginfo>() as u64) } { in copy_siginfo_to_user()
874 if unsafe { !verify_area(frame as u64, size_of::<sigframe>() as u64) } { in sys_rt_sigreturn()
/DragonOS-0.1.8/kernel/src/debug/traceback/
Dtraceback.c37 if (verify_area(regs->rbp, 0)) in traceback()
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dahcidisk.rs4 use crate::include::bindings::bindings::verify_area;
102 let user_buf = if unsafe { verify_area(buf_ptr as u64, buf.len() as u64) } { in read_at()
264 let user_buf = if unsafe { verify_area(buf_ptr as u64, buf.len() as u64) } { in write_at()
/DragonOS-0.1.8/kernel/src/net/
Dsyscall.rs13 include::bindings::bindings::verify_area,
479 verify_area( in to_endpoint()
551 if !verify_area( in write_to_user()
554 ) || !verify_area(addr_len as usize as u64, core::mem::size_of::<u32>() as u64) in write_to_user()
/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dsyscall.rs6 include::bindings::bindings::{verify_area, AT_REMOVEDIR, PAGE_4K_SIZE, PROC_MAX_FD_NUM},
666 if !verify_area( in from_user()
684 if !verify_area(iov.iov_base as usize as u64, iov.iov_len as u64) { in from_user()
/DragonOS-0.1.8/kernel/src/libs/libUI/
Dscreen_manager.c70 if (unlikely(verify_area(buf->vaddr, buf->size) == true)) in __destroy_buffer()
/DragonOS-0.1.8/docs/community/ChangeLog/V0.1.x/
DV0.1.8.md252 * 修改syscall.rs中的verify_area