From cb27de5e20af82983ba1c458aa3aa1d4b432cf64 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Sat, 2 May 2020 09:44:10 +0200 Subject: [PATCH] ANDROID: GKI: user_namespace.h: add Android ABI padding to a structure Try to mitigate potential future driver core api changes by adding a padding to struct user_namespace. Based on a change made to the RHEL/CENTOS 8 kernel. Bug: 151154716 Signed-off-by: Greg Kroah-Hartman Change-Id: I2c41281b191cd252db2ddc792699d869ce8d7a4d --- include/linux/user_namespace.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/user_namespace.h b/include/linux/user_namespace.h index 45f09bec02c4..21855582acd4 100644 --- a/include/linux/user_namespace.h +++ b/include/linux/user_namespace.h @@ -10,6 +10,7 @@ #include #include #include +#include #define UID_GID_MAP_MAX_BASE_EXTENTS 5 #define UID_GID_MAP_MAX_EXTENTS 340 @@ -102,6 +103,9 @@ struct user_namespace { struct ucounts *ucounts; long ucount_max[UCOUNT_COUNTS]; long rlimit_max[UCOUNT_RLIMIT_COUNTS]; + + ANDROID_KABI_RESERVE(1); + ANDROID_KABI_RESERVE(2); } __randomize_layout; struct ucounts {