Commit Graph

709 Commits

Author SHA1 Message Date
ClawSeven
b80450ef96 [libos] Fix gvisor setsockopt/getsockopt bugs 2024-06-21 14:49:21 +08:00
ClawSeven
5dfa017a76 [libos] Implement IO_Uring feature config 2024-06-21 14:49:21 +08:00
ClawSeven
de90f265c1 [libos] Re-implement network syscalls with host/unix/uring socket 2024-06-21 14:49:21 +08:00
ClawSeven
f8be7e7454 [libos] Implement async network framework based on IO_Uring 2024-06-21 14:49:21 +08:00
ClawSeven
9d4dcc2b21 [libos] Implement inner-defined sockopt with ioctl api 2024-06-21 14:49:21 +08:00
ClawSeven
92ec7c334b [libos] Re-implement unix/host socket and unify net-related structs 2024-06-21 14:49:21 +08:00
ClawSeven
f91cd60786 [libos] Add untrusted circular buffer 2024-06-21 14:49:21 +08:00
ClawSeven
f3b1acf3ce [libos] Re-implement ioctl commands 2024-06-21 14:49:21 +08:00
ClawSeven
fd6e1bae45 [libos] Implement sub-crates including uring_callback/keyable-arc/object-id/untrusted-alloc etc 2024-06-21 14:49:21 +08:00
ClawSeven
44eb5ca3fe [libos] Implement edge/level triggering waiter and poller 2024-06-21 14:49:21 +08:00
ClawSeven
bfc97f5ba2 [libos] Replace file table with internally implemented mutex 2024-06-21 14:49:21 +08:00
ClawSeven
9a174aee01 [libos] Implement high-performance mutex 2024-06-21 14:49:21 +08:00
LI Qing
eee7c8651d Use Ord::clamp to simplify the nice value 2024-06-20 13:17:13 +08:00
Qi Zheng
c864e10400 [libos] Return hostfs permission error code 2024-06-18 12:46:49 +08:00
Hui, Chunyang
f36d6d465c Add kernel_heap_monitor as the default feature 2024-05-29 20:46:09 +08:00
LI Qing
d2bed6c862 [libos] Rewrite the getdents 2024-03-27 16:59:26 +08:00
Qi Zheng
f08af144a8 Update cargo lock 2024-03-19 10:51:33 +08:00
LI Qing
f9839299b2 Refine the implementation of NiceValue 2024-03-18 15:26:45 +08:00
LI Qing
db3a31d42e Fix the chown syscall with negative id 2024-03-15 14:44:26 +08:00
Hui, Chunyang
6eaad69941 Bump version to 0.30.1 2024-03-14 16:23:34 +08:00
ClawSeven
fb013a2bcd [time] Fix wrong SGX_CPUID leaf 2024-03-14 16:23:34 +08:00
Hui, Chunyang
2198d9e395 Add "kernel_heap_monitor" feature 2024-03-14 16:23:34 +08:00
ClawSeven
e48cc13f79 [time] Adapt vdso module to SGX1 platform 2024-03-14 16:23:34 +08:00
ClawSeven
b2f721d1bb [crates] Implement vdso for time precision 2024-03-14 16:23:34 +08:00
ClawSeven
9404da7cf8 [crates] Seperate error module into errno crate 2024-03-14 16:23:34 +08:00
Hui, Chunyang
aae9b6d940 Use special exception register and Replace sgx_tprotect_rsrv_mem with low leve API 2024-03-14 16:23:34 +08:00
Hui, Chunyang
ca4bcbf8fe Use low level API to replace sgx_mm_(commit/commit_data/modify_permissions)
Reduce the EMA management overhead and the global lock of emm module of
Intel SGX SDK
2024-03-14 16:23:34 +08:00
ClawSeven
2b1a9b960a [libos] Fix rt_sigaction wrong inargument 2024-03-14 16:23:34 +08:00
ClawSeven
e9f2c09012 [libos] Fix readlinkat with non-positive bufsize 2024-03-14 16:23:34 +08:00
ClawSeven
c2296c13d2 [libos] Fix sendfile with non-writable file 2024-03-14 16:23:34 +08:00
Hui, Chunyang
ee77ee618b Fix permission violation check for mmap and mprotect 2024-03-14 16:23:34 +08:00
Hui, Chunyang
e637ddbdfe Fix mmap file flush exceeding the file length 2024-03-14 16:23:34 +08:00
Hui, Chunyang
bf8d6a65f0 Add AMX and EDMM as feature in Occlum.json 2024-03-14 16:23:34 +08:00
Hui, Chunyang
836513687a Refine log for #UD exception and file open 2024-03-14 16:23:34 +08:00
Hui, Chunyang
ad6cab55f9 Refine log for VM module 2024-03-14 16:23:34 +08:00
ClawSeven
c465e7782a [libos] Fix clock_getres return successfully with wrong clock id 2024-03-14 16:23:34 +08:00
Qi Zheng
b746fea82b [libos] Add iov buffer check for readv and writev
Signed-off-by: Qi Zheng <huaiqing.zq@antgroup.com>
2024-03-14 16:23:34 +08:00
Qi Zheng
dc060c57b4 Update unsupported syscall table 2024-03-14 16:23:34 +08:00
Qi Zheng
beeffcced7 [libos] faccessat only accepts three parameters 2024-03-14 16:23:34 +08:00
ClawSeven
47ac767886 [libos] Lower sigsuspend error log level 2024-03-14 16:23:34 +08:00
Qi Zheng
a7317b0aa9 [libos] Add disable_log cfg option 2024-03-14 16:23:34 +08:00
ClawSeven
065c367b37 [libos] Fix deadlock in signal implementions 2024-03-14 16:23:34 +08:00
ClawSeven
2a801e5fec [test] Implement ut for sigsuspend 2024-03-14 16:23:34 +08:00
ClawSeven
1147e6956f [libos] Implement the rt_sigsuspend syscall 2024-03-14 16:23:34 +08:00
ClawSeven
382bc812f1 [test] Implement unit test for pselect 2024-03-14 16:23:34 +08:00
ClawSeven
56528f67da [libos] Implement Pselect syscall with sigset 2024-03-14 16:23:34 +08:00
Hui, Chunyang
4d2ba8ca01 Refine error level log 2024-03-14 16:23:34 +08:00
Shaowei Song
76edc08233 [config] Add "feature" field to Occlum.json 2024-03-14 16:23:34 +08:00
Shaowei Song
5efc54cb81 [vm] Refine shared chunk expansion 2024-03-14 16:23:34 +08:00
ClawSeven
6c8c8fc871 Reduce error log by downgrading unnecessary error! to warn! 2024-03-14 16:23:34 +08:00