summaryrefslogtreecommitdiff
path: root/include/linux/stackprotector.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2026-01-28 18:26:13 +0300
committerEric Biggers <ebiggers@kernel.org>2026-01-29 20:39:41 +0300
commite9734653c523c744f03333ece6ae7a315187f05c (patch)
tree415c025fcdf1a0231b59cd464a0ab35e2c11bcf3 /include/linux/stackprotector.h
parent63804fed149a6750ffd28610c5c1c98cce6bd377 (diff)
downloadlinux-e9734653c523c744f03333ece6ae7a315187f05c.tar.xz
fs,fsverity: reject size changes on fsverity files in setattr_prepare
Add the check to reject truncates of fsverity files directly to setattr_prepare instead of requiring the file system to handle it. Besides removing boilerplate code, this also fixes the complete lack of such check in btrfs. Fixes: 146054090b08 ("btrfs: initial fsverity support") Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jan Kara <jack@suse.cz> Reviewed-by: "Darrick J. Wong" <djwong@kernel.org> Link: https://lore.kernel.org/r/20260128152630.627409-2-hch@lst.de Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions