Re: [PATCH 1/2] x86_64: fix msg size forwarding in case it's not set by userspace

2024-06-11 Thread Samuel Thibault
Applied, thanks! Luca Dariz, le mer. 12 juin 2024 08:27:54 +0200, a ecrit: > * ipc/copy_user.c: recent MIG stubs should always fill the size > correctly in the msg header, but we shouldn't rely on that. Instead, > we use the size that was correctly copied-in, overwriting the value > in the h

[PATCH 1/2] x86_64: fix msg size forwarding in case it's not set by userspace

2024-06-11 Thread Luca Dariz
* ipc/copy_user.c: recent MIG stubs should always fill the size correctly in the msg header, but we shouldn't rely on that. Instead, we use the size that was correctly copied-in, overwriting the value in the header. This is already done by the 32-bit copyinmsg(), and was missing in the 64-b