Re: [PATCH net-next] selftests: drv-net: ncdevmem: Open /dev/udmabuf O_RDONLY

From: patchwork-bot+netdevbpf

Date: Fri Jul 24 2026 - 18:00:53 EST


Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Wed, 22 Jul 2026 13:54:42 -0700 you wrote:
> Write permissions on the /dev/udmabuf device file are not required to
> issue ioctls and allocate udmabufs. Applications should be opening this
> file as O_RDONLY. The BPF dmabuf_iter selftest already does this. [1]
>
> Users are pointing to these selftests as examples of how use udmabuf,
> and encountering permission errors on systems where write permissions
> are not available on /dev/udmabuf. Apply the principle of least
> privilege to selftests which use udmabuf by removing the write access
> mode from drivers/dma-buf/udmabuf.c and drivers/net/hw/ncdevmem.c.
>
> [...]

Here is the summary with links:
- [net-next] selftests: drv-net: ncdevmem: Open /dev/udmabuf O_RDONLY
https://git.kernel.org/netdev/net-next/c/be6f0d0bae22

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html