aboutsummaryrefslogtreecommitdiff
path: root/tests/test-machmsg.c
diff options
context:
space:
mode:
authorLuca Dariz <luca@orpolo.org>2024-06-12 08:27:54 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-06-12 08:34:26 +0200
commit4cb4bd24862777f5066133b31051dd10c0a2d8a8 (patch)
treeee37ba8c68d731d67fad6b505053d4a237d3d768 /tests/test-machmsg.c
parent0396920c68ce7c09b1aea5c24f25e8006114502f (diff)
downloadgnumach-4cb4bd24862777f5066133b31051dd10c0a2d8a8.tar.gz
gnumach-4cb4bd24862777f5066133b31051dd10c0a2d8a8.tar.bz2
gnumach-4cb4bd24862777f5066133b31051dd10c0a2d8a8.zip
x86_64: fix msg size forwarding in case it's not set by userspace
* 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-bit version. Furthermore, the assertion about user/kernel size make sense with and without USER32, so take it out if the #ifdef. Message-ID: <20240612062755.116308-1-luca@orpolo.org>
Diffstat (limited to 'tests/test-machmsg.c')
0 files changed, 0 insertions, 0 deletions