Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7b5e53c7 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "arm64: avoid segfault on el0 cache maintenance"

parents 07fe8cc5 23574f2b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -226,7 +226,8 @@ static int __kprobes do_page_fault(unsigned long addr, unsigned int esr,

	if (esr & ESR_LNX_EXEC) {
		vm_flags = VM_EXEC;
	} else if (esr & ESR_EL1_WRITE) {
	} else if (((esr & ESR_EL1_WRITE) && !(esr & ESR_EL1_CM)) ||
			((esr & ESR_EL1_CM) && !(mm_flags & FAULT_FLAG_USER))) {
		vm_flags = VM_WRITE;
		mm_flags |= FAULT_FLAG_WRITE;
	}