public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Force same size of struct autofs_v5_packet on x86 and x86_64
@ 2011-09-16 10:06 Thomas Meyer
  2011-09-16 10:19 ` Al Viro
  0 siblings, 1 reply; 9+ messages in thread
From: Thomas Meyer @ 2011-09-16 10:06 UTC (permalink / raw)
  To: Linux Kernel Mailing List, viro, dhowells, raven

[-- Attachment #1: Type: text/plain, Size: 764 bytes --]

autofs_v5_packet is 300 bytes on x86 and 304 bytes on x86_64.
This difference is wrong and leads to a hang in systemd when running
a x86 userspace on an x86_64 kernel.

Signed-off-by: Thomas Meyer <thomas@m3y3r>
---
 include/linux/auto_fs4.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/auto_fs4.h b/include/linux/auto_fs4.h
index e02982f..4be222a 100644
--- a/include/linux/auto_fs4.h
+++ b/include/linux/auto_fs4.h
@@ -138,7 +138,7 @@ struct autofs_v5_packet {
 	__u32 tgid;
 	__u32 len;
 	char name[NAME_MAX+1];
-};
+} __attribute__ ((packed));
 
 typedef struct autofs_v5_packet autofs_packet_missing_indirect_t;
 typedef struct autofs_v5_packet autofs_packet_expire_indirect_t;
-- 
1.7.6.2


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-09-20  3:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-16 10:06 [PATCH] Force same size of struct autofs_v5_packet on x86 and x86_64 Thomas Meyer
2011-09-16 10:19 ` Al Viro
2011-09-16 10:38   ` Ian Kent
2011-09-18  8:01     ` Thomas Meyer
2011-09-19  3:52       ` Ian Kent
2011-09-19  6:10         ` Al Viro
2011-09-19  9:30           ` Thomas Meyer
2011-09-19 15:27             ` Al Viro
2011-09-20  3:07             ` Ian Kent

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox