stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 4.9 LTS inclusion request for "net: fix nla_strcmp to handle more then one trailing null character"
@ 2022-06-10 12:50 Maciej Żenczykowski
  2022-06-10 13:01 ` Sasha Levin
  0 siblings, 1 reply; 2+ messages in thread
From: Maciej Żenczykowski @ 2022-06-10 12:50 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Sasha Levin, stable, Greg Kroah-Hartman

Please pull into 4.9 LTS:

https://gitlab.arm.com/linux-arm/linux-power/-/commit/2c16db6c92b0ee4aa61e88366df82169e83c3f7e
"net: fix nla_strcmp to handle more then one trailing null character"

+++ lib/nlattr.c
@@ -379,7 +379,7 @@ int nla_strcmp(const struct nlattr *nla, const char *str)
-       if (attrlen > 0 && buf[attrlen - 1] == '\0')
+       while (attrlen > 0 && buf[attrlen - 1] == '\0')

which appears to be present in 4.14.233 (and presumably newer LTS),
but not in 4.9:

$ git log --oneline -n1
remotes/linux-stable/v4.14.233..143722a05028ebb8691d349007f85656a4e90a8e

We've got some code that is confirmed failing due to the lack of this one-liner,
and the fix is obvious enough...

(assuming it applies it presumably wouldn't hurt in 4.4 LTS either,
but I think that tree isn't even maintained, and I don't care about it
there)

Thanks,

Maciej Żenczykowski, Kernel Networking Developer @ Google

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

* Re: 4.9 LTS inclusion request for "net: fix nla_strcmp to handle more then one trailing null character"
  2022-06-10 12:50 4.9 LTS inclusion request for "net: fix nla_strcmp to handle more then one trailing null character" Maciej Żenczykowski
@ 2022-06-10 13:01 ` Sasha Levin
  0 siblings, 0 replies; 2+ messages in thread
From: Sasha Levin @ 2022-06-10 13:01 UTC (permalink / raw)
  To: Maciej Żenczykowski
  Cc: Greg Kroah-Hartman, Sasha Levin, stable, Greg Kroah-Hartman

On Fri, Jun 10, 2022 at 05:50:55AM -0700, Maciej Żenczykowski wrote:
>Please pull into 4.9 LTS:
>
>https://gitlab.arm.com/linux-arm/linux-power/-/commit/2c16db6c92b0ee4aa61e88366df82169e83c3f7e
>"net: fix nla_strcmp to handle more then one trailing null character"
>
>+++ lib/nlattr.c
>@@ -379,7 +379,7 @@ int nla_strcmp(const struct nlattr *nla, const char *str)
>-       if (attrlen > 0 && buf[attrlen - 1] == '\0')
>+       while (attrlen > 0 && buf[attrlen - 1] == '\0')
>
>which appears to be present in 4.14.233 (and presumably newer LTS),
>but not in 4.9:
>
>$ git log --oneline -n1
>remotes/linux-stable/v4.14.233..143722a05028ebb8691d349007f85656a4e90a8e
>
>We've got some code that is confirmed failing due to the lack of this one-liner,
>and the fix is obvious enough...

Queued up, thanks!

>(assuming it applies it presumably wouldn't hurt in 4.4 LTS either,
>but I think that tree isn't even maintained, and I don't care about it
>there)

No, no one cares :)

-- 
Thanks,
Sasha

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

end of thread, other threads:[~2022-06-10 13:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-10 12:50 4.9 LTS inclusion request for "net: fix nla_strcmp to handle more then one trailing null character" Maciej Żenczykowski
2022-06-10 13:01 ` 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).