Commit f24d8ab
netfilter: nft_set_pipapo: walk over current view on netlink dump
commit 29b359c upstream.
The generation mask can be updated while netlink dump is in progress.
The pipapo set backend walk iterator cannot rely on it to infer what
view of the datastructure is to be used. Add notation to specify if user
wants to read/update the set.
Based on patch from Florian Westphal.
Fixes: 2b84e21 ("netfilter: nft_set_pipapo: .walk does not deal with generations")
Signed-off-by: Pablo Neira Ayuso <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent 94d6fe6 commit f24d8ab
File tree
3 files changed
+21
-2
lines changed- include/net/netfilter
- net/netfilter
3 files changed
+21
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
300 | 312 | | |
301 | 313 | | |
302 | 314 | | |
| 315 | + | |
303 | 316 | | |
304 | 317 | | |
305 | 318 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
628 | 628 | | |
629 | 629 | | |
630 | 630 | | |
| 631 | + | |
631 | 632 | | |
632 | 633 | | |
633 | 634 | | |
| |||
5392 | 5393 | | |
5393 | 5394 | | |
5394 | 5395 | | |
| 5396 | + | |
5395 | 5397 | | |
5396 | 5398 | | |
5397 | 5399 | | |
| |||
5467 | 5469 | | |
5468 | 5470 | | |
5469 | 5471 | | |
| 5472 | + | |
5470 | 5473 | | |
5471 | 5474 | | |
5472 | 5475 | | |
| |||
5845 | 5848 | | |
5846 | 5849 | | |
5847 | 5850 | | |
| 5851 | + | |
5848 | 5852 | | |
5849 | 5853 | | |
5850 | 5854 | | |
| |||
7246 | 7250 | | |
7247 | 7251 | | |
7248 | 7252 | | |
| 7253 | + | |
7249 | 7254 | | |
7250 | 7255 | | |
7251 | 7256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2037 | 2037 | | |
2038 | 2038 | | |
2039 | 2039 | | |
2040 | | - | |
2041 | 2040 | | |
2042 | 2041 | | |
2043 | 2042 | | |
2044 | 2043 | | |
| 2044 | + | |
| 2045 | + | |
2045 | 2046 | | |
2046 | | - | |
| 2047 | + | |
2047 | 2048 | | |
2048 | 2049 | | |
2049 | 2050 | | |
| |||
0 commit comments