Hi Tim, On Sun, Jan 03, 2021 at 01:29:54AM +0100, Tim Duesterhus wrote: > tlskeys_reference was a raw `struct list` instead of a `struct tls_keys_ref` > (which contains the `struct list`). This was uncritical in this specific case, > because the `struct list` is the first member of `struct tls_keys_ref`. Thus > address of the `struct tls_keys_ref` will be identical to the pointer of the > embedded `struct list`, resulting in the correct address / pointer being > returned by `LIST_ELEM()`. (...) just to keep readers up to date regarding our side-channel discussion, the code is valid and this patch is not needed. A bug report was filed on gcc 11 about the false positive reported by the warning.
Cheers, Willy