Re: [PATCH net v4 4/4] selftests: net: add devmem RX and TX netdev unregister tests
From: Stanislav Fomichev
Date: Thu Oct 15 2026 - 17:37:07 EST
On 10/15, Mina Almasry wrote:
> Add devmem_bind_rx_unregister_check and devmem_bind_tx_unregister_check
> to nl_netdev.py to verify that unregistering a netdevsim device while a
> netlink socket holds an active RX or TX devmem binding synchronously
> detaches the dma_buf attachment and cleanly closes the netlink socket
> without use-after-free or page faults.
>
> Add the dma-buf, udmabuf and devmem options the tests need to
> tools/testing/selftests/net/config.
>
> Cc: Tariq Toukan <tariqt@xxxxxxxxxx>
> Cc: Kaifeng Wang <kaifengw@xxxxxxxxxx>
> Assisted-by: LLM
> Signed-off-by: Mina Almasry <almasrymina@xxxxxxxxxx>
> Reviewed-by: Dragos Tatulea <dtatulea@xxxxxxxxxx>
Acked-by: Stanislav Fomichev <sdf@xxxxxxxxxxx>