1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-18 12:31:11 +00:00
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: 0aef499f3172 ("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-06-03 11:48:47 -07:00
2022-06-03 11:48:47 -07:00
2022-05-10 16:03:52 +08:00
2022-06-03 11:48:47 -07:00
2022-06-05 09:12:28 -07:00
2022-05-26 14:51:38 -07:00
2022-06-02 15:23:54 -07:00
2022-05-24 14:31:29 -07:00
2022-05-22 20:44:29 +01:00
2022-06-02 15:23:54 -07:00
2022-06-03 11:48:47 -07:00
2022-05-30 11:30:16 -07:00
2022-06-08 14:04:14 -04:00
2022-06-03 10:14:48 -07:00
2022-06-03 10:25:56 -07:00
2022-05-25 12:22:58 -07:00
2022-05-20 15:29:00 -07:00
2022-05-23 17:51:12 -07:00
2022-05-16 13:37:59 -07:00
2022-06-03 11:48:47 -07:00
2022-05-25 16:18:27 -07:00
2022-06-03 11:48:47 -07:00
2022-06-03 06:52:57 -07:00
2022-05-29 10:31:36 -07:00
2022-05-13 07:20:18 -07:00
2022-05-28 11:27:17 -07:00
2022-06-03 11:48:47 -07:00
2022-05-24 19:55:07 -07:00
2022-05-02 14:06:20 -06:00
2022-05-26 14:20:14 -07:00
2022-06-06 09:52:17 +09:00
2022-05-27 21:24:19 -07:00
2022-05-03 16:09:03 -04:00
2022-05-24 13:09:13 -07:00
2022-05-19 14:08:53 -07:00
2022-05-13 07:20:17 -07:00
2022-04-28 23:16:14 -07:00
2022-05-12 10:29:41 -07:00
2022-04-28 16:31:10 +02:00
2022-05-17 13:32:46 -04:00
2022-06-04 14:04:27 -07:00
2022-05-24 10:36:38 -07:00
2022-05-24 19:55:07 -07:00
2022-06-03 11:48:47 -07:00
2022-06-10 11:29:48 +02:00
2022-05-22 21:03:01 +01:00
2022-06-03 10:34:34 -07:00
2022-06-02 10:15:05 -07:00
2022-05-08 01:33:08 -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
2022-05-26 16:57:20 -07:00