lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <871plslxsw.ffs@tglx>
Date: Thu, 20 Nov 2025 12:59:27 +0100
From: Thomas Gleixner <tglx@...utronix.de>
To: Wake Liu <wakel@...gle.com>, Ingo Molnar <mingo@...hat.com>, Shuah Khan
 <shuah@...nel.org>
Cc: Peter Zijlstra <peterz@...radead.org>, Darren Hart
 <dvhart@...radead.org>, Davidlohr Bueso <dave@...olabs.net>, André Almeida
 <andrealmeid@...lia.com>, Wake Liu <wakel@...gle.com>,
 linux-kernel@...r.kernel.org, linux-kselftest@...r.kernel.org
Subject: Re: [PATCH] kselftest: futex: Fix memset with zero size warning

On Wed, Nov 19 2025 at 11:00, Wake Liu wrote:
> The `FIXTURE(args)` macro defines an empty `struct _test_data_args`,
> leading to `sizeof(struct _test_data_args)` evaluating to 0. This
> caused a build error due to a compiler warning on a `memset` call
> with a zero size argument.

Where is that memset? The only possibly related one I can find in the
kselftest harness is:

        if (sizeof(foo) > 0)
           memset(foo, 0, sizeof(foo));

If your compiler complains about that, then you need to fix your
compiler and not perfectly correct code.

You again fail to provide enough information to understand what you are
trying to "fix" including the compiler version and related built
options.

Thanks,

        tglx

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ