Re: [PATCH] ipc: Fail build if IPC structures change layout

2017-05-22 Thread Andrew Morton
On Fri, 19 May 2017 16:44:00 -0700 Kees Cook wrote: > Since struct layout can be seen at build-time, turn runtime report > into a build failure so it can be fixed more quickly. I've just dropped the patch which this fixes, due to runtime issues. Manfred, please include

Re: [PATCH] ipc: Fail build if IPC structures change layout

2017-05-22 Thread Andrew Morton
On Fri, 19 May 2017 16:44:00 -0700 Kees Cook wrote: > Since struct layout can be seen at build-time, turn runtime report > into a build failure so it can be fixed more quickly. I've just dropped the patch which this fixes, due to runtime issues. Manfred, please include this in the resend?

[PATCH] ipc: Fail build if IPC structures change layout

2017-05-19 Thread Kees Cook
Since struct layout can be seen at build-time, turn runtime report into a build failure so it can be fixed more quickly. Cc: Manfred Spraul Signed-off-by: Kees Cook --- Should be applied on top of the -mm tree's IPC changes --- ipc/msg.c | 5

[PATCH] ipc: Fail build if IPC structures change layout

2017-05-19 Thread Kees Cook
Since struct layout can be seen at build-time, turn runtime report into a build failure so it can be fixed more quickly. Cc: Manfred Spraul Signed-off-by: Kees Cook --- Should be applied on top of the -mm tree's IPC changes --- ipc/msg.c | 5 + ipc/sem.c | 5 + ipc/shm.c | 5 + 3