Boot stalls in v4.9.y to v5.4.y stable queues
Subsystems (2)
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.
net/core/dev.c +0 -0
@@ -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
Quoted 8 lines · Guenter Roeck
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 twoBUG()fromskb_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.
Quoted 3 lines
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.
Quoted 10 lines · Eric Dumazet
Quoted 8 lines · Guenter Roeck
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 twoBUG()fromskb_checksum_help()"), specifically the following code.
Quoted 4 lines
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
Quoted 3 lines
Quoted 3 lines
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.
Greg Kroah-Hartman
maintainerQuoted 10 lines · Eric Dumazet
Quoted 8 lines · Guenter Roeck
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 twoBUG()fromskb_checksum_help()"), specifically the following code.
Quoted 3 lines
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