Re: [PATCH net v6 0/3] Insulate Kernel Space From SOCK_ADDR Hooks

To: Jordan Rife <jrife@xxxxxxxxxx>
Subject: Re: [PATCH net v6 0/3] Insulate Kernel Space From SOCK_ADDR Hooks
Cc: davem@xxxxxxxxxxxxx, edumazet@xxxxxxxxxx, kuba@xxxxxxxxxx, pabeni@xxxxxxxxxx, willemdebruijn.kernel@xxxxxxxxx, netdev@xxxxxxxxxxxxxxx, dborkman@xxxxxxxxxx, horms@xxxxxxxxxxxx, pablo@xxxxxxxxxxxxx, kadlec@xxxxxxxxxxxxx, fw@xxxxxxxxx, santosh.shilimkar@xxxxxxxxxx, ast@xxxxxxxxxx, rdna@xxxxxx, linux-rdma@xxxxxxxxxxxxxxx, rds-devel@xxxxxxxxxxxxxx, coreteam@xxxxxxxxxxxxx, netfilter-devel@xxxxxxxxxxxxxxx, ja@xxxxxx, lvs-devel@xxxxxxxxxxxxxxx, kafai@xxxxxx, daniel@xxxxxxxxxxxxx, daan.j.demeyer@xxxxxxxxx
From: patchwork-bot+netdevbpf@xxxxxxxxxx
Date: Sun, 01 Oct 2023 18:40:25 +0000

This series was applied to netdev/net.git (main)
by David S. Miller <davem@xxxxxxxxxxxxx>:

On Tue, 26 Sep 2023 15:05:02 -0500 you wrote:
> The sock_sendmsg(), kernel_connect(), and kernel_bind() functions
> provide kernel space equivalents to the sendmsg(), connect(), and bind()
> system calls.
> When used in conjunction with BPF SOCK_ADDR hooks that rewrite the send,
> connect, or bind address, callers may observe that the address passed to
> the call is modified. This is a problem not just in theory, but in
> practice, with uninsulated calls to kernel_connect() causing issues with
> broken NFS and CIFS mounts.
> [...]

Here is the summary with links:
  - [net,v6,1/3] net: replace calls to sock->ops->connect() with 
  - [net,v6,2/3] net: prevent rewrite of msg_name and msg_namelen in 
    (no matching commit)
  - [net,v6,3/3] net: prevent address rewrite in kernel_bind()

You are awesome, thank you!
Deet-doot-dot, I am a bot.

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [PATCH net v6 0/3] Insulate Kernel Space From SOCK_ADDR Hooks, patchwork-bot+netdevbpf <=