Commit Graph

25 Commits

Author SHA1 Message Date
7e4509df9c Refactor and test set{pgid,sid} 2025-05-06 18:47:10 +08:00
8600278a5f Drop files at the correct time 2025-04-14 21:13:11 +08:00
e4f07b76a0 Add real vfork logics 2025-04-03 14:44:39 +08:00
43e43ca133 Add vfork syscall and related clone flags 2025-04-03 14:44:39 +08:00
f1c7564184 Move CPU context implementations to a specific module 2025-03-21 21:19:50 +08:00
248b24fb4e Remove UserSpace abstraction from OSTD 2025-03-20 14:20:47 +08:00
801eac9386 Support PR_SET/GET_CHILD_SUBREAPER for sys_prctl 2025-03-03 19:31:50 +08:00
b9ce3e64ad Make the file lookup faster 2025-01-09 10:58:16 +08:00
0bfe7aceb8 Utilize ThreadLocal 2024-12-26 14:51:20 +08:00
3d12ccdbea Warn unsupported clone flags instead of panic 2024-12-20 09:21:25 +08:00
35c20620bc Rewrite exit() and exit_group() 2024-12-17 19:36:38 +08:00
36fc1d3757 Move FS things to PosixThread 2024-12-05 13:44:09 +08:00
fe7e4884c9 Clarify what CLONE_THREAD depends on 2024-12-05 13:44:09 +08:00
5e35704e38 Support eagerly FPU state save/restore
Co-authored-by: Shaowei Song <songshaowei.ssw@antgroup.com>
2024-11-29 21:53:14 +08:00
39d303c72f Rename get_current_userspace to current_userspace 2024-11-15 13:24:58 +08:00
e6c613f538 Rename (Posix)ThreadExt to As(Posix)Thread 2024-11-13 21:44:37 +08:00
9233d1cdbb Add ThreadExt and clean up PosixThreadExt 2024-11-13 21:44:37 +08:00
0a36760f7a Respect user-defined exit signal in clone() and clone3()
When calling clone() and clone3(), the user is allowed to specify a
signal to be sent to the parent process on exit. Respect this value by
storing it in the Process struct and sending the signal on exit.

Add a test as well to verify that the signal is properly delivered to
the parent.
2024-09-26 20:07:43 +08:00
130a0f7030 Homogenize arguments for clone() and clone3()
The arguments for both syscalls follow different formats. Rewrite the
CloneArgs struct to homogenize both formats into one.
2024-09-26 20:07:43 +08:00
fb718fd440 Optimize the latency of lat-sig-install 2024-09-25 17:29:20 +08:00
f3174dbbbc Make task store Arc<Thread> and process store Arc<Task> 2024-09-14 17:34:14 +08:00
81b0f265b5 Move Tid from Thread to PosixThread 2024-09-14 17:34:14 +08:00
1186fb7ca9 Use SpinLock on FileTable for efficiency 2024-09-13 19:48:26 +08:00
86f09eef75 Fix all spelling mistakes in history by typos tool 2024-08-27 12:19:48 +08:00
dafd16075f Remove the shim kernel crate 2024-08-23 23:37:50 +08:00