From 75a05048a4965587516510075d7dfce764d54dac Mon Sep 17 00:00:00 2001 From: Godzil Date: Wed, 24 Jul 2019 15:41:21 +0100 Subject: [PATCH] Let's be paranoid: force the packing on important shared structures. --- include/fusd_msg.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/fusd_msg.h b/include/fusd_msg.h index 9a7ebd7..581ee63 100755 --- a/include/fusd_msg.h +++ b/include/fusd_msg.h @@ -81,6 +81,8 @@ /* other constants */ #define FUSD_MSG_MAGIC 0x7a6b93cd +#pragma pack(1) + /* user->kernel: register a device */ typedef struct { char name[FUSD_MAX_NAME_LENGTH+1]; @@ -148,4 +150,6 @@ typedef struct { int num_open; } fusd_status_t; +#pragma pack() + #endif /* __FUSD_MSG_H__ */