Re: [PATCH] macsec: defer RX SA cleanup from RCU callback to workqueue

From: albin_yang

Date: Wed May 06 2026 - 08:57:52 EST


On Wed, May 06, 2026 at 10:01:07AM +0800, alexjlzheng@xxxxxxxxxxx wrote:
> crypto_free_aead() can call vunmap() internally (e.g. via
> dma_free_attrs() in hardware crypto drivers like hisi_sec2), which
> must not be called from softirq context.
>
> free_rxsa() is an RCU callback and therefore runs in softirq context,
> causing a kernel crash when the underlying AEAD implementation
> performs DMA unmapping during tfm destruction:
>
> [...]

Looks good to me.

Reviewed-by: Wei Yang <albinwyang@xxxxxxxxxxx>