diff options
| author | Kees Cook <[email protected]> | 2025-04-26 00:11:07 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-05-08 06:39:41 +0000 |
| commit | a0309faf1cb0622cac7c820150b7abf2024acff5 (patch) | |
| tree | ab295d7b3d3e9ae86292239b8e76c90715d4a5bd /drivers/fpga/tests/fpga-mgr-test.c | |
| parent | tools/testing/selftests: fix guard region test tmpfs assumption (diff) | |
| download | kernel-a0309faf1cb0622cac7c820150b7abf2024acff5.tar.gz kernel-a0309faf1cb0622cac7c820150b7abf2024acff5.zip | |
mm: vmalloc: support more granular vrealloc() sizing
Introduce struct vm_struct::requested_size so that the requested
(re)allocation size is retained separately from the allocated area size.
This means that KASAN will correctly poison the correct spans of requested
bytes. This also means we can support growing the usable portion of an
allocation that can already be supported by the existing area's existing
allocation.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 3ddc2fefe6f3 ("mm: vmalloc: implement vrealloc()")
Signed-off-by: Kees Cook <[email protected]>
Reported-by: Erhard Furtner <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Reviewed-by: Danilo Krummrich <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: "Uladzislau Rezki (Sony)" <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-mgr-test.c')
0 files changed, 0 insertions, 0 deletions
