lkml.org 
[lkml]   [2011]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] Force same size of struct autofs_v5_packet on x86 and x86_64
From
Date
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
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2011-09-16 12:11    [W:0.062 / U:0.412 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site