[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH gnumach] Make mach_msg_header_t have the same size for both 6
From: |
Samuel Thibault |
Subject: |
Re: [PATCH gnumach] Make mach_msg_header_t have the same size for both 64 bit kernel and userland. |
Date: |
Mon, 13 Feb 2023 01:01:37 +0100 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Applied, thanks!
Flavio Cruz, le dim. 12 févr. 2023 18:54:58 -0500, a ecrit:
> This has several advantages:
> 1) We don't need to resize mach_msg_header_t, it is just a copy.
> 2) Mig won't require any changes because it statically computes the size
> +#else
> + if (copyout(&kmsg, &umsg, sizeof(mach_msg_header_t)))
> + return 1;
> +#endif /* USER32 */
I'm wondering, though: for kernel-produced messages, are we sure that we
fill the padding bytes with zeroes? We don't want to leak information
through such holes.
Samel