[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 5/6] fix port name size in notifications
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 5/6] fix port name size in notifications |
Date: |
Sun, 12 Feb 2023 18:30:10 +0100 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Applied, thanks!
Luca Dariz, le dim. 12 févr. 2023 18:03:12 +0100, a ecrit:
> * ipc/ipc_machdep.h: define PORT_NAME_T_SIZE_IN_BITS
> * ipc/ipc_notify.c: fix port name size in notification message
> templates
> ---
> ipc/ipc_machdep.h | 1 +
> ipc/ipc_notify.c | 8 ++++----
> 2 files changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/ipc/ipc_machdep.h b/ipc/ipc_machdep.h
> index 29878dc9..2871fc31 100755
> --- a/ipc/ipc_machdep.h
> +++ b/ipc/ipc_machdep.h
> @@ -34,5 +34,6 @@
> */
>
> #define PORT_T_SIZE_IN_BITS (sizeof(mach_port_t)*8)
> +#define PORT_NAME_T_SIZE_IN_BITS (sizeof(mach_port_name_t)*8)
>
> #endif /* _IPC_IPC_MACHDEP_H_ */
> diff --git a/ipc/ipc_notify.c b/ipc/ipc_notify.c
> index eea60116..d0b71cf2 100644
> --- a/ipc/ipc_notify.c
> +++ b/ipc/ipc_notify.c
> @@ -72,7 +72,7 @@
> ipc_notify_init_port_deleted(mach_port_deleted_notification_t *n)
> m->msgh_id = MACH_NOTIFY_PORT_DELETED;
>
> t->msgt_name = MACH_MSG_TYPE_PORT_NAME;
> - t->msgt_size = PORT_T_SIZE_IN_BITS;
> + t->msgt_size = PORT_NAME_T_SIZE_IN_BITS;
> t->msgt_number = 1;
> t->msgt_inline = TRUE;
> t->msgt_longform = FALSE;
> @@ -102,7 +102,7 @@
> ipc_notify_init_msg_accepted(mach_msg_accepted_notification_t *n)
> m->msgh_id = MACH_NOTIFY_MSG_ACCEPTED;
>
> t->msgt_name = MACH_MSG_TYPE_PORT_NAME;
> - t->msgt_size = PORT_T_SIZE_IN_BITS;
> + t->msgt_size = PORT_NAME_T_SIZE_IN_BITS;
> t->msgt_number = 1;
> t->msgt_inline = TRUE;
> t->msgt_longform = FALSE;
> @@ -164,7 +164,7 @@ ipc_notify_init_no_senders(
> m->msgh_id = MACH_NOTIFY_NO_SENDERS;
>
> t->msgt_name = MACH_MSG_TYPE_INTEGER_32;
> - t->msgt_size = PORT_T_SIZE_IN_BITS;
> + t->msgt_size = 32;
> t->msgt_number = 1;
> t->msgt_inline = TRUE;
> t->msgt_longform = FALSE;
> @@ -215,7 +215,7 @@ ipc_notify_init_dead_name(
> m->msgh_id = MACH_NOTIFY_DEAD_NAME;
>
> t->msgt_name = MACH_MSG_TYPE_PORT_NAME;
> - t->msgt_size = PORT_T_SIZE_IN_BITS;
> + t->msgt_size = PORT_NAME_T_SIZE_IN_BITS;
> t->msgt_number = 1;
> t->msgt_inline = TRUE;
> t->msgt_longform = FALSE;
> --
> 2.30.2
>
>
--
Samuel
---
Pour une évaluation indépendante, transparente et rigoureuse !
Je soutiens la Commission d'Évaluation de l'Inria.
- Re: [PATCH 6/6] enable syscalls on x86_64, (continued)
[PATCH 1/6] set unused members of thread state to 0, Luca Dariz, 2023/02/12
[PATCH 3/6] add L4 kmem cache for x86_64, Luca Dariz, 2023/02/12
[PATCH 4/6] fix rpc time value for 64 bit, Luca Dariz, 2023/02/12
[PATCH 5/6] fix port name size in notifications, Luca Dariz, 2023/02/12
- Re: [PATCH 5/6] fix port name size in notifications,
Samuel Thibault <=