Commit 45b76b42 authored by Ziyang Xuan's avatar Ziyang Xuan
Browse files

sk_buff: Fix KABI break for the modification of struct sk_buff

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I9HVTH


CVE: CVE-2024-26921

--------------------------------

Fix KABI break when backport CVE-2024-26921 patch by
reverting modification of struct sk_buff.

Fixes: 18685451fc4e ("inet: inet_defrag: prevent sk release while still in use")
Signed-off-by: default avatarZiyang Xuan <william.xuanziyang@huawei.com>
parent 6b22f55d
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -683,7 +683,10 @@ struct sk_buff {
		struct list_head	list;
	};

	union {
		struct sock		*sk;
		int			ip_defrag_offset;
	};

	union {
		ktime_t		tstamp;