]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
build: initialize stack variables to zero by default
authorDarrick J. Wong <djwong@kernel.org>
Mon, 3 Feb 2025 22:00:32 +0000 (14:00 -0800)
committerZorro Lang <zlang@kernel.org>
Tue, 18 Feb 2025 04:42:40 +0000 (12:42 +0800)
commita553e7eba1cfcc079273e83b7c3ec38faeae41c1
tree17b71312d625ec71ac0809158de3c71c3580a462
parent1c67e8b191feb46e6c05a9f16b47ac25de231456
build: initialize stack variables to zero by default

Newer versions of gcc and clang can include the ability to zero stack
variables by default.  Let's enable it so that we (a) reduce the risk of
writing stack contents to disk somewhere and (b) try to reduce
unpredictable program behavior based on random stack contents.  The
kernel added this 6 years ago, so I think it's mature enough for
fstests.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
configure.ac
include/builddefs.in
m4/package_libcdev.m4