linux/fs/smb
Jordan Rife cedc019b9f smb: use kernel_connect() and kernel_bind()
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@vger.kernel.org> # 6.0+
Signed-off-by: Jordan Rife <jrife@google.com>
Acked-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
2023-10-04 16:18:27 -05:00
..
client smb: use kernel_connect() and kernel_bind() 2023-10-04 16:18:27 -05:00
common smb3: fix minor typo in SMB2_GLOBAL_CAP_LARGE_MTU 2023-09-08 19:01:16 -05:00
server ksmbd: check iov vector index in ksmbd_conn_write() 2023-09-21 14:41:06 -05:00
Kconfig
Makefile