* [PATCH net 0/2] Netfilter/IPVS fixes for net
@ 2021-11-01 22:15 Pablo Neira Ayuso
2021-11-01 22:15 ` [PATCH net 1/2] netfilter: nfnetlink_queue: fix OOB when mac header was cleared Pablo Neira Ayuso
2021-11-01 22:15 ` [PATCH net 2/2] ipvs: autoload ipvs on genl access Pablo Neira Ayuso
0 siblings, 2 replies; 7+ messages in thread
From: Pablo Neira Ayuso @ 2021-11-01 22:15 UTC (permalink / raw)
To: netfilter-devel; +Cc: davem, netdev, kuba
Hi,
The following patchset contains Netfilter/IPVS fixes for net:
1) Fix mac address UAF reported by KASAN in nfnetlink_queue,
from Florian Westphal.
2) Autoload genetlink IPVS on demand, from Thomas Weissschuh.
Please, pull these changes from:
git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf.git
Thanks.
----------------------------------------------------------------
The following changes since commit 64222515138e43da1fcf288f0289ef1020427b87:
Merge tag 'drm-fixes-2021-10-22' of git://anongit.freedesktop.org/drm/drm (2021-10-21 19:06:08 -1000)
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 2199f562730dd1382946e0a2532afc38cd444129:
ipvs: autoload ipvs on genl access (2021-10-22 14:10:17 +0200)
----------------------------------------------------------------
Florian Westphal (1):
netfilter: nfnetlink_queue: fix OOB when mac header was cleared
Thomas Weißschuh (1):
ipvs: autoload ipvs on genl access
net/netfilter/ipvs/ip_vs_ctl.c | 2 ++
net/netfilter/nfnetlink_queue.c | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
^ permalink raw reply [flat|nested] 7+ messages in thread* [PATCH net 1/2] netfilter: nfnetlink_queue: fix OOB when mac header was cleared
2021-11-01 22:15 [PATCH net 0/2] Netfilter/IPVS fixes for net Pablo Neira Ayuso
@ 2021-11-01 22:15 ` Pablo Neira Ayuso
2021-11-03 1:20 ` patchwork-bot+netdevbpf
2021-11-01 22:15 ` [PATCH net 2/2] ipvs: autoload ipvs on genl access Pablo Neira Ayuso
1 sibling, 1 reply; 7+ messages in thread
From: Pablo Neira Ayuso @ 2021-11-01 22:15 UTC (permalink / raw)
To: netfilter-devel; +Cc: davem, netdev, kuba
From: Florian Westphal <fw@strlen.de>
On 64bit platforms the MAC header is set to 0xffff on allocation and
also when a helper like skb_unset_mac_header() is called.
dev_parse_header may call skb_mac_header() which assumes valid mac offset:
BUG: KASAN: use-after-free in eth_header_parse+0x75/0x90
Read of size 6 at addr ffff8881075a5c05 by task nf-queue/1364
Call Trace:
memcpy+0x20/0x60
eth_header_parse+0x75/0x90
__nfqnl_enqueue_packet+0x1a61/0x3380
__nf_queue+0x597/0x1300
nf_queue+0xf/0x40
nf_hook_slow+0xed/0x190
nf_hook+0x184/0x440
ip_output+0x1c0/0x2a0
nf_reinject+0x26f/0x700
nfqnl_recv_verdict+0xa16/0x18b0
nfnetlink_rcv_msg+0x506/0xe70
The existing code only works if the skb has a mac header.
Fixes: 2c38de4c1f8da7 ("netfilter: fix looped (broad|multi)cast's MAC handling")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
net/netfilter/nfnetlink_queue.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/netfilter/nfnetlink_queue.c b/net/netfilter/nfnetlink_queue.c
index 4c3fbaaeb103..4acc4b8e9fe5 100644
--- a/net/netfilter/nfnetlink_queue.c
+++ b/net/netfilter/nfnetlink_queue.c
@@ -560,7 +560,7 @@ nfqnl_build_packet_message(struct net *net, struct nfqnl_instance *queue,
goto nla_put_failure;
if (indev && entskb->dev &&
- entskb->mac_header != entskb->network_header) {
+ skb_mac_header_was_set(entskb)) {
struct nfqnl_msg_packet_hw phw;
int len;
--
2.30.2
^ permalink raw reply related [flat|nested] 7+ messages in thread* [PATCH net 2/2] ipvs: autoload ipvs on genl access
2021-11-01 22:15 [PATCH net 0/2] Netfilter/IPVS fixes for net Pablo Neira Ayuso
2021-11-01 22:15 ` [PATCH net 1/2] netfilter: nfnetlink_queue: fix OOB when mac header was cleared Pablo Neira Ayuso
@ 2021-11-01 22:15 ` Pablo Neira Ayuso
1 sibling, 0 replies; 7+ messages in thread
From: Pablo Neira Ayuso @ 2021-11-01 22:15 UTC (permalink / raw)
To: netfilter-devel; +Cc: davem, netdev, kuba
From: Thomas Weißschuh <linux@weissschuh.net>
The kernel provides the functionality to automatically load modules
providing genl families. Use this to remove the need for users to
manually load the module.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Julian Anastasov <ja@ssi.bg>
Acked-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
net/netfilter/ipvs/ip_vs_ctl.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c
index 29ec3ef63edc..0ff94c66641f 100644
--- a/net/netfilter/ipvs/ip_vs_ctl.c
+++ b/net/netfilter/ipvs/ip_vs_ctl.c
@@ -48,6 +48,8 @@
#include <net/ip_vs.h>
+MODULE_ALIAS_GENL_FAMILY(IPVS_GENL_NAME);
+
/* semaphore for IPVS sockopts. And, [gs]etsockopt may sleep. */
static DEFINE_MUTEX(__ip_vs_mutex);
--
2.30.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH net 0/2] Netfilter/IPVS fixes for net
@ 2024-04-25 9:01 Pablo Neira Ayuso
0 siblings, 0 replies; 7+ messages in thread
From: Pablo Neira Ayuso @ 2024-04-25 9:01 UTC (permalink / raw)
To: netfilter-devel; +Cc: davem, netdev, kuba, pabeni, edumazet, fw
Hi,
The following patchset contains two Netfilter/IPVS fixes for net:
Patch #1 fixes SCTP checksumming for IPVS with gso packets,
from Ismael Luceno.
Patch #2 honor dormant flag from netdev event path to fix a possible
double hook unregistration.
Please, pull these changes from:
git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git nf-24-04-25
Thanks.
----------------------------------------------------------------
The following changes since commit a9176f7c66f0f438dfd9a1a6c86ca7b73280a494:
Merge branch 'mlxsw-fixes' (2024-04-19 20:43:17 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git nf-24-04-25
for you to fetch changes up to 8e30abc9ace4f0add4cd761dfdbfaebae5632dd2:
netfilter: nf_tables: honor table dormant flag from netdev release event path (2024-04-25 10:42:57 +0200)
----------------------------------------------------------------
netfilter pull request 24-04-25
----------------------------------------------------------------
Ismael Luceno (1):
ipvs: Fix checksumming on GSO of SCTP packets
Pablo Neira Ayuso (1):
netfilter: nf_tables: honor table dormant flag from netdev release event path
net/netfilter/ipvs/ip_vs_proto_sctp.c | 6 ++++--
net/netfilter/nft_chain_filter.c | 4 +++-
2 files changed, 7 insertions(+), 3 deletions(-)
^ permalink raw reply [flat|nested] 7+ messages in thread* [PATCH net 0/2] Netfilter/IPVS fixes for net
@ 2024-12-18 23:41 Pablo Neira Ayuso
0 siblings, 0 replies; 7+ messages in thread
From: Pablo Neira Ayuso @ 2024-12-18 23:41 UTC (permalink / raw)
To: netfilter-devel; +Cc: davem, netdev, kuba, pabeni, edumazet, fw
Hi,
The following series contains two fixes for Netfilter/IPVS:
1) Possible build failure in IPVS on systems with less than 512MB
memory due to incorrect use of clamp(), from David Laight.
2) Fix bogus lockdep nesting splat with ipset list:set type,
from Phil Sutter.
Please, pull these changes from:
git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git nf-24-12-19
Thanks.
----------------------------------------------------------------
The following changes since commit 954a2b40719a21e763a1bba2f0da92347e058fce:
rtnetlink: Try the outer netns attribute in rtnl_get_peer_net(). (2024-12-17 17:54:18 -0800)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git tags/nf-24-12-19
for you to fetch changes up to 70b6f46a4ed8bd56c85ffff22df91e20e8c85e33:
netfilter: ipset: Fix for recursive locking warning (2024-12-19 00:28:47 +0100)
----------------------------------------------------------------
netfilter pull request 24-12-19
----------------------------------------------------------------
David Laight (1):
ipvs: Fix clamp() of ip_vs_conn_tab on small memory systems
Phil Sutter (1):
netfilter: ipset: Fix for recursive locking warning
net/netfilter/ipset/ip_set_list_set.c | 3 +++
net/netfilter/ipvs/ip_vs_conn.c | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)
^ permalink raw reply [flat|nested] 7+ messages in thread* [PATCH net 0/2] Netfilter/IPVS fixes for net
@ 2025-05-07 22:19 Pablo Neira Ayuso
0 siblings, 0 replies; 7+ messages in thread
From: Pablo Neira Ayuso @ 2025-05-07 22:19 UTC (permalink / raw)
To: netfilter-devel; +Cc: davem, netdev, kuba, pabeni, edumazet, fw, horms
Hi,
The following patchset contain Netfilter/IPVS fixes for net:
1) Fix KMSAN uninit-value in do_output_route4, reported by syzbot.
Patch from Julian Anastasov.
2) ipset hashtable set type breaks up the hashtable into regions of
2^10 buckets. Fix the macro that determines the hashtable lock
region to protect concurrent updates. From Jozsef Kadlecsik.
Please, pull these changes from:
git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git nf-25-05-08
Thanks.
----------------------------------------------------------------
The following changes since commit 9540984da649d46f699c47f28c68bbd3c9d99e4c:
Merge tag 'wireless-2025-05-06' of https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless (2025-05-06 19:06:50 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git tags/nf-25-05-08
for you to fetch changes up to 8478a729c0462273188263136880480729e9efca:
netfilter: ipset: fix region locking in hash types (2025-05-07 23:57:31 +0200)
----------------------------------------------------------------
netfilter pull request 25-05-08
----------------------------------------------------------------
Jozsef Kadlecsik (1):
netfilter: ipset: fix region locking in hash types
Julian Anastasov (1):
ipvs: fix uninit-value for saddr in do_output_route4
net/netfilter/ipset/ip_set_hash_gen.h | 2 +-
net/netfilter/ipvs/ip_vs_xmit.c | 27 ++++++++-------------------
2 files changed, 9 insertions(+), 20 deletions(-)
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-05-07 22:20 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-01 22:15 [PATCH net 0/2] Netfilter/IPVS fixes for net Pablo Neira Ayuso
2021-11-01 22:15 ` [PATCH net 1/2] netfilter: nfnetlink_queue: fix OOB when mac header was cleared Pablo Neira Ayuso
2021-11-03 1:20 ` patchwork-bot+netdevbpf
2021-11-01 22:15 ` [PATCH net 2/2] ipvs: autoload ipvs on genl access Pablo Neira Ayuso
-- strict thread matches above, loose matches on Subject: below --
2024-04-25 9:01 [PATCH net 0/2] Netfilter/IPVS fixes for net Pablo Neira Ayuso
2024-12-18 23:41 Pablo Neira Ayuso
2025-05-07 22:19 Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).