[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CANP3RGcB4SvNFjsHEhH20dP+hNTQ6GE9ZgpWVyPeFv7fgbJHog@mail.gmail.com>
Date: Fri, 2 Apr 2021 15:50:52 -0700
From: Maciej Żenczykowski <zenczykowski@...il.com>
To: Florian Westphal <fw@...len.de>
Cc: Pablo Neira Ayuso <pablo@...filter.org>,
Linux Network Development Mailing List
<netdev@...r.kernel.org>,
Netfilter Development Mailing List
<netfilter-devel@...r.kernel.org>,
Manoj Basapathi <manojbm@...eaurora.org>,
Subash Abhinov Kasiviswanathan <subashab@...eaurora.org>
Subject: Re: [PATCH netfilter] netfilter: xt_IDLETIMER: fix
idletimer_tg_helper non-kosher casts
> > The code is relying on the identical layout of the beginning
> > of the v0 and v1 structs, but this can easily lead to code bugs
> > if one were to try to extend this further...
>
> What is the concern? These structs are part of ABI, they
> cannot be changed.
That is a reasonable point, but there should have at *least* been
a solid comment about why this sort of cast is safe.
Powered by blists - more mailing lists