Thread (3 messages) flat view 3 messages, 2 authors, 18d ago

Re: [PATCH 1/2] staging: octeon: fix use-after-free in tasklet teardown

From: Greg KH <gregkh@linuxfoundation.org>
Date: 2026-09-07 16:31:35
Also in: linux-kernel-mentees, lkml

On Sat, Sep 05, 2026 at 09:05:29PM +0530, Ayush Mukkanwar wrote:
cvm_oct_tx_shutdown() kills the tx cleanup tasklet while
the net devices are still registered. This could lead
to use-after-free when a tasklet is scheduled after the
tasklet_kill() is called which might run after the net
devices are freed.
Fix it by unregistering the net devices before the tasklet
is killed.

Fixes: 4898c560103f ("Staging: Octeon:  Free transmit SKBs in a timely manner")
Reported-by: Sashiko <sashiko-bot@kernel.org>
Closes: https://sashiko.dev/#/message/20260615172734.42038-1-ayushmukkanwar%40gmail.com
Signed-off-by: Ayush Mukkanwar <redacted>
---
Note: This patch has only been compile tested. No runtime testing was
performed as I do not have access to Octeon hardware.
Please wait until you have the hardware, as the sashiko review comments
say there are still issues with this patch series :(

thanks,

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help