From: Ivan Delalande <colona@arista.com>
To: pablo@netfilter.org, kadlec@netfilter.org
Cc: netfilter-devel@vger.kernel.org
Subject: [PATCH] netfilter: ctnetlink: revert to dumping mark regardless of event type
Date: Wed, 1 Mar 2023 18:22:18 -0800 [thread overview]
Message-ID: <20230302022218.GA195225@visor> (raw)
I assume that change was unintentional, we have userspace code that
needs the mark while listening for events like REPLY, DESTROY, etc.
Cc: <stable@vger.kernel.org>
Fixes: 1feeae071507 ("netfilter: ctnetlink: fix compilation warning after data race fixes in ct mark")
Signed-off-by: Ivan Delalande <colona@arista.com>
---
net/netfilter/nf_conntrack_netlink.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/netfilter/nf_conntrack_netlink.c b/net/netfilter/nf_conntrack_netlink.c
index c11dff91d52d..194822f8f1ee 100644
--- a/net/netfilter/nf_conntrack_netlink.c
+++ b/net/netfilter/nf_conntrack_netlink.c
@@ -831,7 +831,7 @@ ctnetlink_conntrack_event(unsigned int events, const struct nf_ct_event *item)
}
#ifdef CONFIG_NF_CONNTRACK_MARK
- if (events & (1 << IPCT_MARK) &&
+ if ((events & (1 << IPCT_MARK) || READ_ONCE(ct->mark)) &&
ctnetlink_dump_mark(skb, ct) < 0)
goto nla_put_failure;
#endif
--
Arista Networks
next reply other threads:[~2023-03-02 2:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-02 2:22 Ivan Delalande [this message]
2023-03-02 10:51 ` [PATCH] netfilter: ctnetlink: revert to dumping mark regardless of event type Florian Westphal
2023-03-02 11:12 ` Pablo Neira Ayuso
2023-03-02 11:27 ` Florian Westphal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230302022218.GA195225@visor \
--to=colona@arista.com \
--cc=kadlec@netfilter.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.