Unverified Commit ffbead4e authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!333 Fix PASID use-after-free issue

Merge Pull Request from: @x56Jason 
 
This PR is to backport upstream fix for a PASID use-after-free issue that are missed in previous backporting.

## Intel-Kernel issue
#I67QJ2


## Test
Kernel build and boot

## Known Issue
N/A

## Default Config Change
N/A 
 
Link:https://gitee.com/openeuler/kernel/pulls/333

 
Reviewed-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parents 28cb7442 c4eff06f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -688,6 +688,7 @@ void __mmdrop(struct mm_struct *mm)
	mmu_notifier_subscriptions_destroy(mm);
	check_mm(mm);
	put_user_ns(mm->user_ns);
	mm_pasid_drop(mm);
	free_mm(mm);
}
EXPORT_SYMBOL_GPL(__mmdrop);
@@ -1137,7 +1138,6 @@ static inline void __mmput(struct mm_struct *mm)
	}
	if (mm->binfmt)
		module_put(mm->binfmt->module);
	mm_pasid_drop(mm);
	mmdrop(mm);
}