linux/fs
David Howells 19eef1d98e afs: Fix uninit var in afs_alloc_anon_key()
Fix an uninitialised variable (key) in afs_alloc_anon_key() by setting it
to cell->anonymous_key.  Without this change, the error check may return a
false failure with a bad error number.

Most of the time this is unlikely to happen because the first encounter
with afs_alloc_anon_key() will usually be from (auto)mount, for which all
subsequent operations must wait - apart from other (auto)mounts.  Once the
call->anonymous_key is allocated, all further calls to afs_request_key()
will skip the call to afs_alloc_anon_key() for that cell.

Fixes: d27c712578 ("afs: Fix delayed allocation of a cell's anonymous key")
Reported-by: Paulo Alcantra <pc@manguebit.org>
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Paulo Alcantara <pc@manguebit.org>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: syzbot+41c68824eefb67cdf00c@syzkaller.appspotmail.com
cc: linux-afs@lists.infradead.org
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2025-11-28 16:48:18 -08:00
..
9p Revert "fs/9p: Refresh metadata in d_revalidate for uncached mode too" 2025-10-22 14:25:27 +09:00
adfs
affs
afs afs: Fix uninit var in afs_alloc_anon_key() 2025-11-28 16:48:18 -08:00
autofs
befs
bfs bfs: Reconstruct file type when loading from disk 2025-10-29 14:39:34 +01:00
btrfs for-6.18-rc5-tag 2025-11-11 10:13:17 -08:00
cachefiles
ceph libceph: drop started parameter of __ceph_open_session() 2025-11-26 23:29:11 +01:00
coda
configfs file->f_path constification 2025-10-03 16:32:36 -07:00
cramfs Patch series in this pull request: 2025-10-02 18:44:54 -07:00
crypto fscrypt: fix left shift underflow when inode->i_blkbits > PAGE_SHIFT 2025-11-04 16:37:38 -08:00
debugfs
devpts
dlm
ecryptfs mount-related stuff for this cycle 2025-10-03 10:19:44 -07:00
efivarfs power: always freeze efivarfs 2025-11-12 10:12:39 +01:00
efs
erofs erofs: avoid infinite loop due to incomplete zstd-compressed data 2025-11-07 04:10:45 +08:00
exfat vfs-6.18-rc7.fixes 2025-11-17 09:11:27 -08:00
exportfs
ext2
ext4 Ext4 bug fixes for 6.18-rc2, including 2025-10-15 07:51:57 -07:00
f2fs f2fs: fix wrong block mapping for multi-devices 2025-10-13 23:55:44 +00:00
fat vfat: fix missing sb_min_blocksize() return value checks 2025-11-05 14:00:16 +01:00
freevxfs
fuse virtio-fs: fix incorrect check for fsvq->kobj 2025-11-05 14:00:16 +01:00
gfs2 finish_no_open calling conventions change 2025-10-03 10:59:31 -07:00
hfs
hfsplus
hostfs hostfs: Fix only passing host root in boot stage with new mount 2025-10-21 14:22:42 +02:00
hpfs - Avoid -Wflex-array-member-not-at-end warnings 2025-10-10 14:06:02 -07:00
hugetlbfs hugetlbfs: move lock assertions after early returns in huge_pmd_unshare() 2025-10-21 15:46:17 -07:00
iomap iomap: open code bio_iov_iter_get_bdev_pages 2025-10-07 08:05:44 -06:00
isofs isofs: check the return value of sb_min_blocksize() in isofs_fill_super 2025-11-05 14:00:16 +01:00
jbd2 jbd2: ensure that all ongoing I/O complete before freeing blocks 2025-10-10 13:10:06 -04:00
jffs2
jfs A few fixes and cleanups for JFS. 2025-10-03 13:54:23 -07:00
kernfs
lockd
minix
netfs
nfs NFS: Fix LTP test failures when timestamps are delegated 2025-11-10 16:55:12 -05:00
nfs_common
nfsd nfsd-6.18 fixes: 2025-11-12 18:41:01 -08:00
nilfs2 nilfs2: avoid having an active sc_timer before freeing sci 2025-11-09 21:19:46 -08:00
nls
notify fs/notify: call exportfs_encode_fid with s_umount 2025-10-06 16:31:52 +02:00
ntfs3
ocfs2 ocfs2: clear extent cache after moving/defragmenting extents 2025-10-15 13:24:33 -07:00
omfs
openpromfs
orangefs orangefs: Two cleanups and a bug fix. 2025-10-03 13:59:56 -07:00
overlayfs ovl: fail ovl_lock_rename_workdir() if either target is unhashed 2025-11-28 10:42:32 +01:00
proc fs/proc: fix uaf in proc_readdir_de() 2025-11-09 21:19:43 -08:00
pstore
qnx4
qnx6
quota
ramfs
resctrl x86,fs/resctrl: Fix NULL pointer dereference with events force-disabled in mbm_event mode 2025-10-20 18:06:31 +02:00
romfs
smb smb: client: fix memory leak in cifs_construct_tcon() 2025-11-25 18:00:06 -06:00
squashfs Patch series in this pull request: 2025-10-02 18:44:54 -07:00
sysfs sysfs: check visibility before changing group attribute ownership 2025-10-17 09:48:34 +02:00
tests
tracefs
ubifs Summary of significant series in this pull request: 2025-10-02 18:18:33 -07:00
udf
ufs
unicode
vboxsf
verity
xfs xfs: fixes for 6.18-rc7 2025-11-22 10:23:34 -08:00
zonefs
Kconfig Summary of significant series in this pull request: 2025-10-02 18:18:33 -07:00
Kconfig.binfmt
Makefile
aio.c Summary of significant series in this pull request: 2025-10-02 18:18:33 -07:00
anon_inodes.c
attr.c
backing-file.c
bad_inode.c
binfmt_elf.c
binfmt_elf_fdpic.c
binfmt_flat.c
binfmt_misc.c binfmt_misc: restore write access before closing files opened by open_exec() 2025-11-05 14:00:16 +01:00
binfmt_script.c
bpf_fs_kfuncs.c
buffer.c
char_dev.c
compat_binfmt_elf.c
coredump.c coredump: fix core_pattern input validation 2025-10-07 13:12:46 +02:00
d_path.c
dax.c dax: skip read lock assertion for read-only filesystems 2025-10-07 12:48:33 +02:00
dcache.c vfs: Don't leak disconnected dentries on umount 2025-10-07 13:09:08 +02:00
direct-io.c
drop_caches.c
eventfd.c
eventpoll.c
exec.c coredump: fix core_pattern input validation 2025-10-07 13:12:46 +02:00
fcntl.c
fhandle.c
file.c
file_attr.c fs: return EOPNOTSUPP from file_setattr/file_getattr syscalls 2025-10-10 13:46:00 +02:00
file_table.c fs: update comment in init_file() 2025-10-07 12:48:33 +02:00
filesystems.c
fs-writeback.c
fs_context.c
fs_parser.c
fs_pin.c
fs_struct.c
fs_types.c
fsopen.c
init.c
inode.c fs: add iput_not_last() 2025-11-12 10:47:42 +01:00
internal.h file->f_path constification 2025-10-03 16:32:36 -07:00
ioctl.c
kernel_read_file.c
libfs.c
locks.c
mbcache.c
mnt_idmapping.c
mount.h mount-related stuff for this cycle 2025-10-03 10:19:44 -07:00
mpage.c
namei.c file->f_path constification 2025-10-03 16:32:36 -07:00
namespace.c fs/namespace: fix reference leak in grab_requested_mnt_ns 2025-11-25 09:34:56 +01:00
nsfs.c nsfs: handle inode number mismatches gracefully in file handles 2025-10-07 12:48:33 +02:00
open.c file->f_path constification 2025-10-03 16:32:36 -07:00
pidfs.c file->f_path constification 2025-10-03 16:32:36 -07:00
pipe.c
pnode.c
pnode.h
posix_acl.c
proc_namespace.c
read_write.c
readdir.c
remap_range.c
select.c
seq_file.c
signalfd.c
splice.c
stack.c
stat.c
statfs.c
super.c power: always freeze efivarfs 2025-11-12 10:12:39 +01:00
sync.c
sysctls.c
timerfd.c
userfaultfd.c
utimes.c
xattr.c