···2626#define __put_user_unaligned __put_user2727#endif28282929-#define VERIFY_READ 03030-#define VERIFY_WRITE 13131-3229/*3330 * The exception table consists of pairs of addresses: the first is the3431 * address of an instruction that is allowed to fault, and the second is
-3
arch/arm64/include/asm/uaccess.h
···3636#include <asm/memory.h>3737#include <asm/compiler.h>38383939-#define VERIFY_READ 04040-#define VERIFY_WRITE 14141-4239/*4340 * The exception table consists of pairs of relative offsets: the first4441 * is the relative offset to an instruction that is allowed to fault,
···2121#include <asm/processor.h>2222#include <asm/page.h>23232424-#define VERIFY_READ 02525-#define VERIFY_WRITE 12626-2724/*2825 * The fs value determines whether argument validity checking should be2926 * performed or not. If get_fs() == USER_DS, checking is performed, with
-3
arch/frv/include/asm/uaccess.h
···22222323#define __ptr(x) ((unsigned long __force *)(x))24242525-#define VERIFY_READ 02626-#define VERIFY_WRITE 12727-2825/*2926 * check that a range of addresses falls within the current address limit3027 */
-2
arch/hexagon/include/asm/uaccess.h
···5050 * reasonably simple and not *too* slow. After all, we've got the5151 * MMU for backup.5252 */5353-#define VERIFY_READ 05454-#define VERIFY_WRITE 155535654#define __access_ok(addr, size) \5755 ((get_fs().seg == KERNEL_DS.seg) || \
···1616#include <asm/page.h>1717#include <asm/setup.h>18181919-#define VERIFY_READ 02020-#define VERIFY_WRITE 12121-2219/*2320 * The fs value determines whether argument validity checking should be2421 * performed or not. If get_fs() == USER_DS, checking is performed, with
-3
arch/m68k/include/asm/uaccess_mm.h
···1010#include <linux/sched.h>1111#include <asm/segment.h>12121313-#define VERIFY_READ 01414-#define VERIFY_WRITE 11515-1613/* We let the MMU do all checking */1714static inline int access_ok(int type, const void __user *addr,1815 unsigned long size)
···66 */77#include <linux/sched.h>8899-#define VERIFY_READ 01010-#define VERIFY_WRITE 11111-129/*1310 * The fs value determines whether argument validity checking should be1411 * performed or not. If get_fs() == USER_DS, checking is performed, with
-3
arch/microblaze/include/asm/uaccess.h
···2424#include <asm/pgtable.h>2525#include <linux/string.h>26262727-#define VERIFY_READ 02828-#define VERIFY_WRITE 12929-3027/*3128 * On Microblaze the fs value is actually the top of the corresponding3229 * address space.
···1919#include <asm/page.h>2020#include <asm/errno.h>21212222-#define VERIFY_READ 02323-#define VERIFY_WRITE 12424-2522/*2623 * The fs value determines whether argument validity checking should be2724 * performed or not. If get_fs() == USER_DS, checking is performed, with
-3
arch/nios2/include/asm/uaccess.h
···19192020#include <asm/page.h>21212222-#define VERIFY_READ 02323-#define VERIFY_WRITE 12424-2522/*2623 * The exception table consists of pairs of addresses: the first is the2724 * address of an instruction that is allowed to fault, and the second is
-3
arch/openrisc/include/asm/uaccess.h
···2828#include <linux/string.h>2929#include <asm/page.h>30303131-#define VERIFY_READ 03232-#define VERIFY_WRITE 13333-3431/*3532 * The fs value determines whether argument validity checking should be3633 * performed or not. If get_fs() == USER_DS, checking is performed, with
···1111#include <asm/processor.h>1212#include <asm/page.h>13131414-#define VERIFY_READ 01515-#define VERIFY_WRITE 11616-1714/*1815 * The fs value determines whether argument validity checking should be1916 * performed or not. If get_fs() == USER_DS, checking is performed, with
-3
arch/s390/include/asm/uaccess.h
···1717#include <asm/processor.h>1818#include <asm/ctl_reg.h>19192020-#define VERIFY_READ 02121-#define VERIFY_WRITE 12222-23202421/*2522 * The fs value determines whether argument validity checking should be
···3636#define KERNEL_DS ((mm_segment_t) { ASI_P })3737#define USER_DS ((mm_segment_t) { ASI_AIUS }) /* har har har */38383939-#define VERIFY_READ 04040-#define VERIFY_WRITE 14141-4239#define get_fs() ((mm_segment_t){(current_thread_info()->current_ds)})4340#define get_ds() (KERNEL_DS)4441
-3
arch/tile/include/asm/uaccess.h
···2424#include <asm/processor.h>2525#include <asm/page.h>26262727-#define VERIFY_READ 02828-#define VERIFY_WRITE 12929-3027/*3128 * The fs value determines whether argument validity checking should be3229 * performed or not. If get_fs() == USER_DS, checking is performed, with
-3
arch/x86/include/asm/uaccess.h
···1313#include <asm/smap.h>1414#include <asm/extable.h>15151616-#define VERIFY_READ 01717-#define VERIFY_WRITE 11818-1916/*2017 * The fs value determines whether argument validity checking should be2118 * performed or not. If get_fs() == USER_DS, checking is performed, with