linux/fs/gfs2
Andreas Gruenbacher 7c7b7476b5 gfs2: Switch from strlcpy to strscpy
commit 204c0300c4 upstream.

Switch from strlcpy to strscpy and make sure that @count is the size of
the smaller of the source and destination buffers.  This prevents
reading beyond the end of the source buffer when the source string isn't
null terminated.

Found by a modified version of syzkaller.

Suggested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-11-26 09:24:51 +01:00
..
Kconfig
Makefile
acl.c
acl.h
aops.c
aops.h
bmap.c
bmap.h
dentry.c
dir.c
dir.h
export.c
file.c gfs2: Fix gfs2_file_buffered_write endless loop workaround 2022-07-12 16:34:59 +02:00
gfs2.h
glock.c
glock.h
glops.c
glops.h
incore.h
inode.c
inode.h
lock_dlm.c
log.c
log.h
lops.c
lops.h
main.c
meta_io.c
meta_io.h
ops_fstype.c gfs2: Switch from strlcpy to strscpy 2022-11-26 09:24:51 +01:00
quota.c gfs2: use i_lock spin_lock for inode qadata 2022-06-09 10:22:40 +02:00
quota.h
recovery.c
recovery.h
rgrp.c
rgrp.h gfs2: gfs2_setattr_size error path fix 2022-04-08 14:24:10 +02:00
super.c
super.h
sys.c
sys.h
trace_gfs2.h gfs2: Add per-reservation reserved block accounting 2021-02-17 19:30:26 +01:00
trans.c gfs2: fix use-after-free in trans_drain 2021-03-07 17:04:55 +01:00
trans.h Merge branches 'rgrp-glock-sharing' and 'gfs2-revoke' from https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git 2021-02-23 18:54:22 +01:00
util.c
util.h
xattr.c
xattr.h