Skip to content

Commit

Permalink
uname: Fix SMAP violation
Browse files Browse the repository at this point in the history
Signed-off-by: Dennis Bonke <[email protected]>
  • Loading branch information
Dennisbonke committed Mar 27, 2022
1 parent 762cc9c commit 5a701b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aero_kernel/src/syscall/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub fn uname(buffer: usize) -> Result<usize, AeroSyscallError> {
let init_bytes = init.as_bytes();
let len = init.len();

fixed[..len].copy_from_slice(init_bytes)
controlregs::with_userspace_access(||fixed[..len].copy_from_slice(init_bytes))
}

// TODO: Safety checks!
Expand Down

0 comments on commit 5a701b4

Please sign in to comment.