Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
af_unix: Silence randstruct GCC plugin warning
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" <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Paolo Abeni <[email protected]> Cc: Alexei Starovoitov <[email protected]> Cc: Cong Wang <[email protected]> Cc: Al Viro <[email protected]> Cc: [email protected] Cc: [email protected] Acked-by: Kuniyuki Iwashima <[email protected]> Link: https://lore.kernel.org/lkml/[email protected] Acked-by: Jakub Kicinski <[email protected]> Link: https://lore.kernel.org/lkml/[email protected] Signed-off-by: Kees Cook <[email protected]>
- Loading branch information