Re: [PATCH v1] x86/mm/pat: (un)track_pfn_copy() fix + improvements
From: Ingo Molnar
Date: Mon Apr 07 2025 - 15:21:55 EST
* Dan Carpenter <dan.carpenter@xxxxxxxxxx> wrote:
> > least for non-struct variables. Even for structs I would
> > zero-initialize and *maybe* allow a non-initialized opt-in for
> > cases where it matters. It matters in very few cases in praxis. And
> > don't get me started about the stupidity that is to not initialize
> > holes in struct members ...)
>
> Everyone sane uses CONFIG_INIT_STACK_ALL_ZERO these days.
Good, although why is this compiler option named so weirdly in Clang:
CC_AUTO_VAR_INIT_ZERO_ENABLER := -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang
Hopefully it is named thusly because Clang has adopted GCC's
-ftrivial-auto-var-init=zero?
Thanks,
Ingo