Andreas Gruenbacher
179236a122
gfs2: Switch from strlcpy to strscpy
...
commit 204c0300c4e99707e9fb6e57840aa1127060e63f 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 <[email protected] >
Signed-off-by: Andreas Gruenbacher <[email protected] >
Signed-off-by: Greg Kroah-Hartman <[email protected] >
2022-11-25 17:42:22 +01:00
..
acl.c
acl.h
aops.c
aops.h
bmap.c
gfs2: Fix filesystem block deallocation for short writes
2022-05-18 09:47:26 +02:00
bmap.h
dentry.c
dir.c
dir.h
export.c
file.c
gfs2: Prevent direct-I/O write fallback errors from getting lost
2021-06-18 09:58:58 +02:00
gfs2.h
glock.c
gfs2: Fix use-after-free in gfs2_glock_shrink_scan
2021-06-18 09:58:59 +02:00
glock.h
glops.c
gfs2: initialize transaction tr_ailX_lists earlier
2020-09-23 12:40:33 +02:00
glops.h
incore.h
gfs2: use-after-free in sysfs deregistration
2020-11-05 11:43:21 +01:00
inode.c
gfs2: clean up iopen glock mess in gfs2_create_inode
2020-10-01 13:17:20 +02:00
inode.h
Kconfig
lock_dlm.c
gfs2: Don't call dlm after protocol is unmounted
2021-09-22 12:26:33 +02:00
log.c
gfs2: initialize transaction tr_ailX_lists earlier
2020-09-23 12:40:33 +02:00
log.h
lops.c
gfs2: Even more gfs2_find_jhead fixes
2020-06-17 16:40:21 +02:00
lops.h
main.c
Makefile
meta_io.c
meta_io.h
ops_fstype.c
gfs2: Switch from strlcpy to strscpy
2022-11-25 17:42:22 +01:00
quota.c
gfs2: move privileged user check to gfs2_quota_lock_check
2020-06-03 08:21:09 +02:00
quota.h
gfs2: move privileged user check to gfs2_quota_lock_check
2020-06-03 08:21:09 +02:00
recovery.c
recovery.h
rgrp.c
gfs2: assign rgrp glock before compute_bitstructs
2022-04-27 13:50:45 +02:00
rgrp.h
super.c
gfs2: report "already frozen/thawed" errors
2021-04-16 11:46:37 +02:00
super.h
sys.c
gfs2: use-after-free in sysfs deregistration
2020-11-05 11:43:21 +01:00
sys.h
trace_gfs2.h
trans.c
gfs2: initialize transaction tr_ailX_lists earlier
2020-09-23 12:40:33 +02:00
trans.h
util.c
util.h
xattr.c
xattr.h