summaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-08-28 13:10:35 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-08-28 13:10:35 +0200
commit4f82ae66628a517585d6bef9465662a45481d024 (patch)
treebfe4affbca50e455b59925b007b19ea096bfb99f /ipc
parent30c93547cd14db1ae44ea9e32bf36a2c2b152c07 (diff)
copyinmsg: Set msgh_size inside copyinmsg rather than the caller
In the 32/64 conversion case it is copyinmsg that will know the eventual size.
Diffstat (limited to 'ipc')
-rw-r--r--ipc/ipc_kmsg.c1
-rw-r--r--ipc/mach_msg.c2
2 files changed, 0 insertions, 3 deletions
diff --git a/ipc/ipc_kmsg.c b/ipc/ipc_kmsg.c
index 8f54f81d..4f5ffb5f 100644
--- a/ipc/ipc_kmsg.c
+++ b/ipc/ipc_kmsg.c
@@ -531,7 +531,6 @@ ipc_kmsg_get(
return MACH_SEND_INVALID_DATA;
}
- kmsg->ikm_header.msgh_size = size;
*kmsgp = kmsg;
return MACH_MSG_SUCCESS;
}
diff --git a/ipc/mach_msg.c b/ipc/mach_msg.c
index 0ae8fe0c..3a75fef6 100644
--- a/ipc/mach_msg.c
+++ b/ipc/mach_msg.c
@@ -464,8 +464,6 @@ mach_msg_trap(
goto slow_get;
}
- kmsg->ikm_header.msgh_size = send_size;
-
fast_copyin:
/*
* optimized ipc_kmsg_copyin/ipc_mqueue_copyin