Files
linux/mm
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-19 14:08:55 -07:00
2022-03-24 19:06:45 -07:00
2022-06-09 16:24:25 -04:00
2022-05-13 07:20:09 -07:00
2022-02-14 19:51:47 +01:00
2022-05-25 10:47:48 -07:00
2022-05-19 14:08:53 -07:00
2022-05-13 07:20:09 -07:00
2021-05-07 00:26:35 -07:00
2022-05-09 23:12:53 -04:00
2022-06-13 09:54:52 -07:00
2022-06-13 09:54:52 -07:00
2022-01-15 16:30:31 +02:00
2022-05-19 14:08:53 -07:00