Commit 3922e762 authored by Xiaochen Shen's avatar Xiaochen Shen
Browse files

sched: Fix kABI for task->pasid_activated

category: bugfix
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I596WO


CVE: NA

Intel-SIG: sched: Fix kABI for task->pasid_activated.

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

In commit
("sched: Define and initialize a flag to identify valid PASID in the task"),
a new single bit field 'pasid_activated' is added to the middle of
'struct task_struct' that causes kABI breakage.

Fix it by using KABI_FILL_HOLE() API for task->pasid_activated.

Signed-off-by: default avatarXiaochen Shen <xiaochen.shen@intel.com>
parent 7b61c8bf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -873,7 +873,7 @@ struct task_struct {
	unsigned			in_memstall:1;
#endif
#ifdef CONFIG_IOMMU_SVA
	unsigned			pasid_activated:1;
	KABI_FILL_HOLE(unsigned		pasid_activated:1)
#endif

	unsigned long			atomic_flags; /* Flags requiring atomic access. */