Re: [External] : Re: Please backport: netfilter: nft_counter: Use u64_stats_t for statistic.
Sebastian Andrzej Siewior <[email protected]> Fri, 4 Oct 2024 09:39:34 +0200
| Newsgroups | org.kernel.vger.stable-rt |
|---|---|
| Message-ID | <[email protected]> |
On 2024-09-27 15:01:00 [-0400], Joseph Salisbury wrote:
> Is it needed in all stable release patch sets, including v5.15?
Yes. I would appreciate backporting it all the way where the code is
available. The dependencies
1eacdd71b3436 ("netfilter: nft_counter: Disable BH in nft_counter_offload_stats().")
a0b39e2dc7017 ("netfilter: nft_counter: Synchronize nft_counter_reset() against reader.")
were already routed via stable.
The problem is that the seqcount has no lock associated so a reader
could preempt a writer and then lockup spinning.
Sebastian