]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
s390/kasan: avoid user access code instrumentation
authorVasily Gorbik <gor@linux.ibm.com>
Fri, 17 Nov 2017 16:20:28 +0000 (17:20 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 9 Oct 2018 09:21:21 +0000 (11:21 +0200)
commitb6cbe3e8bdff6f21f1b58b08a55f479cdcf98282
treecb4e8efaf03c4f7ca8a90f0a1435ac64cfe0d2ab
parent7fef92ccadd744492526d7749eebfe24dd8dcc48
s390/kasan: avoid user access code instrumentation

Kasan instrumentation adds "store" check for variables marked as
modified by inline assembly. With user pointers containing addresses
from another address space this produces false positives.

static inline unsigned long clear_user_xc(void __user *to, ...)
{
asm volatile(
...
: "+a" (to) ...

User space access functions are wrapped by manually instrumented
functions in kasan common code, which should be sufficient to catch
errors. So, we just disable uaccess.o instrumentation altogether.

Reviewed-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/lib/Makefile