Merge tag 'usercopy-v4.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
Pull hardened usercopy updates from Kees Cook: "A couple hardened usercopy changes: - drop now unneeded is_vmalloc_or_module() check (Laura Abbott) - use enum instead of literals for stack frame API (Sahara)" * tag 'usercopy-v4.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux: mm/usercopy: Drop extra is_vmalloc_or_module() check usercopy: Move enum for arch_within_stack_frames()
This commit is contained in:
@@ -22,6 +22,18 @@
|
||||
#endif
|
||||
|
||||
#include <linux/bitops.h>
|
||||
|
||||
/*
|
||||
* For per-arch arch_within_stack_frames() implementations, defined in
|
||||
* asm/thread_info.h.
|
||||
*/
|
||||
enum {
|
||||
BAD_STACK = -1,
|
||||
NOT_STACK = 0,
|
||||
GOOD_FRAME,
|
||||
GOOD_STACK,
|
||||
};
|
||||
|
||||
#include <asm/thread_info.h>
|
||||
|
||||
#ifdef __KERNEL__
|
||||
|
Reference in New Issue
Block a user