Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
5e6039d8
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
5e6039d8
编写于
12月 27, 2016
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
uaccess: move VERIFY_{READ,WRITE} definitions to linux/uaccess.h
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
c1ae3cfa
变更
31
隐藏空白更改
内联
并排
Showing
31 changed file
with
4 addition
and
89 deletion
+4
-89
arch/alpha/include/asm/uaccess.h
arch/alpha/include/asm/uaccess.h
+0
-3
arch/arm/include/asm/uaccess.h
arch/arm/include/asm/uaccess.h
+0
-3
arch/arm64/include/asm/uaccess.h
arch/arm64/include/asm/uaccess.h
+0
-3
arch/avr32/include/asm/uaccess.h
arch/avr32/include/asm/uaccess.h
+0
-3
arch/blackfin/include/asm/uaccess.h
arch/blackfin/include/asm/uaccess.h
+0
-3
arch/cris/include/asm/uaccess.h
arch/cris/include/asm/uaccess.h
+0
-3
arch/frv/include/asm/uaccess.h
arch/frv/include/asm/uaccess.h
+0
-3
arch/hexagon/include/asm/uaccess.h
arch/hexagon/include/asm/uaccess.h
+0
-2
arch/ia64/include/asm/uaccess.h
arch/ia64/include/asm/uaccess.h
+0
-3
arch/m32r/include/asm/uaccess.h
arch/m32r/include/asm/uaccess.h
+0
-3
arch/m68k/include/asm/uaccess_mm.h
arch/m68k/include/asm/uaccess_mm.h
+0
-3
arch/m68k/include/asm/uaccess_no.h
arch/m68k/include/asm/uaccess_no.h
+0
-3
arch/metag/include/asm/uaccess.h
arch/metag/include/asm/uaccess.h
+0
-3
arch/microblaze/include/asm/uaccess.h
arch/microblaze/include/asm/uaccess.h
+0
-3
arch/mips/include/asm/uaccess.h
arch/mips/include/asm/uaccess.h
+0
-3
arch/mn10300/include/asm/uaccess.h
arch/mn10300/include/asm/uaccess.h
+0
-3
arch/nios2/include/asm/uaccess.h
arch/nios2/include/asm/uaccess.h
+0
-3
arch/openrisc/include/asm/uaccess.h
arch/openrisc/include/asm/uaccess.h
+0
-3
arch/parisc/include/asm/uaccess.h
arch/parisc/include/asm/uaccess.h
+0
-3
arch/powerpc/include/asm/uaccess.h
arch/powerpc/include/asm/uaccess.h
+0
-3
arch/s390/include/asm/uaccess.h
arch/s390/include/asm/uaccess.h
+0
-3
arch/score/include/asm/uaccess.h
arch/score/include/asm/uaccess.h
+0
-3
arch/sh/include/asm/uaccess.h
arch/sh/include/asm/uaccess.h
+0
-3
arch/sparc/include/asm/uaccess_32.h
arch/sparc/include/asm/uaccess_32.h
+0
-3
arch/sparc/include/asm/uaccess_64.h
arch/sparc/include/asm/uaccess_64.h
+0
-3
arch/tile/include/asm/uaccess.h
arch/tile/include/asm/uaccess.h
+0
-3
arch/x86/include/asm/uaccess.h
arch/x86/include/asm/uaccess.h
+0
-3
arch/xtensa/include/asm/asm-uaccess.h
arch/xtensa/include/asm/asm-uaccess.h
+0
-3
arch/xtensa/include/asm/uaccess.h
arch/xtensa/include/asm/uaccess.h
+0
-3
include/asm-generic/uaccess.h
include/asm-generic/uaccess.h
+0
-3
include/linux/uaccess.h
include/linux/uaccess.h
+4
-0
未找到文件。
arch/alpha/include/asm/uaccess.h
浏览文件 @
5e6039d8
...
...
@@ -20,9 +20,6 @@
#define KERNEL_DS ((mm_segment_t) { 0UL })
#define USER_DS ((mm_segment_t) { -0x40000000000UL })
#define VERIFY_READ 0
#define VERIFY_WRITE 1
#define get_fs() (current_thread_info()->addr_limit)
#define get_ds() (KERNEL_DS)
#define set_fs(x) (current_thread_info()->addr_limit = (x))
...
...
arch/arm/include/asm/uaccess.h
浏览文件 @
5e6039d8
...
...
@@ -26,9 +26,6 @@
#define __put_user_unaligned __put_user
#endif
#define VERIFY_READ 0
#define VERIFY_WRITE 1
/*
* The exception table consists of pairs of addresses: the first is the
* address of an instruction that is allowed to fault, and the second is
...
...
arch/arm64/include/asm/uaccess.h
浏览文件 @
5e6039d8
...
...
@@ -36,9 +36,6 @@
#include <asm/memory.h>
#include <asm/compiler.h>
#define VERIFY_READ 0
#define VERIFY_WRITE 1
/*
* The exception table consists of pairs of relative offsets: the first
* is the relative offset to an instruction that is allowed to fault,
...
...
arch/avr32/include/asm/uaccess.h
浏览文件 @
5e6039d8
...
...
@@ -11,9 +11,6 @@
#include <linux/errno.h>
#include <linux/sched.h>
#define VERIFY_READ 0
#define VERIFY_WRITE 1
typedef
struct
{
unsigned
int
is_user_space
;
}
mm_segment_t
;
...
...
arch/blackfin/include/asm/uaccess.h
浏览文件 @
5e6039d8
...
...
@@ -29,9 +29,6 @@ static inline void set_fs(mm_segment_t fs)
#define segment_eq(a, b) ((a) == (b))
#define VERIFY_READ 0
#define VERIFY_WRITE 1
#define access_ok(type, addr, size) _access_ok((unsigned long)(addr), (size))
/*
...
...
arch/cris/include/asm/uaccess.h
浏览文件 @
5e6039d8
...
...
@@ -21,9 +21,6 @@
#include <asm/processor.h>
#include <asm/page.h>
#define VERIFY_READ 0
#define VERIFY_WRITE 1
/*
* The fs value determines whether argument validity checking should be
* performed or not. If get_fs() == USER_DS, checking is performed, with
...
...
arch/frv/include/asm/uaccess.h
浏览文件 @
5e6039d8
...
...
@@ -22,9 +22,6 @@
#define __ptr(x) ((unsigned long __force *)(x))
#define VERIFY_READ 0
#define VERIFY_WRITE 1
/*
* check that a range of addresses falls within the current address limit
*/
...
...
arch/hexagon/include/asm/uaccess.h
浏览文件 @
5e6039d8
...
...
@@ -50,8 +50,6 @@
* reasonably simple and not *too* slow. After all, we've got the
* MMU for backup.
*/
#define VERIFY_READ 0
#define VERIFY_WRITE 1
#define __access_ok(addr, size) \
((get_fs().seg == KERNEL_DS.seg) || \
...
...
arch/ia64/include/asm/uaccess.h
浏览文件 @
5e6039d8
...
...
@@ -48,9 +48,6 @@
#define KERNEL_DS ((mm_segment_t) { ~0UL })
/* cf. access_ok() */
#define USER_DS ((mm_segment_t) { TASK_SIZE-1 })
/* cf. access_ok() */
#define VERIFY_READ 0
#define VERIFY_WRITE 1
#define get_ds() (KERNEL_DS)
#define get_fs() (current_thread_info()->addr_limit)
#define set_fs(x) (current_thread_info()->addr_limit = (x))
...
...
arch/m32r/include/asm/uaccess.h
浏览文件 @
5e6039d8
...
...
@@ -16,9 +16,6 @@
#include <asm/page.h>
#include <asm/setup.h>
#define VERIFY_READ 0
#define VERIFY_WRITE 1
/*
* The fs value determines whether argument validity checking should be
* performed or not. If get_fs() == USER_DS, checking is performed, with
...
...
arch/m68k/include/asm/uaccess_mm.h
浏览文件 @
5e6039d8
...
...
@@ -10,9 +10,6 @@
#include <linux/sched.h>
#include <asm/segment.h>
#define VERIFY_READ 0
#define VERIFY_WRITE 1
/* We let the MMU do all checking */
static
inline
int
access_ok
(
int
type
,
const
void
__user
*
addr
,
unsigned
long
size
)
...
...
arch/m68k/include/asm/uaccess_no.h
浏览文件 @
5e6039d8
...
...
@@ -10,9 +10,6 @@
#include <asm/segment.h>
#define VERIFY_READ 0
#define VERIFY_WRITE 1
#define access_ok(type,addr,size) _access_ok((unsigned long)(addr),(size))
/*
...
...
arch/metag/include/asm/uaccess.h
浏览文件 @
5e6039d8
...
...
@@ -6,9 +6,6 @@
*/
#include <linux/sched.h>
#define VERIFY_READ 0
#define VERIFY_WRITE 1
/*
* The fs value determines whether argument validity checking should be
* performed or not. If get_fs() == USER_DS, checking is performed, with
...
...
arch/microblaze/include/asm/uaccess.h
浏览文件 @
5e6039d8
...
...
@@ -24,9 +24,6 @@
#include <asm/pgtable.h>
#include <linux/string.h>
#define VERIFY_READ 0
#define VERIFY_WRITE 1
/*
* On Microblaze the fs value is actually the top of the corresponding
* address space.
...
...
arch/mips/include/asm/uaccess.h
浏览文件 @
5e6039d8
...
...
@@ -71,9 +71,6 @@ extern u64 __ua_limit;
#define USER_DS ((mm_segment_t) { __UA_LIMIT })
#endif
#define VERIFY_READ 0
#define VERIFY_WRITE 1
#define get_ds() (KERNEL_DS)
#define get_fs() (current_thread_info()->addr_limit)
#define set_fs(x) (current_thread_info()->addr_limit = (x))
...
...
arch/mn10300/include/asm/uaccess.h
浏览文件 @
5e6039d8
...
...
@@ -19,9 +19,6 @@
#include <asm/page.h>
#include <asm/errno.h>
#define VERIFY_READ 0
#define VERIFY_WRITE 1
/*
* The fs value determines whether argument validity checking should be
* performed or not. If get_fs() == USER_DS, checking is performed, with
...
...
arch/nios2/include/asm/uaccess.h
浏览文件 @
5e6039d8
...
...
@@ -19,9 +19,6 @@
#include <asm/page.h>
#define VERIFY_READ 0
#define VERIFY_WRITE 1
/*
* The exception table consists of pairs of addresses: the first is the
* address of an instruction that is allowed to fault, and the second is
...
...
arch/openrisc/include/asm/uaccess.h
浏览文件 @
5e6039d8
...
...
@@ -28,9 +28,6 @@
#include <linux/string.h>
#include <asm/page.h>
#define VERIFY_READ 0
#define VERIFY_WRITE 1
/*
* The fs value determines whether argument validity checking should be
* performed or not. If get_fs() == USER_DS, checking is performed, with
...
...
arch/parisc/include/asm/uaccess.h
浏览文件 @
5e6039d8
...
...
@@ -13,9 +13,6 @@
#include <linux/string.h>
#include <linux/thread_info.h>
#define VERIFY_READ 0
#define VERIFY_WRITE 1
#define KERNEL_DS ((mm_segment_t){0})
#define USER_DS ((mm_segment_t){1})
...
...
arch/powerpc/include/asm/uaccess.h
浏览文件 @
5e6039d8
...
...
@@ -11,9 +11,6 @@
#include <asm/processor.h>
#include <asm/page.h>
#define VERIFY_READ 0
#define VERIFY_WRITE 1
/*
* The fs value determines whether argument validity checking should be
* performed or not. If get_fs() == USER_DS, checking is performed, with
...
...
arch/s390/include/asm/uaccess.h
浏览文件 @
5e6039d8
...
...
@@ -17,9 +17,6 @@
#include <asm/processor.h>
#include <asm/ctl_reg.h>
#define VERIFY_READ 0
#define VERIFY_WRITE 1
/*
* The fs value determines whether argument validity checking should be
...
...
arch/score/include/asm/uaccess.h
浏览文件 @
5e6039d8
...
...
@@ -6,9 +6,6 @@
#include <linux/thread_info.h>
#include <asm/extable.h>
#define VERIFY_READ 0
#define VERIFY_WRITE 1
#define get_ds() (KERNEL_DS)
#define get_fs() (current_thread_info()->addr_limit)
#define segment_eq(a, b) ((a).seg == (b).seg)
...
...
arch/sh/include/asm/uaccess.h
浏览文件 @
5e6039d8
...
...
@@ -5,9 +5,6 @@
#include <linux/sched.h>
#include <asm/segment.h>
#define VERIFY_READ 0
#define VERIFY_WRITE 1
#define __addr_ok(addr) \
((unsigned long __force)(addr) < current_thread_info()->addr_limit.seg)
...
...
arch/sparc/include/asm/uaccess_32.h
浏览文件 @
5e6039d8
...
...
@@ -30,9 +30,6 @@
#define KERNEL_DS ((mm_segment_t) { 0 })
#define USER_DS ((mm_segment_t) { -1 })
#define VERIFY_READ 0
#define VERIFY_WRITE 1
#define get_ds() (KERNEL_DS)
#define get_fs() (current->thread.current_ds)
#define set_fs(val) ((current->thread.current_ds) = (val))
...
...
arch/sparc/include/asm/uaccess_64.h
浏览文件 @
5e6039d8
...
...
@@ -36,9 +36,6 @@
#define KERNEL_DS ((mm_segment_t) { ASI_P })
#define USER_DS ((mm_segment_t) { ASI_AIUS })
/* har har har */
#define VERIFY_READ 0
#define VERIFY_WRITE 1
#define get_fs() ((mm_segment_t){(current_thread_info()->current_ds)})
#define get_ds() (KERNEL_DS)
...
...
arch/tile/include/asm/uaccess.h
浏览文件 @
5e6039d8
...
...
@@ -24,9 +24,6 @@
#include <asm/processor.h>
#include <asm/page.h>
#define VERIFY_READ 0
#define VERIFY_WRITE 1
/*
* The fs value determines whether argument validity checking should be
* performed or not. If get_fs() == USER_DS, checking is performed, with
...
...
arch/x86/include/asm/uaccess.h
浏览文件 @
5e6039d8
...
...
@@ -13,9 +13,6 @@
#include <asm/smap.h>
#include <asm/extable.h>
#define VERIFY_READ 0
#define VERIFY_WRITE 1
/*
* The fs value determines whether argument validity checking should be
* performed or not. If get_fs() == USER_DS, checking is performed, with
...
...
arch/xtensa/include/asm/asm-uaccess.h
浏览文件 @
5e6039d8
...
...
@@ -19,9 +19,6 @@
#include <linux/errno.h>
#include <asm/types.h>
#define VERIFY_READ 0
#define VERIFY_WRITE 1
#include <asm/current.h>
#include <asm/asm-offsets.h>
#include <asm/processor.h>
...
...
arch/xtensa/include/asm/uaccess.h
浏览文件 @
5e6039d8
...
...
@@ -20,9 +20,6 @@
#include <linux/prefetch.h>
#include <asm/types.h>
#define VERIFY_READ 0
#define VERIFY_WRITE 1
#include <linux/sched.h>
/*
...
...
include/asm-generic/uaccess.h
浏览文件 @
5e6039d8
...
...
@@ -35,9 +35,6 @@ static inline void set_fs(mm_segment_t fs)
#define segment_eq(a, b) ((a).seg == (b).seg)
#endif
#define VERIFY_READ 0
#define VERIFY_WRITE 1
#define access_ok(type, addr, size) __access_ok((unsigned long)(addr),(size))
/*
...
...
include/linux/uaccess.h
浏览文件 @
5e6039d8
...
...
@@ -2,6 +2,10 @@
#define __LINUX_UACCESS_H__
#include <linux/sched.h>
#define VERIFY_READ 0
#define VERIFY_WRITE 1
#include <asm/uaccess.h>
static
__always_inline
void
pagefault_disabled_inc
(
void
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录