Searched refs:verify_area (Results 1 – 7 of 7) sorted by relevance
/DragonOS-0.1.7/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.7/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.7/kernel/src/filesystem/vfs/ |
D | syscall.rs | 9 pt_regs, verify_area, AT_REMOVEDIR, PAGE_2M_SIZE, PAGE_4K_SIZE, PROC_MAX_FD_NUM, SEEK_CUR, 75 if user_mode(regs) && unsafe { !verify_area(buf_vaddr as u64, len as u64) } { in sys_read() 104 if user_mode(regs) && unsafe { !verify_area(buf_vaddr as u64, len as u64) } { in sys_write() 178 || (user_mode(regs) && unsafe { !verify_area(ptr as u64, PAGE_2M_SIZE as u64) }) in sys_chdir() 269 || (user_mode(regs) && unsafe { !verify_area(ptr as u64, PAGE_2M_SIZE as u64) }) in sys_mkdir() 309 || (user_mode(regs) && unsafe { !verify_area(ptr as u64, PAGE_2M_SIZE as u64) }) in sys_unlink_at() 469 if !verify_area( in from_user() 487 if !verify_area(iov.iov_base as usize as u64, iov.iov_len as u64) { in from_user()
|
/DragonOS-0.1.7/kernel/src/debug/traceback/ |
D | traceback.c | 37 if (verify_area(regs->rbp, 0)) in traceback()
|
/DragonOS-0.1.7/kernel/src/net/ |
D | syscall.rs | 13 include::bindings::bindings::{pt_regs, verify_area}, 103 if unsafe { verify_area(optval as u64, optlen as u64) } == false { in do_setsockopt() 146 if unsafe { verify_area(optval as u64, core::mem::size_of::<u8>() as u64) } == false { in do_getsockopt() 152 if unsafe { verify_area(optlen as u64, core::mem::size_of::<u32>() as u64) } == false { in do_getsockopt() 306 if unsafe { verify_area(buf as usize as u64, len as u64) } == false { in do_sendto() 361 if unsafe { verify_area(buf as usize as u64, len as u64) } == false { in do_recvfrom() 413 if unsafe { verify_area(msg as usize as u64, core::mem::size_of::<MsgHdr>() as u64) } == false { in do_recvmsg() 675 verify_area( in to_endpoint() 747 if !verify_area( in write_to_user() 750 ) || !verify_area(addr_len as usize as u64, core::mem::size_of::<u32>() as u64) in write_to_user()
|
/DragonOS-0.1.7/kernel/src/ipc/ |
D | signal.rs | 16 spinlock_t, verify_area, NULL, PF_EXITING, PF_KTHREAD, PF_SIGNALED, PF_WAKEKILL, 652 let access_check_ok = unsafe { verify_area(frame as u64, size_of::<sigframe>() as u64) }; in setup_frame() 747 if unsafe { !verify_area(to as u64, size_of::<siginfo>() as u64) } { in copy_siginfo_to_user() 848 if unsafe { !verify_area(act as usize as u64, size_of::<sigaction>() as u64) } { in sys_sigaction() 917 if unsafe { !verify_area(old_act as usize as u64, size_of::<sigaction>() as u64) } { in sys_sigaction() 1037 if unsafe { !verify_area(frame as u64, size_of::<sigframe>() as u64) } { in sys_rt_sigreturn()
|
/DragonOS-0.1.7/kernel/src/libs/libUI/ |
D | screen_manager.c | 70 if (unlikely(verify_area(buf->vaddr, buf->size) == true)) in __destroy_buffer()
|