Commit ecf4392
Paolo Abeni
Merge tag 'nf-23-09-20' of https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf
Florian Westphal says:
====================
netfilter updates for net
The following three patches fix regressions in the netfilter subsystem:
1. Reject attempts to repeatedly toggle the 'dormant' flag in a single
transaction. Doing so makes nf_tables lose track of the real state
vs. the desired state. This ends with an attempt to unregister hooks
that were never registered in the first place, which yields a splat.
2. Fix element counting in the new nftables garbage collection infra
that came with 6.5: More than 255 expired elements wraps a counter
which results in memory leak.
3. Since 6.4 ipset can BUG when a set is renamed while a CREATE command
is in progress, fix from Jozsef Kadlecsik.
* tag 'nf-23-09-20' of https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf:
netfilter: ipset: Fix race between IPSET_CMD_CREATE and IPSET_CMD_SWAP
netfilter: nf_tables: fix memleak when more than 255 elements expired
netfilter: nf_tables: disable toggling dormant table state more than once
====================
Link: https://lore.kernel.org/r/20230920084156.4192-1-fw@strlen.de
Signed-off-by: Paolo Abeni <pabeni@redhat.com>3 files changed
Lines changed: 23 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1682 | 1682 | | |
1683 | 1683 | | |
1684 | 1684 | | |
1685 | | - | |
| 1685 | + | |
1686 | 1686 | | |
1687 | 1687 | | |
1688 | 1688 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
682 | 682 | | |
683 | 683 | | |
684 | 684 | | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
685 | 693 | | |
686 | 694 | | |
687 | 695 | | |
| |||
1693 | 1701 | | |
1694 | 1702 | | |
1695 | 1703 | | |
1696 | | - | |
| 1704 | + | |
1697 | 1705 | | |
1698 | 1706 | | |
1699 | 1707 | | |
1700 | | - | |
| 1708 | + | |
1701 | 1709 | | |
1702 | 1710 | | |
1703 | 1711 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1219 | 1219 | | |
1220 | 1220 | | |
1221 | 1221 | | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
1222 | 1226 | | |
1223 | 1227 | | |
1224 | 1228 | | |
| |||
9575 | 9579 | | |
9576 | 9580 | | |
9577 | 9581 | | |
| 9582 | + | |
| 9583 | + | |
9578 | 9584 | | |
9579 | 9585 | | |
9580 | 9586 | | |
| 9587 | + | |
9581 | 9588 | | |
9582 | 9589 | | |
9583 | | - | |
| 9590 | + | |
9584 | 9591 | | |
9585 | 9592 | | |
9586 | 9593 | | |
| |||
9595 | 9602 | | |
9596 | 9603 | | |
9597 | 9604 | | |
| 9605 | + | |
| 9606 | + | |
9598 | 9607 | | |
9599 | 9608 | | |
9600 | 9609 | | |
9601 | 9610 | | |
9602 | 9611 | | |
9603 | 9612 | | |
| 9613 | + | |
9604 | 9614 | | |
9605 | 9615 | | |
9606 | | - | |
| 9616 | + | |
9607 | 9617 | | |
9608 | 9618 | | |
9609 | 9619 | | |
| |||
0 commit comments