[PATCH net v3 0/4] net: Fix some callers of copy_from_sockptr()

patchwork-bot+netdevbpf at kernel.org patchwork-bot+netdevbpf at kernel.org
Thu Nov 28 00:30:37 PST 2024


Hello:

This series was applied to netdev/net.git (main)
by Paolo Abeni <pabeni at redhat.com>:

On Tue, 19 Nov 2024 14:31:39 +0100 you wrote:
> Some callers misinterpret copy_from_sockptr()'s return value. The function
> follows copy_from_user(), i.e. returns 0 for success, or the number of
> bytes not copied on error. Simply returning the result in a non-zero case
> isn't usually what was intended.
> 
> Compile tested with CONFIG_LLC, CONFIG_AF_RXRPC, CONFIG_BT enabled.
> 
> [...]

Here is the summary with links:
  - [net,v3,1/4] Bluetooth: Improve setsockopt() handling of malformed user input
    (no matching commit)
  - [net,v3,2/4] llc: Improve setsockopt() handling of malformed user input
    https://git.kernel.org/netdev/net/c/1465036b10be
  - [net,v3,3/4] rxrpc: Improve setsockopt() handling of malformed user input
    https://git.kernel.org/netdev/net/c/020200566470
  - [net,v3,4/4] net: Comment copy_from_sockptr() explaining its behaviour
    https://git.kernel.org/netdev/net/c/49b2b973325a

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





More information about the linux-afs mailing list