net: ethernet: cortina: gemini: skb leak in gmac_rx() causes kernel lockup under sustained RX load
Subsystems (2)
Hi Andreas,
thanks for digging into this, I have wondered why this happens for a long time but I'm not the best net developer myself.
Quoted 5 lines · Andreas Haarmann-Thiemann
drivers/net/ethernet/cortina/gemini.c static int gmac_rx(struct napi_struct *napi, int budget) · line 1500
Quoted 10 lines
drivers/net/ethernet/cortina/gemini.c +4
-0@@ -1491,6 +1491,10 @@ static int gmac_rx(struct napi_struct *napi, int budget) gpage =gmac_get_queue_page (geth, port, mapping +PAGE_SIZE );if (!gpage) {dev_err (geth->dev,"could not find mapping\n" ); +if (skb) { +napi_free_frags (&port->napi); + skb =NULL ; + } port->stats.rx_dropped++;continue ; }
This looks right to me, can you send a proper patch, or provide your Signed-off-by in this thread so I can create a patch from this inline code?
The kernel process requires a "certificate of origin" i.e. Signed-off-by, described a bit down in this document:
https://docs.kernel.org/process/submitting-patches.html
Yours,
Linus Walleij
Hello Linus,
thank you for the confirmation!
Here is my Signed-off-by:
Please feel free to create the patch from the inline code.
Best regards,
Andreas Haarmann-Thiemann
-----Ursprüngliche Nachricht-----
Von: Linus Walleij <[email protected]>
Gesendet: Sonntag, 29. März 2026 20:54
An: Andreas Haarmann-Thiemann <[email protected]>
Cc: [email protected]; [email protected]; [email protected]
Betreff: Re: [BUG] net: ethernet: cortina: gemini: skb leak in gmac_rx() causes kernel lockup under sustained RX load
Hi Andreas,
thanks for digging into this, I have wondered why this happens for a long time but I'm not the best net developer myself.
Quoted 16 lines · Andreas Haarmann-Thiemann
drivers/net/ethernet/cortina/gemini.c +4
-0@@ -1491,6 +1491,10 @@ static int gmac_rx(struct napi_struct *napi, int budget) gpage =gmac_get_queue_page (geth, port, mapping +PAGE_SIZE );if (!gpage) {dev_err (geth->dev,"could not find mapping\n" ); +if (skb) { +napi_free_frags (&port->napi); + skb =NULL ; + } port->stats.rx_dropped++;continue ;
Quoted 1 line
}
This looks right to me, can you send a proper patch, or provide your Signed-off-by in this thread so I can create a patch from this inline code?
The kernel process requires a "certificate of origin" i.e. Signed-off-by, described a bit down in this document:
https://docs.kernel.org/process/submitting-patches.html
Yours,
Linus Walleij