[PATCH glibc] Remove untyped mach RPC code.

2023-11-18 Thread Flavio Cruz
Existing MiG does not support untyped messages and the Hurd will continue to use typed messages for the foreseeable future. --- hurd/hurdfault.c | 4 --- hurd/intr-msg.c| 69 -- mach/msg-destroy.c | 64 --

Re: [PATCH glibc] _hurd_intr_rpc_mach_msg: handle message iteration correctly.

2023-11-18 Thread Samuel Thibault
Applied, thanks! Flavio Cruz, le sam. 18 nov. 2023 18:18:44 -0500, a ecrit: > The `ty` pointer is only set at the end of the loop so that > `msgtl_header.msgt_inline` and `msgtl_header.msgt_deallocate` remain > valid. Also, when deallocating memory, we use the length from the > message directly

Re: [PATCH hurd] libfshelp: type check messages using the full mach_msg_type_t so that it works on x86_64.

2023-11-18 Thread Samuel Thibault
Applied, thanks! Flavio Cruz, le sam. 18 nov. 2023 18:24:11 -0500, a ecrit: > --- > libfshelp/start-translator-long.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libfshelp/start-translator-long.c > b/libfshelp/start-translator-long.c > index 0d6c574..0b16e7d 100644

[PATCH hurd] libfshelp: type check messages using the full mach_msg_type_t so that it works on x86_64.

2023-11-18 Thread Flavio Cruz
--- libfshelp/start-translator-long.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfshelp/start-translator-long.c b/libfshelp/start-translator-long.c index 0d6c574..0b16e7d 100644 --- a/libfshelp/start-translator-long.c +++ b/libfshelp/start-translator-long.c @@ -110,7

[PATCH glibc] _hurd_intr_rpc_mach_msg: handle message iteration correctly.

2023-11-18 Thread Flavio Cruz
The `ty` pointer is only set at the end of the loop so that `msgtl_header.msgt_inline` and `msgtl_header.msgt_deallocate` remain valid. Also, when deallocating memory, we use the length from the message directly rather than hard coding mach_port_t since we want to deallocate any kind of OOL data.