When a timed-out entry in a `hash:net,iface` set expires, it should no longer affect matching: lookups must behave as if the entry had already been reaped by GC. As-is, the expired entry continues to shadow the broader one until GC removes the entry from the set, creating a window where matching is inconsistent with the entry's logical state. Signed-off-by: Florian Westphal --- Fails on main, but not on rhashtable v8 patches. tests/hash:net,iface.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/hash:net,iface.t b/tests/hash:net,iface.t index 6566fb407e81..c4a8de45fced 100644 --- a/tests/hash:net,iface.t +++ b/tests/hash:net,iface.t @@ -190,6 +190,8 @@ 0 ipset -T test 1.1.1.3,eth0 # Check live entry on intermediate /30 net blocks fallthrough to broader eth1 net 1 ipset -T test 1.1.1.1,eth1 +# Check expired net no longer blocks fallthrough to the broader other-interface net +0 ipset -T test 9.9.9.1,eth1 # Delete test set 0 ipset destroy test # Timeout: Check that resizing keeps timeout values -- 2.56.0