diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2023-08-29 00:04:55 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2023-08-29 00:04:55 +0300 |
commit | 6bfce7759c46132154301a742b54a64ff97b498c (patch) | |
tree | 68f37a08f962397a540070c5d972cb391df2da0e /include | |
parent | b98af53cb07a69a08ffd8cca29a449f1e7de4837 (diff) | |
parent | 1dfe3a5a7cefbe2162cecb759f3933baea22c393 (diff) | |
download | linux-6bfce7759c46132154301a742b54a64ff97b498c.tar.xz |
Merge tag 'core-entry-2023-08-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull core entry code update from Thomas Gleixner:
"A single update to the core entry code, which removes the empty user
address limit check which is a leftover of the removed TIF_FSCHECK"
* tag 'core-entry-2023-08-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
entry: Remove empty addr_limit_user_check()
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/syscalls.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index 5690aef7b3a8..c0cb22cd607d 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h @@ -284,22 +284,6 @@ static inline int is_syscall_trace_event(struct trace_event_call *tp_event) #endif /* - * Called before coming back to user-mode. Returning to user-mode with an - * address limit different than USER_DS can allow to overwrite kernel memory. - */ -static inline void addr_limit_user_check(void) -{ -#ifdef TIF_FSCHECK - if (!test_thread_flag(TIF_FSCHECK)) - return; -#endif - -#ifdef TIF_FSCHECK - clear_thread_flag(TIF_FSCHECK); -#endif -} - -/* * These syscall function prototypes are kept in the same order as * include/uapi/asm-generic/unistd.h. Architecture specific entries go below, * followed by deprecated or obsolete system calls. |