ANDROID: Different fix for KABI breakage in 5.10.71 in struct sock
This partially reverts commit 627dc3c79c
("ANDROID: Fix up KABI
breakage in 5.10.71 in struct sock")
Then fixes things up in such a way that
BUILD_CONFIG=build/build.config.net_test for kernel_test
still works.
Bug: 202712021
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I40e24d7924fcffc23a2b8cc5ad50049808aa9455
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
79f3d20a45
commit
56596148ae
@@ -8,12 +8,6 @@ function update_config() {
|
|||||||
-d TEST_KMOD \
|
-d TEST_KMOD \
|
||||||
-d CPU_BIG_ENDIAN \
|
-d CPU_BIG_ENDIAN \
|
||||||
-d DYNAMIC_FTRACE \
|
-d DYNAMIC_FTRACE \
|
||||||
-d DEBUG_SPINLOCK \
|
|
||||||
-d DEBUG_LOCK_ALLOC \
|
|
||||||
-d LOCK_STAT \
|
|
||||||
-d DEBUG_WW_MUTEX_SLOWPATH \
|
|
||||||
-d DEBUG_LOCK_ALLOC \
|
|
||||||
-d PROVE_LOCKING \
|
|
||||||
-e UNWINDER_FRAME_POINTER \
|
-e UNWINDER_FRAME_POINTER \
|
||||||
|
|
||||||
(cd ${OUT_DIR} && \
|
(cd ${OUT_DIR} && \
|
||||||
|
@@ -481,6 +481,11 @@ struct sock {
|
|||||||
u32 sk_ack_backlog;
|
u32 sk_ack_backlog;
|
||||||
u32 sk_max_ack_backlog;
|
u32 sk_max_ack_backlog;
|
||||||
kuid_t sk_uid;
|
kuid_t sk_uid;
|
||||||
|
#if IS_ENABLED(CONFIG_DEBUG_SPINLOCK) || IS_ENABLED(CONFIG_DEBUG_LOCK_ALLOC)
|
||||||
|
spinlock_t sk_peer_lock;
|
||||||
|
#else
|
||||||
|
/* sk_peer_lock is in the ANDROID_KABI_RESERVE(1) field below */
|
||||||
|
#endif
|
||||||
struct pid *sk_peer_pid;
|
struct pid *sk_peer_pid;
|
||||||
const struct cred *sk_peer_cred;
|
const struct cred *sk_peer_cred;
|
||||||
|
|
||||||
@@ -524,7 +529,11 @@ struct sock {
|
|||||||
#endif
|
#endif
|
||||||
struct rcu_head sk_rcu;
|
struct rcu_head sk_rcu;
|
||||||
|
|
||||||
|
#if IS_ENABLED(CONFIG_DEBUG_SPINLOCK) || IS_ENABLED(CONFIG_DEBUG_LOCK_ALLOC)
|
||||||
|
ANDROID_KABI_RESERVE(1);
|
||||||
|
#else
|
||||||
ANDROID_KABI_USE(1, spinlock_t sk_peer_lock);
|
ANDROID_KABI_USE(1, spinlock_t sk_peer_lock);
|
||||||
|
#endif
|
||||||
ANDROID_KABI_RESERVE(2);
|
ANDROID_KABI_RESERVE(2);
|
||||||
ANDROID_KABI_RESERVE(3);
|
ANDROID_KABI_RESERVE(3);
|
||||||
ANDROID_KABI_RESERVE(4);
|
ANDROID_KABI_RESERVE(4);
|
||||||
|
Reference in New Issue
Block a user