commit | e66e4c1f3bd589a297c2a4e78bc67ac9d3a03032 | [log] [tgz] |
---|---|---|
author | Robin Hsu <robinhsu@google.com> | Wed Feb 05 15:41:57 2020 +0800 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Tue Jun 23 16:58:44 2020 -0700 |
tree | f17a66c807f66647eed36c0124d973d98d48d5bd | |
parent | 712aca364f3820113d47686b33ddb2dbb542f7af [diff] |
fsck: prevent buffer overrun in quota code A maliciously corrupted file systems can trigger buffer overruns in the quota code used by fsck. To fix it, quota file sizes are checked against real allocated block index tables (inode, direct nodes, indirect nodes, double indirect nodes). If the size mismatches, the quota file is considered corrupted and will be regenerated. Signed-off-by: Robin Hsu <robinhsu@google.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>