[PATCH] smb: use kernel_connect() and kernel_bind()
Paulo Alcantara
pc at manguebit.com
Wed Oct 4 15:44:17 UTC 2023
Jordan Rife <jrife at google.com> writes:
> Recent changes to kernel_connect() and kernel_bind() ensure that
> callers are insulated from changes to the address parameter made by BPF
> SOCK_ADDR hooks. This patch wraps direct calls to ops->connect() and
> ops->bind() with kernel_connect() and kernel_bind() to ensure that SMB
> mounts do not see their mount address overwritten in such cases.
>
> Link: https://lore.kernel.org/netdev/9944248dba1bce861375fcce9de663934d933ba9.camel@redhat.com/
> Cc: <stable at vger.kernel.org> # 6.x.y
> Signed-off-by: Jordan Rife <jrife at google.com>
> ---
> fs/smb/client/connect.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
Acked-by: Paulo Alcantara (SUSE) <pc at manguebit.com>
More information about the samba-technical
mailing list