Commit Graph

208 Commits

Author SHA1 Message Date
4lDO2 5dfc76dda8 Fix signal handlers after EINTR nanosleep. 2025-04-19 19:27:03 +02:00
4lDO2 37b60b67e0 Add and fix test for kill&waitpid. 2025-04-19 19:27:02 +02:00
4lDO2 0083043736 Write and fix waitpid_multiple test. 2025-04-19 19:27:02 +02:00
4lDO2 a293b02992 Fix aarch64 signal test. 2025-04-19 19:27:02 +02:00
4lDO2 403beeb9f6 Fix sigqueue test for aarch64. 2025-04-19 19:27:02 +02:00
4lDO2 d559450d69 Use abort() rather than unreachable! when exit fails. 2025-04-19 19:27:02 +02:00
4lDO2 d0335b30de Use redox_rt::protocol for sig numbers. 2025-04-19 19:27:02 +02:00
4lDO2 1c6b3ad78b Fix aarch64 child_hook. 2025-04-19 19:27:01 +02:00
4lDO2 fb8e3cd751 Fix sigqueue on i686. 2025-04-19 19:27:01 +02:00
4lDO2 05481b36a6 Fix IPC size on i686. 2025-04-19 19:27:01 +02:00
4lDO2 2fbbdcc1c9 Aarch64 fix, make i686 compile. 2025-04-19 19:27:01 +02:00
4lDO2 0213ac2d15 Probably fix aarch.
Bootloader is currently panicking so a bit hard to test.
2025-04-19 19:27:01 +02:00
4lDO2 c773544906 Fix sigentry for realtime sigs, fixing sigqueue test. 2025-04-19 19:27:01 +02:00
4lDO2 f813f5a222 Fix sigtimedwait realtime signals, almost handler too. 2025-04-19 19:27:01 +02:00
4lDO2 6d72048b13 Store proc_fd in MaybeUninit with external discriminant. 2025-04-19 19:27:01 +02:00
4lDO2 6e947a9b2f Simplify FdGuard. 2025-04-19 19:27:00 +02:00
4lDO2 3a8d63d2b8 Handle self-kill for posix_kill{,_thread}. 2025-04-19 19:27:00 +02:00
4lDO2 a8ee9e72ee Fix possible TCB.thread_fd() use-after-free. 2025-04-19 19:27:00 +02:00
4lDO2 cc6fadb8bb Only SyncSigTctl if there exists a proc fd. 2025-04-19 19:27:00 +02:00
4lDO2 dc2988968e Use SignalThread call and fix fork sighandler sync with procmgr. 2025-04-19 19:26:59 +02:00
4lDO2 93e88b0ce8 Reacquire thread fd as procmgr-owned in make_init. 2025-04-19 19:26:59 +02:00
4lDO2 b30ccb61fe Enforce procmgr errors, fix attrs path. 2025-04-19 19:26:59 +02:00
4lDO2 ac7e0755f1 Fix SyncSigPctl invocation. 2025-04-19 19:26:59 +02:00
4lDO2 98c8beae3d Sync sig pages using proc and thread calls. 2025-04-19 19:26:59 +02:00
4lDO2 8bd510ff59 Simplify [res][ug]id getters and setters. 2025-04-19 19:26:59 +02:00
4lDO2 9999bb6068 Add ThisGroup selector for kill. 2025-04-19 19:26:59 +02:00
4lDO2 747d11062b Rename KillTarget -> ProcKillTarget. 2025-04-19 19:26:58 +02:00
4lDO2 88848c25fe Add (backend todo) proc calls for kill+sigq. 2025-04-19 19:26:58 +02:00
4lDO2 f4a64cfbc3 Add setresguid. 2025-04-19 19:26:58 +02:00
4lDO2 48df8f5bba Add unstable interface for getting current thread fd. 2025-04-19 19:26:58 +02:00
4lDO2 9566a00ad1 WIP: waitpid and exit IPC calls. 2025-04-19 19:26:58 +02:00
4lDO2 4138b68117 Implement setrens and waitpid using procmgr. 2025-04-19 19:26:58 +02:00
4lDO2 0c1835a545 Implement waitpid using new SYS_CALL. 2025-04-19 19:26:58 +02:00
4lDO2 1cd450a9ae Implement get{r,e}{u,g}id. 2025-04-19 19:26:57 +02:00
4lDO2 ad5efd0f11 Reach init fork 2025-04-19 19:26:57 +02:00
4lDO2 26399569de Reach init w/proc manager. 2025-04-19 19:26:57 +02:00
4lDO2 b851422214 WIP: use proc manager in non-init fork. 2025-04-19 19:26:57 +02:00
4lDO2 91e58e8568 WIP: dynamic and static proc info 2025-04-19 19:26:57 +02:00
4lDO2 422a32690d Replace removed syscalls with redox-rt stubs. 2025-04-19 19:26:57 +02:00
Jeremy Soller 6e165e2ef0 Fix build on i686 2025-04-14 09:16:27 -06:00
bjorn3 17172720a7 Always pass offset to read_all and rename to pread_all 2025-04-12 21:49:42 +02:00
bjorn3 050edcdcc6 Pass PROT_READ to mmap when the segment has PF_R
This will allow the kernel to not add an implicit PROT_READ for every
mmap in the future.
2025-04-12 20:13:39 +02:00
bjorn3 095646517d Use a single mmap + read for each segment 2025-04-12 20:10:28 +02:00
bjorn3 d85fe6bdd5 Revert "Add a workaround for UB on arm64"
The kernel bug that caused this has been fixed.

This reverts commit 4d82cd90f8.
2025-04-12 17:14:01 +02:00
bjorn3 4d82cd90f8 Add a workaround for UB on arm64 2025-04-12 13:54:30 +02:00
bjorn3 52c429c207 Add a couple of PROT_READ
Even though they are only used for writing, it is still UB to create a
mutable reference to memory that can't be read.
2025-04-12 13:52:42 +02:00
bjorn3 20d77672e7 Add back asm_const feature
It isn't stable yet on the nightly used by redox
2025-03-30 21:04:58 +02:00
bjorn3 cf0fdb42ea Prevent initialize_freestanding from accidentally closing fd 0 2025-03-30 21:00:51 +02:00
bjorn3 facc643e18 Couple of misc improvements
Fix a bunch of warnings and clarify that execve will never return Ok by
using Infallible
2025-03-30 20:18:01 +02:00
Anhad Singh 20b9af633d chore: bump redox_syscall
Bumps redox_syscall to 0.5.8

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2024-12-12 13:50:04 +11:00