diff options
author | 2025-05-15 14:42:16 -0700 | |
---|---|---|
committer | 2025-05-25 00:53:48 -0700 | |
commit | 70d1eb031a68cbde4eed8099674be21778441c94 (patch) | |
tree | c3801b634218042c05aa475d664bc9f43d079226 /scripts/lib/kdoc/kdoc_parser.py | |
parent | mm: vmalloc: actually use the in-place vrealloc region (diff) | |
download | linux-rng-70d1eb031a68cbde4eed8099674be21778441c94.tar.xz linux-rng-70d1eb031a68cbde4eed8099674be21778441c94.zip |
mm: vmalloc: only zero-init on vrealloc shrink
The common case is to grow reallocations, and since init_on_alloc will
have already zeroed the whole allocation, we only need to zero when
shrinking the allocation.
Link: https://lkml.kernel.org/r/20250515214217.619685-2-kees@kernel.org
Fixes: a0309faf1cb0 ("mm: vmalloc: support more granular vrealloc() sizing")
Signed-off-by: Kees Cook <kees@kernel.org>
Tested-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
Cc: Danilo Krummrich <dakr@kernel.org>
Cc: Eduard Zingerman <eddyz87@gmail.com>
Cc: "Erhard F." <erhard_f@mailbox.org>
Cc: Shung-Hsi Yu <shung-hsi.yu@suse.com>
Cc: "Uladzislau Rezki (Sony)" <urezki@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions