diff options
author | Pavel Skripkin <[email protected]> | 2023-07-13 22:41:46 +0300 |
---|---|---|
committer | Konstantin Komarov <[email protected]> | 2023-09-28 15:04:05 +0300 |
commit | 34e6552a442f268eefd408e47f4f2d471aa64829 (patch) | |
tree | 52f713ca4d6e787f362dc661af08e572bc4af188 /tools/perf/util/trace-event-scripting.c | |
parent | 8e7e27b2ee1e19c4040d4987e345f678a74c0aed (diff) |
fs/ntfs3: Fix OOB read in ntfs_init_from_boot
Syzbot was able to create a device which has the last sector of size
512.
After failing to boot from initial sector, reading from boot info from
offset 511 causes OOB read.
To prevent such reports add sanity check to validate if size of buffer_head
if big enough to hold ntfs3 bootinfo
Fixes: 6a4cd3ea7d77 ("fs/ntfs3: Alternative boot if primary boot is corrupted")
Reported-by: [email protected]
Signed-off-by: Pavel Skripkin <[email protected]>
Signed-off-by: Konstantin Komarov <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions