summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-09-16 09:04:00 +0200
committerGeert Uytterhoeven <geert@linux-m68k.org>2021-09-24 13:35:06 +0200
commit1dc4027bc8b524ed03c4db391cd7910eb4ee19d2 (patch)
treec1c7fe765cc11deacd137e32c20c3c508b32df27 /arch
parent0d20abde987bed05a8963c8aa4276019d54ff9e7 (diff)
downloadlinux-stable-1dc4027bc8b524ed03c4db391cd7910eb4ee19d2.tar.gz
linux-stable-1dc4027bc8b524ed03c4db391cd7910eb4ee19d2.tar.bz2
linux-stable-1dc4027bc8b524ed03c4db391cd7910eb4ee19d2.zip
m68k: Document that access_ok is broken for !CONFIG_CPU_HAS_ADDRESS_SPACES
Document that access_ok is completely broken for coldfire and friends at the moment. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Michael Schmitz <schmitzmic@gmail.com> Tested-by: Michael Schmitz <schmitzmic@gmail.com> Link: https://lore.kernel.org/r/20210916070405.52750-2-hch@lst.de Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/m68k/include/asm/uaccess.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/m68k/include/asm/uaccess.h b/arch/m68k/include/asm/uaccess.h
index f98208ccbbcd..610bfe8d64d5 100644
--- a/arch/m68k/include/asm/uaccess.h
+++ b/arch/m68k/include/asm/uaccess.h
@@ -16,6 +16,10 @@
static inline int access_ok(const void __user *addr,
unsigned long size)
{
+ /*
+ * XXX: for !CONFIG_CPU_HAS_ADDRESS_SPACES this really needs to check
+ * for TASK_SIZE!
+ */
return 1;
}