Commit ace53fd
netfilter: conntrack: remove __nf_ct_unconfirmed_destroy
Its not needed anymore: A. If entry is totally new, then the rcu-protected resource must already have been removed from global visibility before call to nf_ct_iterate_destroy. B. If entry was allocated before, but is not yet in the hash table (uncofirmed case), genid gets incremented and synchronize_rcu() call makes sure access has completed. C. Next attempt to peek at extension area will fail for unconfirmed conntracks, because ext->genid != genid. D. Conntracks in the hash are iterated as before. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>1 parent 42df4fb commit ace53fd
File tree
3 files changed
+13
-39
lines changed- net/netfilter
3 files changed
+13
-39
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2457 | 2457 | | |
2458 | 2458 | | |
2459 | 2459 | | |
2460 | | - | |
2461 | | - | |
2462 | | - | |
2463 | | - | |
2464 | | - | |
2465 | | - | |
2466 | | - | |
2467 | | - | |
2468 | | - | |
2469 | | - | |
2470 | | - | |
2471 | | - | |
2472 | | - | |
2473 | | - | |
2474 | | - | |
2475 | | - | |
2476 | | - | |
2477 | | - | |
2478 | | - | |
2479 | | - | |
2480 | | - | |
2481 | | - | |
2482 | | - | |
2483 | | - | |
2484 | | - | |
2485 | | - | |
2486 | | - | |
2487 | | - | |
2488 | 2460 | | |
2489 | 2461 | | |
2490 | 2462 | | |
| |||
2527 | 2499 | | |
2528 | 2500 | | |
2529 | 2501 | | |
2530 | | - | |
2531 | 2502 | | |
2532 | 2503 | | |
2533 | 2504 | | |
2534 | 2505 | | |
2535 | 2506 | | |
2536 | 2507 | | |
2537 | | - | |
2538 | | - | |
| 2508 | + | |
| 2509 | + | |
2539 | 2510 | | |
2540 | 2511 | | |
2541 | 2512 | | |
2542 | | - | |
2543 | | - | |
| 2513 | + | |
| 2514 | + | |
| 2515 | + | |
2544 | 2516 | | |
2545 | 2517 | | |
2546 | 2518 | | |
2547 | 2519 | | |
2548 | 2520 | | |
2549 | 2521 | | |
| 2522 | + | |
| 2523 | + | |
| 2524 | + | |
| 2525 | + | |
| 2526 | + | |
| 2527 | + | |
| 2528 | + | |
| 2529 | + | |
2550 | 2530 | | |
2551 | 2531 | | |
2552 | 2532 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | 471 | | |
477 | 472 | | |
478 | 473 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
674 | 674 | | |
675 | 675 | | |
676 | 676 | | |
677 | | - | |
678 | 677 | | |
679 | 678 | | |
680 | 679 | | |
| |||
0 commit comments