summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@HansenPartnership.com>2025-01-19 17:59:40 +0300
committerArd Biesheuvel <ardb@kernel.org>2025-01-19 19:49:10 +0300
commit8b4bc207f981bd87728d2e1c0cf6f4304f9d0159 (patch)
tree2745571bef27e2b86d9fa14e53d9846ae9ef22c1 /scripts
parent19fdc68aa7b90b1d3d600e873a3e050a39e7663d (diff)
downloadlinux-8b4bc207f981bd87728d2e1c0cf6f4304f9d0159.tar.xz
efivarfs: prevent setting of zero size on the inodes in the cache
Current efivarfs uses simple_setattr which allows the setting of any size in the inode cache. This is wrong because a zero size file is used to indicate an "uncommitted" variable, so by simple means of truncating the file (as root) any variable may be turned to look like it's uncommitted. Fix by adding an efivarfs_setattr routine which does not allow updating of the cached inode size (which now only comes from the underlying variable). Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com> Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions