]> 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)
commitf21647cac815ac49daf0118526642e84caa43f3e
tree10eb059733775be6b51682e384d239eca2f32890
parent0301f4c9fac2a05b2bb04301d0a012980757909c
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: 1e3853175bc5 ("fortify: Add run-time WARN for cross-field memcpy()")
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/fast_commit.c