kernel-hacking-2024-linux-s.../fs/cifs
Volker Lendecke a152d05ae4 cifs: Fix uninitialized memory read for smb311 posix symlink create
If smb311 posix is enabled, we send the intended mode for file
creation in the posix create context. Instead of using what's there on
the stack, create the mfsymlink file with 0644.

Fixes: ce558b0e17 ("smb3: Add posix create context for smb3.11 posix mounts")
Cc: stable@vger.kernel.org
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Tom Talpey <tom@talpey.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
2023-01-12 09:51:48 -06:00
..
asn1.c
cached_dir.c cifs: drop the lease for cached directories on rmdir or rename 2022-10-19 17:57:41 -05:00
cached_dir.h cifs: drop the lease for cached directories on rmdir or rename 2022-10-19 17:57:41 -05:00
cifs_debug.c cifs: share dfs connections and supers 2022-12-19 08:03:12 -06:00
cifs_debug.h
cifs_dfs_ref.c cifs: use origin fullpath for automounts 2022-12-19 08:03:12 -06:00
cifs_fs_sb.h
cifs_ioctl.h cifs: minor cleanup of some headers 2022-12-12 13:08:06 -06:00
cifs_spnego.c cred: Do not default to init_cred in prepare_kernel_cred() 2022-11-01 10:04:52 -07:00
cifs_spnego.h
cifs_spnego_negtokeninit.asn1
cifs_swn.c
cifs_swn.h
cifs_unicode.c
cifs_unicode.h
cifs_uniupr.h
cifsacl.c hardening updates for v6.2-rc1 2022-12-14 12:20:00 -08:00
cifsacl.h
cifsencrypt.c cifs: fix potential memory leaks in session setup 2023-01-10 23:24:37 -06:00
cifsfs.c cifs: get rid of mount options string parsing 2022-12-19 08:03:11 -06:00
cifsfs.h cifs: update internal module number 2022-12-19 08:04:50 -06:00
cifsglob.h cifs: fix refresh of cached referrals 2022-12-19 08:03:12 -06:00
cifspdu.h cifs: fix various whitespace errors in headers 2022-12-12 13:08:22 -06:00
cifsproto.h cifs: use origin fullpath for automounts 2022-12-19 08:03:12 -06:00
cifsroot.c
cifssmb.c cifs: use stub posix acl handlers 2022-10-20 10:13:32 +02:00
connect.c cifs: do not query ifaces on smb1 mounts 2023-01-10 23:24:14 -06:00
dfs.c cifs: protect access of TCP_Server_Info::{dstaddr,hostname} 2023-01-04 09:06:53 -06:00
dfs.h cifs: use origin fullpath for automounts 2022-12-19 08:03:12 -06:00
dfs_cache.c cifs: remove redundant assignment to the variable match 2023-01-10 15:31:08 -06:00
dfs_cache.h cifs: don't block in dfs_cache_noreq_update_tgthint() 2022-12-19 08:03:12 -06:00
dir.c cifs: use origin fullpath for automounts 2022-12-19 08:03:12 -06:00
dns_resolve.c cifs: set resolved ip in sockaddr 2022-12-19 08:03:11 -06:00
dns_resolve.h cifs: set resolved ip in sockaddr 2022-12-19 08:03:11 -06:00
export.c
file.c 13 cifs/smb3 client fixes 2022-12-15 14:53:14 -08:00
fs_context.c cifs: share dfs connections and supers 2022-12-19 08:03:12 -06:00
fs_context.h cifs: share dfs connections and supers 2022-12-19 08:03:12 -06:00
fscache.c use less confusing names for iov_iter direction initializers 2022-11-25 13:01:55 -05:00
fscache.h
inode.c cifs: reduce roundtrips on create/qinfo requests 2022-12-19 08:03:11 -06:00
ioctl.c cifs: Fix wrong return value checking when GETFLAGS 2022-11-16 00:21:04 -06:00
Kconfig
link.c cifs: Fix uninitialized memory read for smb311 posix symlink create 2023-01-12 09:51:48 -06:00
Makefile cifs: get rid of mount options string parsing 2022-12-19 08:03:11 -06:00
misc.c cifs: protect access of TCP_Server_Info::{dstaddr,hostname} 2023-01-04 09:06:53 -06:00
netlink.c
netlink.h
netmisc.c
nterr.c
nterr.h
ntlmssp.h
readdir.c cifs: improve symlink handling for smb2+ 2022-10-13 09:36:04 -05:00
rfc1002pdu.h
sess.c cifs: fix potential memory leaks in session setup 2023-01-10 23:24:37 -06:00
smb1ops.c cifs: fix file info setting in cifs_open_file() 2023-01-09 13:47:02 -06:00
smb2file.c cifs: don't leak -ENOMEM in smb2_open_file() 2022-12-19 08:04:41 -06:00
smb2glob.h
smb2inode.c cifs: reduce roundtrips on create/qinfo requests 2022-12-19 08:03:11 -06:00
smb2maperror.c
smb2misc.c cifs: avoid unnecessary iteration of tcp sessions 2022-11-04 23:34:40 -05:00
smb2ops.c cifs: fix interface count calculation during refresh 2023-01-04 23:18:07 -06:00
smb2pdu.c cifs: fix potential memory leaks in session setup 2023-01-10 23:24:37 -06:00
smb2pdu.h cifs: improve symlink handling for smb2+ 2022-10-13 09:36:04 -05:00
smb2proto.h cifs: Parse owner/group for stat in smb311 posix extensions 2022-12-08 09:51:53 -06:00
smb2status.h
smb2transport.c cifs: avoid unnecessary iteration of tcp sessions 2022-11-04 23:34:40 -05:00
smbdirect.c
smbdirect.h
smbencrypt.c
smberr.h
trace.c
trace.h
transport.c use less confusing names for iov_iter direction initializers 2022-11-25 13:01:55 -05:00
unc.c
winucase.c
xattr.c cifs: use stub posix acl handlers 2022-10-20 10:13:32 +02:00