]> git.itanic.dy.fi Git - linux-stable/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)
commit0d043351e5baf3857f915367deba2a518b6a0809
tree10eb059733775be6b51682e384d239eca2f32890
parent9f2a1d9fb33a2129a9ba29bc61d3f14adb28ddc2
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: 54d9469bc515 ("fortify: Add run-time WARN for cross-field memcpy()")
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/fast_commit.c