Skip to content

Netfilter fixes for net

Pablo Neira Ayuso netdev netfilter-devel 1 version Applied

Status from this message: This series was applied to netdev/net.git (refs/heads/master):

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 0 repliesApplied 8/8

Patches in v1 All 8 applied

#Subject and filesSizeRepliesApplied
1/8netfilter: xt_SECMARK: add new revision to fix structure layoutinclude/uapi/linux/netfilter/xt_SECMARK.h net/netfilter/xt_SECMARK.c+75 -190 repliesApplied
2/8netfilter: arptables: use pernet ops struct during unregisterinclude/linux/netfilter_arp/arp_tables.h net/ipv4/netfilter/arp_tables.c net/ipv4/netfilter/arptable_filter.c+4 -60 repliesApplied
3/8netfilter: nfnetlink: add a missing rcu_read_unlock()net/netfilter/nfnetlink.c+1 -00 repliesApplied
4/8netfilter: nfnetlink_osf: Fix a missing skb_header_pointer() NULL checknet/netfilter/nfnetlink_osf.c+2 -00 repliesApplied
5/8netfilter: remove BUG_ON() after skb_header_pointer()net/netfilter/nf_conntrack_ftp.c net/netfilter/nf_conntrack_h323_main.c net/netfilter/nf_conntrack_irc.c +3 more+21 -70 repliesApplied
6/8netfilter: nftables: Fix a memleak from userdata error path in new objectsnet/netfilter/nf_tables_api.c+2 -20 repliesApplied
7/8netfilter: nftables: avoid overflows in nft_hash_buckets()net/netfilter/nft_set_hash.c+9 -10 repliesApplied
8/8netfilter: nftables: avoid potential overflows on 32bit archesnet/netfilter/nf_tables_api.c net/netfilter/nft_set_hash.c+10 -70 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net 0/8] Netfilter fixes for net

Hi,

The following patchset contains Netfilter fixes for your net tree:

1) Add SECMARK revision 1 to fix incorrect layout that prevents from remove rule with this target, from Phil Sutter.

2) Fix pernet exit path spat in arptables, from Florian Westphal.

3) Missing rcu_read_unlock() for unknown nfnetlink callbacks, reported by syzbot, from Eric Dumazet.

4) Missing check for skb_header_pointer() NULL pointer in nfnetlink_osf.

5) Remove BUG_ON() after skb_header_pointer() from packet path in several conntrack helper and the TCP tracker.

6) Fix memleak in the new object error path of userdata.

7) Avoid overflows in nft_hash_buckets(), reported by syzbot, also from Eric.

8) Avoid overflows in 32bit arches, from Eric.

Please, pull these changes from:

git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf.git

Thanks!

----------------------------------------------------------------

The following changes since commit bd1af6b5fffd36c12997bd48d61d39dc5796fa7b:

Documentation: ABI: sysfs-class-net-qmi: document pass-through file (2021-05-03 13:40:17 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf.git HEAD

for you to fetch changes up to 6c8774a94e6ad26f29ef103c8671f55c255c6201:

netfilter: nftables: avoid potential overflows on 32bit arches (2021-05-07 10:01:39 +0200)

----------------------------------------------------------------
Eric Dumazet (3):
netfilter: nfnetlink: add a missing rcu_read_unlock()
netfilter: nftables: avoid overflows in nft_hash_buckets()
netfilter: nftables: avoid potential overflows on 32bit arches

Florian Westphal (1):
netfilter: arptables: use pernet ops struct during unregister

Pablo Neira Ayuso (4):
netfilter: xt_SECMARK: add new revision to fix structure layout
netfilter: nfnetlink_osf: Fix a missing skb_header_pointer() NULL check
netfilter: remove BUG_ON() after skb_header_pointer()
netfilter: nftables: Fix a memleak from userdata error path in new objects

 include/linux/netfilter_arp/arp_tables.h  |  3 +-
 include/uapi/linux/netfilter/xt_SECMARK.h |  6 +++
 net/ipv4/netfilter/arp_tables.c           |  5 +-
 net/ipv4/netfilter/arptable_filter.c      |  2 +-
 net/netfilter/nf_conntrack_ftp.c          |  5 +-
 net/netfilter/nf_conntrack_h323_main.c    |  3 +-
 net/netfilter/nf_conntrack_irc.c          |  5 +-
 net/netfilter/nf_conntrack_pptp.c         |  4 +-
 net/netfilter/nf_conntrack_proto_tcp.c    |  6 ++-
 net/netfilter/nf_conntrack_sane.c         |  5 +-
 net/netfilter/nf_tables_api.c             | 11 ++--
 net/netfilter/nfnetlink.c                 |  1 +
 net/netfilter/nfnetlink_osf.c             |  2 +
 net/netfilter/nft_set_hash.c              | 20 ++++---
 net/netfilter/xt_SECMARK.c                | 88 ++++++++++++++++++++++++-------
 15 files changed, 124 insertions(+), 42 deletions(-)