Commit Graph

2212 Commits

Author SHA1 Message Date
4lDO2 bf26de70e2 Add setresuid/setresgid (suid/sgid stub on Redox). 2024-07-18 23:54:46 +02:00
Jeremy Soller 312b66e547 Merge branch 'usignal2' into 'master'
Implement syscall restart

See merge request redox-os/relibc!483
2024-07-17 09:38:41 +00:00
4lDO2 dfb234079e Fix signal fxrstor offset. 2024-07-16 14:46:09 +02:00
4lDO2 66a32016b5 Move sa_restart test to correct category. 2024-07-16 14:43:25 +02:00
4lDO2 22cab7ca8d Fix errors on non-x86_64. 2024-07-16 13:32:18 +02:00
4lDO2 17cb748217 Implement syscall restart for waitpid. 2024-07-16 12:48:14 +02:00
4lDO2 4c20a9abb2 Enable syscall restart in futex_wait. 2024-07-16 11:55:06 +02:00
Jeremy Soller aed9fe7c66 Merge branch 'random-bool-modfix' into 'master'
Fix missing modulo in random_bool()

See merge request redox-os/relibc!482
2024-07-16 09:16:21 +00:00
Peter Limkilde Svendsen e5be15cc9b Fix missing modulo in random_bool() 2024-07-16 09:16:20 +00:00
4lDO2 bcce7e18db Implement SA_RESTART for read and write. 2024-07-15 23:24:41 +02:00
Jeremy Soller 85faefc597 Merge branch 'safer-rand48' into 'master'
Refactor rand48 functions with less unsafe

See merge request redox-os/relibc!473
2024-07-15 17:44:57 +00:00
Peter Limkilde Svendsen dbcf8049fc Refactor rand48 functions with less unsafe 2024-07-15 17:44:56 +00:00
Jeremy Soller 3cd21243ec Merge branch 'usignal' of gitlab.redox-os.org:4lDO2/relibc 2024-07-15 09:38:36 -06:00
4lDO2 e97f26c763 Use crates.io syscall dependency. 2024-07-15 17:31:12 +02:00
4lDO2 67976e759e Switch to upstream syscall dependency. 2024-07-15 17:19:42 +02:00
Jeremy Soller 78eda3f7ed Merge branch 'patch-1' into 'master'
Add instructions to test relibc against a recipe

See merge request redox-os/relibc!471
2024-07-15 14:48:05 +00:00
4lDO2 315ba323a4 Move sigchld test from EXPECT_NAMES to NAMES. 2024-07-09 15:42:33 +02:00
4lDO2 44db740260 Update dependencies. 2024-07-09 15:39:58 +02:00
4lDO2 77c9e53ee2 Fix sigchld test. 2024-07-09 15:39:57 +02:00
4lDO2 284f51b47e Fix struct sigaction defintion. 2024-07-09 15:39:57 +02:00
4lDO2 cf390d6a52 Add SIGCHLD test. 2024-07-09 15:39:53 +02:00
4lDO2 b64b0ebe18 Handle kill and killpg EINTR. 2024-07-09 15:00:58 +02:00
4lDO2 78247c8525 Pass signal correctly to SYS_KILL. 2024-07-09 15:00:58 +02:00
4lDO2 4ee878c474 Always use fxsave, store 'YMM_UPPER' manually. 2024-07-09 15:00:58 +02:00
4lDO2 2fe1d614f8 Fix aarch64 EINTR handler. 2024-07-09 15:00:58 +02:00
4lDO2 5916b94707 Fix aarch64 fork_ret. 2024-07-09 15:00:58 +02:00
4lDO2 618643b299 Work around aarch64 bootstrap crash. 2024-07-09 15:00:58 +02:00
4lDO2 5277f2f640 Fix typo in currently_pending. 2024-07-09 15:00:58 +02:00
4lDO2 c9d22e484b Write draft aarch64 trampoline that compiles. 2024-07-09 15:00:58 +02:00
4lDO2 8298417dee Implement sigpending on Redox. 2024-07-09 15:00:58 +02:00
4lDO2 c639fd37ba Implement sigaltstack. 2024-07-09 15:00:57 +02:00
4lDO2 6d5d0eb61e Set initial sigactions to SIG_DFL and correct bits. 2024-07-09 15:00:57 +02:00
4lDO2 6a3d247a90 Clear the signal bit in the handler. 2024-07-09 15:00:57 +02:00
4lDO2 a446ac1945 Fix (rare) stack corruption on x86_64. 2024-07-09 15:00:57 +02:00
4lDO2 c0e079132a AND rather than set sigmask inside signal. 2024-07-09 15:00:57 +02:00
4lDO2 126daaa186 Improve i686 trampoline and fix PIC. 2024-07-09 15:00:57 +02:00
4lDO2 5460ffc4c9 Jump to trampoline after SYS_{READ,WRITE} EINTR. 2024-07-09 15:00:57 +02:00
4lDO2 a166a1ebb2 For now, put ptr to pctl in TCB. 2024-07-09 15:00:57 +02:00
4lDO2 63509e75ce Use new signal ABI where 'actions' are in shmem. 2024-07-09 15:00:56 +02:00
4lDO2 71800d2b73 Fix spurious ign signal. 2024-07-09 15:00:56 +02:00
4lDO2 f28fe4a387 Use fetch_add instead of CAS when setting sigmask.
This makes sigprocmask, the way it is currently implemented, wait-free
(technically I think x86 only guarantees LOCK XADD is lock-free and
fair, but still).
2024-07-09 15:00:56 +02:00
4lDO2 39f45b0f67 Fix i686 trampoline. 2024-07-09 15:00:56 +02:00
4lDO2 5b8d53ddd3 Fix x86_64 trampoline. 2024-07-09 15:00:56 +02:00
4lDO2 cda5f18946 Change interrupt stack format, emulate atomicity. 2024-07-09 15:00:56 +02:00
4lDO2 9bb34901bf Adjust trampolines, only ip and 'archdep' regs are saved. 2024-07-09 15:00:56 +02:00
4lDO2 568fc09277 Reset sighandler in fexec before switching addrsp. 2024-07-09 15:00:56 +02:00
4lDO2 442954915b Fix x86_64 spurious signal jump condition. 2024-07-09 15:00:56 +02:00
4lDO2 2d66993b3f Adapt to now-inverted signal mask (allowset). 2024-07-09 15:00:55 +02:00
4lDO2 157d9fb2ba Set sigmask to sa_mask inside handler. 2024-07-09 15:00:55 +02:00
4lDO2 630bf2ae3d Fix popf operand size. 2024-07-09 15:00:55 +02:00