diff options
Diffstat (limited to 'mm/usercopy.c')
-rw-r--r-- | mm/usercopy.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/mm/usercopy.c b/mm/usercopy.c index 1eba99baf1cf..a9852b24715d 100644 --- a/mm/usercopy.c +++ b/mm/usercopy.c | |||
@@ -200,17 +200,6 @@ static inline const char *check_heap_object(const void *ptr, unsigned long n, | |||
200 | { | 200 | { |
201 | struct page *page; | 201 | struct page *page; |
202 | 202 | ||
203 | /* | ||
204 | * Some architectures (arm64) return true for virt_addr_valid() on | ||
205 | * vmalloced addresses. Work around this by checking for vmalloc | ||
206 | * first. | ||
207 | * | ||
208 | * We also need to check for module addresses explicitly since we | ||
209 | * may copy static data from modules to userspace | ||
210 | */ | ||
211 | if (is_vmalloc_or_module_addr(ptr)) | ||
212 | return NULL; | ||
213 | |||
214 | if (!virt_addr_valid(ptr)) | 203 | if (!virt_addr_valid(ptr)) |
215 | return NULL; | 204 | return NULL; |
216 | 205 | ||