new helper: uaccess_kernel()

Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
Al Viro 2017-03-20 21:08:07 -04:00
commit db68ce10c4
32 changed files with 44 additions and 42 deletions

View file

@ -292,7 +292,7 @@ clear_user(void *addr, unsigned long size)
}
#define user_addr_max() \
(segment_eq(get_fs(), USER_DS) ? TASK_SIZE : ~0UL)
(uaccess_kernel() ? ~0UL : TASK_SIZE)
extern long strncpy_from_user(char *dest, const char __user *src, long count);