Files
linux-rockchip/include/linux
Matthew Wilcox (Oracle) 993d0b287e usercopy: Handle vm_map_ram() areas
vmalloc does not allocate a vm_struct for vm_map_ram() areas.  That causes
us to deny usercopies from those areas.  This affects XFS which uses
vm_map_ram() for its directories.

Fix this by calling find_vmap_area() instead of find_vm_area().

Fixes: 0aef499f31 ("mm/usercopy: Detect vmalloc overruns")
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Tested-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20220612213227.3881769-2-willy@infradead.org
2022-06-13 09:54:52 -07:00
..
2022-05-22 20:44:29 +01:00
2022-06-08 14:04:14 -04:00
2022-05-20 15:29:00 -07:00
2022-05-16 13:37:59 -07:00
2022-06-03 06:52:57 -07:00
2022-06-06 09:52:17 +09:00
2022-05-19 14:08:53 -07:00
2022-05-17 13:32:46 -04:00
2022-06-10 11:29:48 +02:00
2022-05-22 21:03:01 +01:00
2022-06-02 10:15:05 -07:00
2022-05-24 08:41:18 -06:00
2022-05-31 12:45:10 -04:00
2022-06-13 09:54:52 -07:00