Thread (38 messages) 38 messages, 6 authors, 2020-05-28

Re: [PATCH 10/23] maccess: unify the probe kernel arch hooks

From: Andrew Morton <akpm@linux-foundation.org>
Date: 2020-05-28 00:55:49
Also in: bpf, linux-mm, linux-um, lkml

On Thu, 21 May 2020 17:22:48 +0200 Christoph Hellwig [off-list ref] wrote:
Currently architectures have to override every routine that probes
kernel memory, which includes a pure read and strcpy, both in strict
and not strict variants.  Just provide a single arch hooks instead to
make sure all architectures cover all the cases.
Fix a buildo.
--- a/arch/x86/mm/maccess.c~maccess-unify-the-probe-kernel-arch-hooks-fix
+++ a/arch/x86/mm/maccess.c
@@ -29,6 +29,6 @@ bool probe_kernel_read_allowed(const voi
 {
 	if (!strict)
 		return true;
-	return (unsigned long)vaddr >= TASK_SIZE_MAX;
+	return (unsigned long)unsafe_src >= TASK_SIZE_MAX;
 }
 #endif
_
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help