/DragonOS-0.1.8/kernel/src/syscall/ |
D | mod.rs | 20 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 …]
|
D | user_access.rs | 6 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/ |
D | string.c | 86 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/ |
D | glib.h | 201 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/ |
D | syscall.rs | 16 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()
|
D | mod.rs | 614 pub fn verify_area(addr: VirtAddr, size: usize) -> Result<(), SystemError> { in verify_area() function
|
/DragonOS-0.1.8/kernel/src/arch/x86_64/ |
D | syscall.rs | 13 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/ |
D | syscall.rs | 9 include::bindings::bindings::{pid_t, verify_area, NULL}, 99 !verify_area( in sigaction() 175 !verify_area( in sigaction()
|
D | signal.rs | 16 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/ |
D | traceback.c | 37 if (verify_area(regs->rbp, 0)) in traceback()
|
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/ |
D | ahcidisk.rs | 4 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/ |
D | syscall.rs | 13 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/ |
D | syscall.rs | 6 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/ |
D | screen_manager.c | 70 if (unlikely(verify_area(buf->vaddr, buf->size) == true)) in __destroy_buffer()
|
/DragonOS-0.1.8/docs/community/ChangeLog/V0.1.x/ |
D | V0.1.8.md | 252 * 修改syscall.rs中的verify_area
|