Messages in this thread Patch in this message | | | Subject | [PATCH] Force same size of struct autofs_v5_packet on x86 and x86_64 | From | Thomas Meyer <> | Date | Fri, 16 Sep 2011 12:06:38 +0200 |
| |
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] | |