stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Boot stalls in v4.9.y to v5.4.y stable queues
@ 2022-06-10  0:05 Guenter Roeck
  2022-06-10  1:59 ` Eric Dumazet
  0 siblings, 1 reply; 4+ messages in thread
From: Guenter Roeck @ 2022-06-10  0:05 UTC (permalink / raw)
  To: stable; +Cc: Greg Kroah-Hartman, Eric Dumazet, Sasha Levin

Hi,

all stable release queues from v4.9.y up to v5.4.y have boot stall
problems. The culprit is the backport of commit d7ea0d9df2a6 ("net:
remove two BUG() from skb_checksum_help()"), specifically the following
code.

diff --git a/net/core/dev.c b/net/core/dev.c
index 47468fc5d0c9..d725ca4d4455 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -2518,11 +2518,15 @@ int skb_checksum_help(struct sk_buff *skb)
...
-       BUG_ON(offset >= skb_headlen(skb));
+       ret = -EINVAL;
        ^^^^^^^^^^^^^^
+       if (WARN_ON_ONCE(offset >= skb_headlen(skb)))
+               goto out;
+

While that works fine in the upstream kernel since ret is subsequently
always overwritten, that is not the case in older kernels. In those,
the function now always returns -EINVAL.

Guenter

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

* Re: Boot stalls in v4.9.y to v5.4.y stable queues
  2022-06-10  0:05 Boot stalls in v4.9.y to v5.4.y stable queues Guenter Roeck
@ 2022-06-10  1:59 ` Eric Dumazet
  2022-06-10  2:08   ` Guenter Roeck
  2022-06-13  9:30   ` Greg Kroah-Hartman
  0 siblings, 2 replies; 4+ messages in thread
From: Eric Dumazet @ 2022-06-10  1:59 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: linux-stable, Greg Kroah-Hartman, Sasha Levin

On Thu, Jun 9, 2022 at 5:05 PM Guenter Roeck <linux@roeck-us.net> wrote:
>
> Hi,
>
> all stable release queues from v4.9.y up to v5.4.y have boot stall
> problems. The culprit is the backport of commit d7ea0d9df2a6 ("net:
> remove two BUG() from skb_checksum_help()"), specifically the following
> code.
>

Not sure why this patch has been backported.

It had no Fixes: tag, and was not a stable candidate.

> While that works fine in the upstream kernel since ret is subsequently
> always overwritten, that is not the case in older kernels. In those,
> the function now always returns -EINVAL.

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

* Re: Boot stalls in v4.9.y to v5.4.y stable queues
  2022-06-10  1:59 ` Eric Dumazet
@ 2022-06-10  2:08   ` Guenter Roeck
  2022-06-13  9:30   ` Greg Kroah-Hartman
  1 sibling, 0 replies; 4+ messages in thread
From: Guenter Roeck @ 2022-06-10  2:08 UTC (permalink / raw)
  To: Eric Dumazet; +Cc: linux-stable, Greg Kroah-Hartman, Sasha Levin

On 6/9/22 18:59, Eric Dumazet wrote:
> On Thu, Jun 9, 2022 at 5:05 PM Guenter Roeck <linux@roeck-us.net> wrote:
>>
>> Hi,
>>
>> all stable release queues from v4.9.y up to v5.4.y have boot stall
>> problems. The culprit is the backport of commit d7ea0d9df2a6 ("net:
>> remove two BUG() from skb_checksum_help()"), specifically the following
>> code.
>>
> 
> Not sure why this patch has been backported.
> 
> It had no Fixes: tag, and was not a stable candidate.
> 

Happens with lots of patches. Never ending discussion.

Guenter

>> While that works fine in the upstream kernel since ret is subsequently
>> always overwritten, that is not the case in older kernels. In those,
>> the function now always returns -EINVAL.


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

* Re: Boot stalls in v4.9.y to v5.4.y stable queues
  2022-06-10  1:59 ` Eric Dumazet
  2022-06-10  2:08   ` Guenter Roeck
@ 2022-06-13  9:30   ` Greg Kroah-Hartman
  1 sibling, 0 replies; 4+ messages in thread
From: Greg Kroah-Hartman @ 2022-06-13  9:30 UTC (permalink / raw)
  To: Eric Dumazet; +Cc: Guenter Roeck, linux-stable, Sasha Levin

On Thu, Jun 09, 2022 at 06:59:59PM -0700, Eric Dumazet wrote:
> On Thu, Jun 9, 2022 at 5:05 PM Guenter Roeck <linux@roeck-us.net> wrote:
> >
> > Hi,
> >
> > all stable release queues from v4.9.y up to v5.4.y have boot stall
> > problems. The culprit is the backport of commit d7ea0d9df2a6 ("net:
> > remove two BUG() from skb_checksum_help()"), specifically the following
> > code.
> >
> 
> Not sure why this patch has been backported.
> 
> It had no Fixes: tag, and was not a stable candidate.

Now dropped thanks.

greg k-h

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

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

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-10  0:05 Boot stalls in v4.9.y to v5.4.y stable queues Guenter Roeck
2022-06-10  1:59 ` Eric Dumazet
2022-06-10  2:08   ` Guenter Roeck
2022-06-13  9:30   ` Greg Kroah-Hartman

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