]> git.ipfire.org Git - people/ms/linux.git/blobdiff - arch/arm64/include/asm/processor.h
Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64...
[people/ms/linux.git] / arch / arm64 / include / asm / processor.h
index dfefbf3fd9e3ff96f271f2307ddc3f592bef7ba2..fce604e3e5990c246db135e013c92a62d3f3bd9a 100644 (file)
@@ -116,6 +116,16 @@ struct thread_struct {
        struct debug_info       debug;          /* debugging */
 };
 
+/*
+ * Everything usercopied to/from thread_struct is statically-sized, so
+ * no hardened usercopy whitelist is needed.
+ */
+static inline void arch_thread_struct_whitelist(unsigned long *offset,
+                                               unsigned long *size)
+{
+       *offset = *size = 0;
+}
+
 #ifdef CONFIG_COMPAT
 #define task_user_tls(t)                                               \
 ({                                                                     \