[PATCH gcc] Hurd x86_64: add unwind support for signal trampoline code

2024-02-28 Thread Flavio Cruz
Tested with some simple toy examples where an exception is thrown in the signal handler. libgcc/ChangeLog: * config/i386/gnu-unwind.h: Support unwinding x86_64 signal frames. Signed-off-by: Flavio Cruz --- libgcc/config/i386/gnu-unwind.h | 97 - 1 file ch

[PATCH hurd] rumpdisk: do not open device if block size is 0

2024-02-28 Thread Flavio Cruz
Currently, if we do: $ ls /dev/cd0/ The computer seems to get stuck, caused by the divide by 0 in the rumpdisk server in device_get_status. I noticed that if we have no disk in the cdrom device, we can still open it but block and media size will be 0 and the message "cd0 dos partition I/O error"

Re: [PATCH gnumach] Check for null ports in task_set_essential, task_set_name and thread_set_name.

2024-02-28 Thread Samuel Thibault
Applied, thanks! Flavio Cruz, le dim. 25 févr. 2024 01:46:38 -0500, a ecrit: > Otherwise, it is easy to crash the kernel if userland passes arbitrary port > names. > --- > kern/task.c | 6 ++ > kern/thread.c | 3 +++ > 2 files changed, 9 insertions(+) > > diff --git a/kern/task.c b/kern/ta