]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: fix fortify warning in fs/ext4/fast_commit.c:1551
authorTheodore Ts'o <tytso@mit.edu>
Sun, 6 Nov 2022 03:42:36 +0000 (23:42 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 6 Nov 2022 05:07:59 +0000 (01:07 -0400)
commit462e24c4722b608b56240e37a50a221b26332df2
tree10eb059733775be6b51682e384d239eca2f32890
parentebb429bd706f18a3d88aee09179995e52cd8ff80
ext4: fix fortify warning in fs/ext4/fast_commit.c:1551

With the new fortify string system, rework the memcpy to avoid this
warning:

memcpy: detected field-spanning write (size 60) of single field "&raw_inode->i_generation" at fs/ext4/fast_commit.c:1551 (size 4)

Cc: stable@kernel.org
Fixes: 45e16cf3e062 ("fortify: Add run-time WARN for cross-field memcpy()")
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/fast_commit.c