]> git.baikalelectronics.ru Git - kernel.git/commitdiff
m68k: Document that access_ok is broken for !CONFIG_CPU_HAS_ADDRESS_SPACES
authorChristoph Hellwig <hch@lst.de>
Thu, 16 Sep 2021 07:04:00 +0000 (09:04 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 24 Sep 2021 11:35:06 +0000 (13:35 +0200)
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>
arch/m68k/include/asm/uaccess.h

index f98208ccbbcd1a3ed3594f092ff0c53b11a4165f..610bfe8d64d5fb1ee7c0e6f2bcfc3c2afc25a0cf 100644 (file)
 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;
 }