Thread (77 messages) 77 messages, 13 authors, 2020-04-20

Re: [PATCH 02/38] usercopy: Enhance and rename report_usercopy()

flat view

From: Christopher Lameter <hidden>
Date: 2018-01-11 17:06:56
Also in: linux-arch, linux-fsdevel, linux-mm, lkml

On Wed, 10 Jan 2018, Kees Cook wrote:
quoted hunk ↗ jump to hunk
diff --git a/mm/slab.h b/mm/slab.h
index ad657ffa44e5..7d29e69ac310 100644
--- a/mm/slab.h
+++ b/mm/slab.h
@@ -526,4 +526,10 @@ static inline int cache_random_seq_create(struct kmem_cache *cachep,
 static inline void cache_random_seq_destroy(struct kmem_cache *cachep) { }
 #endif /* CONFIG_SLAB_FREELIST_RANDOM */

+#ifdef CONFIG_HARDENED_USERCOPY
+void __noreturn usercopy_abort(const char *name, const char *detail,
+			       bool to_user, unsigned long offset,
+			       unsigned long len);
+#endif
+
 #endif /* MM_SLAB_H */
This code has nothing to do with slab allocation. Move it into
include/linux/uaccess.h where the other user space access definitions are?

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help