]> sourceware.org Git - glibc.git/commitdiff
hurd: Fix restoring message to be retried
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 13 Jul 2024 15:00:55 +0000 (17:00 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 13 Jul 2024 15:05:13 +0000 (17:05 +0200)
save_data stores the start of the original message to be retried,
overwritten by the EINTR reply. In 64b builds the overwrite is however
rounded up to the 64b pointer size, so we have to save more than just
the 32b err.

Thanks a lot to Luca Dariz for the investigation!

hurd/intr-msg.c

index 2c2e7dc46375bd9e93231fe4b9598eb73d075c5d..424c1fc700a7c56f346d72eddf2c3e717d8ba28f 100644 (file)
@@ -42,7 +42,10 @@ _hurd_intr_rpc_mach_msg (mach_msg_header_t *msg,
   struct clobber
   {
     mach_msg_type_t type;
-    error_t err;
+    union {
+      error_t err;
+      uintptr_t align;
+    };
   };
   union msg
   {
This page took 0.037103 seconds and 5 git commands to generate.