netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH AUTOSEL 5.16 05/52] netfilter: nf_conntrack_netbios_ns: fix helper module alias
       [not found] <20220203202947.2304-1-sashal@kernel.org>
@ 2022-02-03 20:28 ` Sasha Levin
  2022-02-03 21:46   ` Jakub Kicinski
  0 siblings, 1 reply; 4+ messages in thread
From: Sasha Levin @ 2022-02-03 20:28 UTC (permalink / raw)
  To: linux-kernel, stable
  Cc: Florian Westphal, Yi Chen, Pablo Neira Ayuso, Sasha Levin, kadlec,
	davem, kuba, netfilter-devel, coreteam, netdev

From: Florian Westphal <fw@strlen.de>

[ Upstream commit 0e906607b9c5ee22312c9af4d8adb45c617ea38a ]

The helper gets registered as 'netbios-ns', not netbios_ns.
Intentionally not adding a fixes-tag because i don't want this to go to
stable. This wasn't noticed for a very long time so no so no need to risk
regressions.

Reported-by: Yi Chen <yiche@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 net/netfilter/nf_conntrack_netbios_ns.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/net/netfilter/nf_conntrack_netbios_ns.c b/net/netfilter/nf_conntrack_netbios_ns.c
index 7f19ee2596090..55415f011943d 100644
--- a/net/netfilter/nf_conntrack_netbios_ns.c
+++ b/net/netfilter/nf_conntrack_netbios_ns.c
@@ -20,13 +20,14 @@
 #include <net/netfilter/nf_conntrack_helper.h>
 #include <net/netfilter/nf_conntrack_expect.h>
 
+#define HELPER_NAME	"netbios-ns"
 #define NMBD_PORT	137
 
 MODULE_AUTHOR("Patrick McHardy <kaber@trash.net>");
 MODULE_DESCRIPTION("NetBIOS name service broadcast connection tracking helper");
 MODULE_LICENSE("GPL");
 MODULE_ALIAS("ip_conntrack_netbios_ns");
-MODULE_ALIAS_NFCT_HELPER("netbios_ns");
+MODULE_ALIAS_NFCT_HELPER(HELPER_NAME);
 
 static unsigned int timeout __read_mostly = 3;
 module_param(timeout, uint, 0400);
@@ -44,7 +45,7 @@ static int netbios_ns_help(struct sk_buff *skb, unsigned int protoff,
 }
 
 static struct nf_conntrack_helper helper __read_mostly = {
-	.name			= "netbios-ns",
+	.name			= HELPER_NAME,
 	.tuple.src.l3num	= NFPROTO_IPV4,
 	.tuple.src.u.udp.port	= cpu_to_be16(NMBD_PORT),
 	.tuple.dst.protonum	= IPPROTO_UDP,
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH AUTOSEL 5.16 05/52] netfilter: nf_conntrack_netbios_ns: fix helper module alias
  2022-02-03 20:28 ` [PATCH AUTOSEL 5.16 05/52] netfilter: nf_conntrack_netbios_ns: fix helper module alias Sasha Levin
@ 2022-02-03 21:46   ` Jakub Kicinski
  2022-02-03 22:23     ` Florian Westphal
  0 siblings, 1 reply; 4+ messages in thread
From: Jakub Kicinski @ 2022-02-03 21:46 UTC (permalink / raw)
  To: Sasha Levin
  Cc: linux-kernel, stable, Florian Westphal, Yi Chen,
	Pablo Neira Ayuso, kadlec, davem, netfilter-devel, coreteam,
	netdev

On Thu,  3 Feb 2022 15:28:59 -0500 Sasha Levin wrote:
> Intentionally not adding a fixes-tag because i don't want this to go to
> stable. 

Ekhm. ;)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH AUTOSEL 5.16 05/52] netfilter: nf_conntrack_netbios_ns: fix helper module alias
  2022-02-03 21:46   ` Jakub Kicinski
@ 2022-02-03 22:23     ` Florian Westphal
  2022-02-11 14:41       ` Sasha Levin
  0 siblings, 1 reply; 4+ messages in thread
From: Florian Westphal @ 2022-02-03 22:23 UTC (permalink / raw)
  To: Jakub Kicinski
  Cc: Sasha Levin, linux-kernel, stable, Florian Westphal, Yi Chen,
	Pablo Neira Ayuso, kadlec, davem, netfilter-devel, coreteam,
	netdev

Jakub Kicinski <kuba@kernel.org> wrote:
> On Thu,  3 Feb 2022 15:28:59 -0500 Sasha Levin wrote:
> > Intentionally not adding a fixes-tag because i don't want this to go to
> > stable. 
> 
> Ekhm. ;)

Seems there is no way to hide fixes from stable guys :-)

Seriously, I don't think there is anything going to break here because
'modinfo nfct-helper-netbios_ns' and 'modinfo nfct-helper-netbios-ns'
return same module.

OTOH, this was noticed by pure coincidence; I don't think its
important to have it in stable.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH AUTOSEL 5.16 05/52] netfilter: nf_conntrack_netbios_ns: fix helper module alias
  2022-02-03 22:23     ` Florian Westphal
@ 2022-02-11 14:41       ` Sasha Levin
  0 siblings, 0 replies; 4+ messages in thread
From: Sasha Levin @ 2022-02-11 14:41 UTC (permalink / raw)
  To: Florian Westphal
  Cc: Jakub Kicinski, linux-kernel, stable, Yi Chen, Pablo Neira Ayuso,
	kadlec, davem, netfilter-devel, coreteam, netdev

On Thu, Feb 03, 2022 at 11:23:19PM +0100, Florian Westphal wrote:
>Jakub Kicinski <kuba@kernel.org> wrote:
>> On Thu,  3 Feb 2022 15:28:59 -0500 Sasha Levin wrote:
>> > Intentionally not adding a fixes-tag because i don't want this to go to
>> > stable.
>>
>> Ekhm. ;)
>
>Seems there is no way to hide fixes from stable guys :-)
>
>Seriously, I don't think there is anything going to break here because
>'modinfo nfct-helper-netbios_ns' and 'modinfo nfct-helper-netbios-ns'
>return same module.
>
>OTOH, this was noticed by pure coincidence; I don't think its
>important to have it in stable.

I'll drop it, thanks :)

-- 
Thanks,
Sasha

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-02-11 14:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20220203202947.2304-1-sashal@kernel.org>
2022-02-03 20:28 ` [PATCH AUTOSEL 5.16 05/52] netfilter: nf_conntrack_netbios_ns: fix helper module alias Sasha Levin
2022-02-03 21:46   ` Jakub Kicinski
2022-02-03 22:23     ` Florian Westphal
2022-02-11 14:41       ` Sasha Levin

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).