Message ID | YVK0jzJ/lt97xowQ@sol.localdomain (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | [GIT,PULL] fsverity fix for 5.15-rc4 | expand |
On Mon, Sep 27, 2021 at 11:22 PM Eric Biggers <ebiggers@kernel.org> wrote: > > Fix an integer overflow when computing the Merkle tree layout of > extremely large files, exposed by btrfs adding support for fs-verity. I wonder if 'i_size' should be u64. I'm not convinced people think about 'loff_t' being signed - but while that's required for negative lseek() offsets, I'm not sure it makes tons of sense for an inode size. Same goes for f_pos, for that matter. But who knows what games people have played with magic numbers (ie "-1") internally, or where they _want_ signed compares. So it's certainly not some obvious trivial fix. Pulled. Linus
The pull request you sent on Mon, 27 Sep 2021 23:22:07 -0700:
> https://git.kernel.org/pub/scm/fs/fscrypt/fscrypt.git tags/fsverity-for-linus
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/6fd3ec5c7af58d5d6b598fba22ac387645af33f4
Thank you!