History

mm: remove usercopy_warn()

Users of usercopy_warn() were removed by commit 53944f171a89 ("mm: remove HARDENED_USERCOPY_FALLBACK") Remove it.

Christophe Leroy committed 4 years ago

Commit 6eada261 parent cb325dd2 files · +0 −13Browse files

Unified · Split

2 files
  1. include/linux/uaccess.h +0 −2
  2. mm/usercopy.c +0 −11
include/linux/uaccess.h+0−2
@@ -401,8 +401,6 @@ static inline void user_access_restore(unsigned long flags) { } · 400 unmodified lines
401401 #endif
402402
403403 #ifdef CONFIG_HARDENED_USERCOPY
404−void usercopy_warn(const char *name, const char *detail, bool to_user,
405− unsigned long offset, unsigned long len);
406404 void __noreturn usercopy_abort(const char *name, const char *detail,
407405 bool to_user, unsigned long offset,
408406 unsigned long len);
mm/usercopy.c+0−11
@@ -70,17 +70,6 @@ static noinline int check_stack_object(const void *obj, unsigned long len) · 69 unmodified lines
7070 * kmem_cache_create_usercopy() function to create the cache (and
7171 * carefully audit the whitelist range).
7272 */
73−void usercopy_warn(const char *name, const char *detail, bool to_user,
74− unsigned long offset, unsigned long len)
75−{
76− WARN_ONCE(1, "Bad or missing usercopy whitelist? Kernel memory %s attempt detected %s %s%s%s%s (offset %lu, size %lu)!\n",
77− to_user ? "exposure" : "overwrite",
78− to_user ? "from" : "to",
79− name ? : "unknown?!",
80− detail ? " '" : "", detail ? : "", detail ? "'" : "",
81− offset, len);
82−}
83−
8473 void __noreturn usercopy_abort(const char *name, const char *detail,
8574 bool to_user, unsigned long offset,
8675 unsigned long len)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t