linux/fs/smb/client
Jordan Rife c9c110ce37 smb: use kernel_connect() and kernel_bind()
commit cedc019b9f upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2023-10-10 22:00:44 +02:00
..
asn1.c smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
cached_dir.c cifs: update desired access while requesting for directory lease 2023-09-19 12:27:57 +02:00
cached_dir.h smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
cifs_debug.c smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
cifs_debug.h smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
cifs_dfs_ref.c cifs: use fs_context for automounts 2023-09-19 12:28:00 +02:00
cifs_fs_sb.h smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
cifs_ioctl.h smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
cifs_spnego.c smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
cifs_spnego.h smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
cifs_spnego_negtokeninit.asn1 smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
cifs_swn.c smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
cifs_swn.h smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
cifs_unicode.c smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
cifs_unicode.h smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
cifs_uniupr.h smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
cifsacl.c smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
cifsacl.h smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
cifsencrypt.c smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
cifsfs.c smb: client: fix warning in cifs_smb3_do_mount() 2023-08-23 17:52:22 +02:00
cifsfs.h smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
cifsglob.h cifs: Fix UAF in cifs_demultiplex_thread() 2023-10-06 14:56:42 +02:00
cifspdu.h smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
cifsproto.h cifs: fix sockaddr comparison in iface_cmp 2023-09-13 09:42:25 +02:00
cifsroot.c smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
cifssmb.c smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
connect.c smb: use kernel_connect() and kernel_bind() 2023-10-10 22:00:44 +02:00
dfs_cache.c smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
dfs_cache.h smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
dir.c smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
dns_resolve.c smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
dns_resolve.h smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
export.c smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
file.c cifs: Release folio lock on fscache read hit. 2023-08-23 17:52:39 +02:00
fs_context.c fs/smb/client: Reset password pointer to NULL 2023-10-06 14:57:05 +02:00
fs_context.h smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
fscache.c smb: propagate error code of extract_sharename() 2023-09-19 12:28:00 +02:00
fscache.h smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
inode.c smb3: correct places where ENOTSUPP is used instead of preferred EOPNOTSUPP 2023-10-06 14:56:54 +02:00
ioctl.c smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
Kconfig smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
link.c smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
Makefile smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
misc.c smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
netlink.c smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
netlink.h smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
netmisc.c smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
nterr.c smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
nterr.h smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
ntlmssp.h smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
readdir.c smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
rfc1002pdu.h smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
sess.c smb3: do not set NTLMSSP_VERSION flag for negotiate not auth request 2023-08-03 10:24:04 +02:00
smb1ops.c smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
smb2file.c smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
smb2glob.h smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
smb2inode.c smb: client: fix broken file attrs with nodfs mounts 2023-07-19 16:21:44 +02:00
smb2maperror.c smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
smb2misc.c smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
smb2ops.c smb3: correct places where ENOTSUPP is used instead of preferred EOPNOTSUPP 2023-10-06 14:56:54 +02:00
smb2pdu.c send channel sequence number in SMB3 requests after reconnects 2023-09-19 12:27:56 +02:00
smb2pdu.h smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
smb2proto.h smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
smb2status.h smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
smb2transport.c cifs: fix session state check in smb2_find_smb_ses 2023-07-23 13:49:28 +02:00
smbdirect.c smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
smbdirect.h smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
smbencrypt.c smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
smberr.h smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
trace.c smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
trace.h smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
transport.c cifs: Fix UAF in cifs_demultiplex_thread() 2023-10-06 14:56:42 +02:00
unc.c smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
winucase.c smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00
xattr.c smb: move client and server files to common directory fs/smb 2023-06-28 11:12:40 +02:00