linux-yocto/fs
Wenlin Kang cc89fd77c2 ext4: fix -Wstringop-truncation warnings
The strncpy() function may create a unterminated string,
use strscpy_pad() instead.

This fixes the following warning:

fs/ext4/super.c: In function '__save_error_info':
fs/ext4/super.c:368:2: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
  strncpy(es->s_last_error_func, func, sizeof(es->s_last_error_func));
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/ext4/super.c:373:3: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
   strncpy(es->s_first_error_func, func,
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    sizeof(es->s_first_error_func));
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-11-19 10:20:10 -05:00
..
9p 9p: Fix memory leak in v9fs_mount 2020-08-19 08:27:03 +02:00
adfs docs: filesystems: fix renamed references 2020-04-20 15:45:22 -06:00
affs affs: fix basic permission bits to actually work 2020-09-09 19:14:29 +02:00
afs afs: Fix cell removal 2020-10-29 10:08:02 +01:00
aufs aufs5: core 2020-08-07 10:41:26 -04:00
autofs autofs: use __kernel_write() for the autofs pipe writing 2020-10-07 08:02:53 +02:00
befs
bfs docs: filesystems: fix renamed references 2020-04-20 15:45:22 -06:00
btrfs btrfs: add owner and fs_info to alloc_state io_tree 2020-10-29 10:07:26 +01:00
cachefiles cachefiles: switch to kernel_write 2020-07-08 08:27:56 +02:00
ceph ceph: don't allow setlease on cephfs 2020-09-09 19:14:10 +02:00
cifs smb3: fix stat when special device file and mounted with modefromsid 2020-10-29 10:07:10 +01:00
coda docs: filesystems: convert coda.txt to ReST 2020-05-05 09:22:21 -06:00
configfs A fair amount of stuff this time around, dominated by yet another massive 2020-06-01 15:45:27 -07:00
cramfs docs: filesystems: fix renamed references 2020-04-20 15:45:22 -06:00
crypto fscrypt: restrict IV_INO_LBLK_32 to ino_bits <= 32 2020-10-29 10:07:19 +01:00
debugfs debugfs: Fix module state check condition 2020-09-17 13:55:44 +02:00
devpts
dlm fs: dlm: fix configfs memory leak 2020-10-29 10:08:20 +01:00
ecryptfs A fair amount of stuff this time around, dominated by yet another massive 2020-06-01 15:45:27 -07:00
efivarfs efivarfs: Replace invalid slashes with exclamation marks in dentries. 2020-11-01 12:45:37 +01:00
efs
erofs erofs: avoid duplicated permission check for "trusted." xattrs 2020-11-01 12:45:40 +01:00
exfat exfat: fix use of uninitialized spinlock on error path 2020-10-14 11:55:46 +02:00
exportfs
ext2 ext2: don't update mtime on COW faults 2020-09-09 19:14:24 +02:00
ext4 ext4: fix -Wstringop-truncation warnings 2020-11-19 10:20:10 -05:00
f2fs f2fs: wait for sysfs kobject removal before freeing f2fs_sb_info 2020-10-29 10:08:02 +01:00
fat This is the 5.8.4 stable release 2020-08-26 12:07:56 -04:00
freevxfs
fscache Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-06-03 16:27:18 -07:00
fuse fuse: fix page dereference after free 2020-11-01 12:45:41 +01:00
gfs2 gfs2: add some much needed cleanup for log flushes that fail 2020-09-09 19:14:09 +02:00
hfs for-5.8/block-2020-06-01 2020-06-02 15:29:19 -07:00
hfsplus block: remove the error_sector argument to blkdev_issue_flush 2020-05-22 08:45:46 -06:00
hostfs
hpfs hpfs: fix warning due to superfluous semicolon 2020-06-06 10:08:17 -07:00
hugetlbfs hugetlbfs: prevent filesystem stacking of hugetlbfs 2020-09-03 11:29:22 +02:00
iomap iomap: fix WARN_ON_ONCE() from unprivileged users 2020-10-29 10:08:25 +01:00
isofs for-5.8/block-2020-06-01 2020-06-02 15:29:19 -07:00
jbd2 jbd2: abort journal if free a async write error metadata buffer 2020-09-03 11:29:30 +02:00
jffs2 jffs2: fix UAF problem 2020-08-26 11:49:06 +02:00
jfs Replace zero-length array in JFS 2020-06-02 20:11:35 -07:00
kernfs kernfs: do not call fsnotify() with name without a parent 2020-08-19 08:26:35 +02:00
lockd
minix fs/minix: remove expected error message in block_to_path() 2020-08-21 13:15:18 +02:00
nfs This is the 5.8.17 stable release 2020-11-02 09:38:51 -05:00
nfs_common
nfsd nfsd: fix oops on mixed NFSv4/NFSv3 client access 2020-09-03 11:29:26 +02:00
nilfs2 nilfs2: fix null pointer dereference at nilfs_segctor_do_construct() 2020-06-10 19:14:17 -07:00
nls treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
notify aufs5: aufs5-standalone 2020-08-07 10:41:25 -04:00
ntfs ntfs: add check for mft record size in superblock 2020-10-29 10:08:21 +01:00
ocfs2 ocfs2: change slot number type s16 to u16 2020-08-21 13:14:58 +02:00
omfs fs: convert mpage_readpages to mpage_readahead 2020-06-02 10:59:07 -07:00
openpromfs
orangefs orangefs: a conversion and a cleanup... 2020-06-05 16:44:36 -07:00
overlayfs ovl: fix lookup of indexed hardlinks with metacopy 2020-07-16 07:24:47 +02:00
proc This is the 5.8.17 stable release 2020-11-02 09:38:51 -05:00
pstore pstore: Fix linking when crypto API disabled 2020-08-19 08:27:02 +02:00
qnx4
qnx6 fs: convert mpage_readpages to mpage_readahead 2020-06-02 10:59:07 -07:00
quota quota: clear padding in v2r1_mem2diskdqb() 2020-10-29 10:07:44 +01:00
ramfs ramfs: fix nommu mmap with gaps in the page cache 2020-10-29 10:08:03 +01:00
reiserfs reiserfs: Fix memory leak in reiserfs_parse_options() 2020-10-29 10:08:27 +01:00
romfs romfs: fix uninitialized memory leak in romfs_dev_read() 2020-08-26 11:48:59 +02:00
squashfs squashfs: avoid bio_alloc() failure with 1Mbyte blocks 2020-08-26 11:48:59 +02:00
sysfs RDMA 5.8 merge window pull request 2020-06-05 14:05:57 -07:00
sysv docs: filesystems: fix renamed references 2020-04-20 15:45:22 -06:00
tracefs
ubifs ubifs: Fix wrong orphan node deletion in ubifs_jnl_update|rename 2020-08-21 13:15:13 +02:00
udf udf: Avoid accessing uninitialized data on failed inode read 2020-10-29 10:08:23 +01:00
ufs fs/ufs: avoid potential u32 multiplication overflow 2020-08-21 13:15:18 +02:00
unicode
vboxsf vboxsf: Fix the check for the old binary mount-arguments struct 2020-10-07 08:02:47 +02:00
verity fs-verity: remove unnecessary extern keywords 2020-05-12 16:44:00 -07:00
xfs xfs: make sure the rt allocator doesn't run off the end 2020-10-29 10:08:25 +01:00
yaffs2 yaffs: fix misplaced variable declaration 2020-08-07 10:41:21 -04:00
zonefs zonefs: count pages after truncating the iterator 2020-07-20 17:59:31 +09:00
aio.c aio: Replace zero-length array with flexible-array 2020-06-15 23:08:25 -05:00
anon_inodes.c
attr.c
bad_inode.c fs: move the fiemap definitions out of fs.h 2020-06-03 23:16:55 -04:00
binfmt_aout.c exec: Rename flush_old_exec begin_new_exec 2020-05-07 16:55:47 -05:00
binfmt_elf_fdpic.c Merge branch 'uaccess.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2020-06-10 16:02:54 -07:00
binfmt_elf.c Merge branch 'uaccess.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2020-06-10 16:02:54 -07:00
binfmt_em86.c Merge branch 'akpm' (patches from Andrew) 2020-06-04 19:18:29 -07:00
binfmt_flat.c binfmt_flat: revert "binfmt_flat: don't offset the data start" 2020-08-27 09:31:49 +02:00
binfmt_misc.c Merge branch 'akpm' (patches from Andrew) 2020-06-04 19:18:29 -07:00
binfmt_script.c Merge branch 'akpm' (patches from Andrew) 2020-06-04 19:18:29 -07:00
block_dev.c block: make function 'kill_bdev' static 2020-06-18 09:24:35 -06:00
buffer.c fs: prevent BUG_ON in submit_bh_wbc() 2020-09-03 11:29:31 +02:00
char_dev.c vfs: allow unprivileged whiteout creation 2020-05-14 16:44:23 +02:00
compat_binfmt_elf.c Split the old READ_IMPLIES_EXEC workaround from executable PT_GNU_STACK 2020-06-05 13:45:21 -07:00
compat.c
coredump.c mmap locking API: convert mmap_sem comments 2020-06-09 09:39:14 -07:00
d_path.c fs: fix NULL dereference due to data race in prepend_path() 2020-10-29 10:07:50 +01:00
dax.c
dcache.c aufs5: aufs5-standalone 2020-08-07 10:41:25 -04:00
dcookies.c
direct-io.c for-5.8-part2-tag 2020-06-14 09:47:25 -07:00
drop_caches.c sysctl: pass kernel pointers to ->proc_handler 2020-04-27 02:07:40 -04:00
eventfd.c eventfd: convert to f_op->read_iter() 2020-05-06 22:33:43 -04:00
eventpoll.c ep_create_wakeup_source(): dentry name can change under you... 2020-10-07 08:02:55 +02:00
exec.c This is the 5.8.18 stable release 2020-11-10 13:38:21 -05:00
fcntl.c aufs5: aufs5-standalone 2020-08-07 10:41:25 -04:00
fhandle.c
file_table.c aufs5: aufs5-standalone 2020-08-07 10:41:25 -04:00
file.c io_uring: don't rely on weak ->files references 2020-11-01 12:45:35 +01:00
filesystems.c
fs_context.c vfs: don't parse "silent" option 2020-05-14 16:44:25 +02:00
fs_parser.c
fs_pin.c
fs_struct.c
fs_types.c
fs-writeback.c writeback: Fix sync livelock due to b_dirty_time processing 2020-09-03 11:29:42 +02:00
fsopen.c
inode.c aufs5: aufs5-standalone 2020-08-07 10:41:25 -04:00
internal.h A lot of bug fixes and cleanups for ext4, including: 2020-06-05 16:19:28 -07:00
io_uring.c io_uring: Convert advanced XArray uses to the normal API 2020-11-01 12:45:36 +01:00
io-wq.c io-wq: fix use-after-free in io_wq_worker_running 2020-11-01 12:45:36 +01:00
io-wq.h io_uring: reference ->nsproxy for file table commands 2020-11-01 12:45:35 +01:00
ioctl.c fs: remove the access_ok() check in ioctl_fiemap 2020-06-03 23:16:55 -04:00
Kconfig aufs5: aufs5-kbuild 2020-08-07 10:41:22 -04:00
Kconfig.binfmt treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
libfs.c block: remove the error_sector argument to blkdev_issue_flush 2020-05-22 08:45:46 -06:00
locks.c Highlights: 2020-06-11 10:33:13 -07:00
Makefile aufs5: aufs5-kbuild 2020-08-07 10:41:22 -04:00
mbcache.c
mount.h proc/mounts: add cursor 2020-05-14 16:44:24 +02:00
mpage.c fs: convert mpage_readpages to mpage_readahead 2020-06-02 10:59:07 -07:00
namei.c vfs: clean up posix_acl_permission() logic aroudn MAY_NOT_BLOCK 2020-06-08 11:04:19 -07:00
namespace.c aufs5: aufs5-standalone 2020-08-07 10:41:25 -04:00
no-block.c
nsfs.c nsproxy: attach to namespaces via pidfds 2020-05-13 11:41:22 +02:00
open.c aufs5: aufs5-standalone 2020-08-07 10:41:25 -04:00
pipe.c pipe: Fix memory leaks in create_pipe_files() 2020-10-14 11:55:55 +02:00
pnode.c propagate_one(): mnt_set_mountpoint() needs mount_lock 2020-04-27 10:37:14 -04:00
pnode.h
posix_acl.c vfs: clean up posix_acl_permission() logic aroudn MAY_NOT_BLOCK 2020-06-08 11:04:19 -07:00
proc_namespace.c Merge branch 'proc-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace 2020-06-04 13:54:34 -07:00
read_write.c This is the 5.8.14 stable release 2020-10-16 10:16:56 -04:00
readdir.c readdir.c: get rid of the last __put_user(), drop now-useless access_ok() 2020-05-01 20:29:54 -04:00
select.c pselect6() and friends: take handling the combined 6th/7th args into helper 2020-05-29 19:10:42 -04:00
seq_file.c fs/seq_file.c: seq_read: Update pr_info_ratelimited 2020-06-04 19:06:25 -07:00
signalfd.c fs/signalfd.c: fix inconsistent return codes for signalfd4 2020-08-26 11:49:07 +02:00
splice.c This is the 5.8.15 stable release 2020-10-16 10:25:38 -04:00
stack.c
stat.c New code for 5.8: 2020-06-02 19:45:12 -07:00
statfs.c
super.c Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2020-06-10 16:09:11 -07:00
sync.c aufs5: aufs5-standalone 2020-08-07 10:41:25 -04:00
timerfd.c
userfaultfd.c mmap locking API: convert mmap_sem comments 2020-06-09 09:39:14 -07:00
utimes.c utimensat: AT_EMPTY_PATH support 2020-05-14 16:44:24 +02:00
xattr.c This is the 5.8.1 stable release 2020-08-13 23:11:48 -04:00