diff options
author | Jeremy Sowden <jeremy@azazel.net> | 2022-03-28 01:36:25 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-03-30 00:33:46 +0300 |
commit | 31818213170caa51d116eb5dc1167b88523b4fe1 (patch) | |
tree | 28eae9229951fcc7d54edce9b416e0fdfc0b6502 /net/netfilter/nft_counter.c | |
parent | ad7da1ce5749c0eb4f09dd7e5510123be56f10fb (diff) | |
download | linux-31818213170caa51d116eb5dc1167b88523b4fe1.tar.xz |
netfilter: bitwise: fix reduce comparisons
The `nft_bitwise_reduce` and `nft_bitwise_fast_reduce` functions should
compare the bitwise operation in `expr` with the tracked operation
associated with the destination register of `expr`. However, instead of
being called on `expr` and `track->regs[priv->dreg].selector`,
`nft_expr_priv` is called on `expr` twice, so both reduce functions
return true even when the operations differ.
Fixes: be5650f8f47e ("netfilter: nft_bitwise: track register operations")
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nft_counter.c')
0 files changed, 0 insertions, 0 deletions