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  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]
Date:   Wed, 11 May 2022 15:15:42 -0700
From:   Jakub Kicinski <>
To:     Kees Cook <>
Cc:     "David S. Miller" <>,
        Christoph Hellwig <>,
        Paolo Abeni <>,
        Kuniyuki Iwashima <>,
        Alexei Starovoitov <>,
        Cong Wang <>,
        Al Viro <>,,,
Subject: Re: [PATCH] af_unix: Silence randstruct GCC plugin warning

On Tue, 10 May 2022 17:01:09 -0700 Kees Cook wrote:
> While preparing for Clang randstruct support (which duplicated many of
> the warnings the randstruct GCC plugin warned about), one strange one
> remained only for the randstruct GCC plugin. Eliminating this rids
> the plugin of the last exception.
> It seems the plugin is happy to dereference individual members of
> a cross-struct cast, but it is upset about casting to a whole object
> pointer. This only manifests in one place in the kernel, so just replace
> the variable with individual member accesses. There is no change in
> executable instruction output.
> Drop the last exception from the randstruct GCC plugin.
> Cc: "David S. Miller" <>
> Cc: Jakub Kicinski <>
> Cc: Christoph Hellwig <>
> Cc: Paolo Abeni <>
> Cc: Kuniyuki Iwashima <>
> Cc: Alexei Starovoitov <>
> Cc: Cong Wang <>
> Cc: Al Viro <>
> Cc:
> Cc:
> Signed-off-by: Kees Cook <>
> ---
> If someone can Ack this, I can carry it in the gcc-plugins tree,
> as I'm trying to remove all its exceptions so I can drop that code.

Acked-by: Jakub Kicinski <>

Powered by blists - more mailing lists