From 31189b44667c7cb9cdaf4b02ee9adf89bcdee4fb Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Sat, 2 May 2020 09:35:50 +0200 Subject: [PATCH] ANDROID: GKI: sched: add Android ABI padding to some structures Try to mitigate potential future driver core api changes by adding a padding to struct user_struct and struct sched_domain. Based on a change made to the RHEL/CENTOS 8 kernel. Bug: 151154716 Signed-off-by: Greg Kroah-Hartman Change-Id: Ie8f685122767b690a116193aefd8c5e3b6ef8f17 --- include/linux/sched/topology.h | 5 +++++ include/linux/sched/user.h | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/include/linux/sched/topology.h b/include/linux/sched/topology.h index f341163fedc9..509c0d1b9c0c 100644 --- a/include/linux/sched/topology.h +++ b/include/linux/sched/topology.h @@ -3,6 +3,7 @@ #define _LINUX_SCHED_TOPOLOGY_H #include +#include #include @@ -135,6 +136,10 @@ struct sched_domain { struct sched_domain_shared *shared; unsigned int span_weight; + + ANDROID_KABI_RESERVE(1); + ANDROID_KABI_RESERVE(2); + /* * Span of all CPUs in this domain. * diff --git a/include/linux/sched/user.h b/include/linux/sched/user.h index 917d88edb7b9..573b448e07ac 100644 --- a/include/linux/sched/user.h +++ b/include/linux/sched/user.h @@ -6,6 +6,7 @@ #include #include #include +#include /* * Some day this will be a full-fledged user tracking system.. @@ -39,6 +40,9 @@ struct user_struct { /* Miscellaneous per-user rate limit */ struct ratelimit_state ratelimit; + + ANDROID_KABI_RESERVE(1); + ANDROID_KABI_RESERVE(2); }; extern int uids_sysfs_init(void);