lineage_android_kernel_xiao.../fs
Bernd Edlinger 90b3fec683 kernfs: Fix range checks in kernfs_get_target_path
[ Upstream commit a75e78f21f9ad4b810868c89dbbabcc3931591ca ]

The terminating NUL byte is only there because the buffer is
allocated with kzalloc(PAGE_SIZE, GFP_KERNEL), but since the
range-check is off-by-one, and PAGE_SIZE==PATH_MAX, the
returned string may not be zero-terminated if it is exactly
PATH_MAX characters long.  Furthermore also the initial loop
may theoretically exceed PATH_MAX and cause a fault.

Signed-off-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-11-25 09:52:23 +01:00
..
9p 9p: avoid attaching writeback_fid on mmap with type PRIVATE 2019-10-17 13:42:10 -07:00
adfs
affs
afs
autofs4
befs
bfs
btrfs btrfs: block-group: Fix a memory leak due to missing btrfs_put_block_group() 2019-10-29 09:15:25 +01:00
cachefiles
ceph ceph: fix use-after-free in __ceph_remove_cap() 2019-11-12 19:15:44 +01:00
cifs cifs: Fix cifsInodeInfo lock_sem deadlock when reconnect occurs 2019-11-10 11:23:21 +01:00
coda
configfs configfs: fix a deadlock in configfs_symlink() 2019-11-12 19:15:51 +01:00
cramfs
crypto
debugfs
devpts
dlm
ecryptfs ecryptfs_lookup_interpose(): lower_dentry->d_parent is not stable either 2019-11-25 09:51:57 +01:00
efivarfs
efs
exofs
exportfs
ext2
ext4 ext4: fix punch hole for inline_data file systems 2019-10-05 12:30:35 +02:00
f2fs f2fs: fix memory leak of percpu counter in fill_super() 2019-11-25 09:52:13 +01:00
fat fat: work around race with userspace's read via blockdev while mounting 2019-10-07 18:53:18 +02:00
freevxfs
fscache
fuse fuse: truncate pending writes on O_TRUNC 2019-11-06 12:18:15 +01:00
gfs2 gfs2: Don't set GFS2_RDF_UPTODATE when the lvb is updated 2019-11-25 09:52:02 +01:00
hfs
hfsplus
hostfs
hpfs
hugetlbfs
isofs
jbd2
jffs2
jfs
kernfs kernfs: Fix range checks in kernfs_get_target_path 2019-11-25 09:52:23 +01:00
lockd
logfs
minix
ncpfs
nfs NFSv4: Don't allow a cached open with a revoked delegation 2019-11-12 19:16:06 +01:00
nfs_common
nfsd
nilfs2
nls
notify
ntfs
ocfs2 fs: ocfs2: fix a possible null-pointer dereference in ocfs2_info_scan_inode_alloc() 2019-11-06 12:18:11 +01:00
omfs
openpromfs
orangefs
overlayfs ovl: filter of trusted xattr results in audit 2019-10-05 12:30:34 +02:00
proc
pstore
qnx4
qnx6
quota
ramfs
reiserfs
romfs
squashfs
sysfs
sysv
tracefs
ubifs
udf
ufs
xfs xfs: Correctly invert xfs_buftarg LRU isolation logic 2019-11-06 12:18:27 +01:00
Kconfig
Kconfig.binfmt
Makefile
aio.c
anon_inodes.c
attr.c
bad_inode.c
binfmt_aout.c
binfmt_elf.c
binfmt_elf_fdpic.c
binfmt_em86.c
binfmt_flat.c
binfmt_misc.c
binfmt_script.c exec: load_script: Do not exec truncated interpreter path 2019-11-06 12:18:04 +01:00
block_dev.c
buffer.c
char_dev.c
compat.c
compat_binfmt_elf.c
compat_ioctl.c media: dvb: fix compat ioctl translation 2019-11-25 09:52:17 +01:00
coredump.c
dax.c
dcache.c
dcookies.c
direct-io.c
drop_caches.c
eventfd.c
eventpoll.c
exec.c
fcntl.c
fhandle.c
file.c
file_table.c
filesystems.c
fs-writeback.c cgroup,writeback: don't switch wbs immediately on dead wbs if the memcg is dead 2019-11-12 19:16:11 +01:00
fs_pin.c
fs_struct.c
inode.c
internal.h
ioctl.c
iomap.c
libfs.c Fix the locking in dcache_readdir() and friends 2019-10-17 13:42:45 -07:00
locks.c
mbcache.c
mount.h
mpage.c
namei.c
namespace.c
no-block.c
nsfs.c
open.c
pipe.c
pnode.c
pnode.h
posix_acl.c
proc_namespace.c
read_write.c
readdir.c
select.c
seq_file.c
signalfd.c
splice.c
stack.c
stat.c
statfs.c
super.c
sync.c
timerfd.c
userfaultfd.c
utimes.c
xattr.c