diff options
author | Reed Riley <reed@riley.engineer> | 2024-05-05 01:12:23 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-05-06 17:58:17 +0300 |
commit | 9a0ec045110dbaad4b8d609142b534f913354101 (patch) | |
tree | d0731fffb8d616c2764a0a394114dc1944ecff49 /scripts/gdb/linux/utils.py | |
parent | db42549d402cb44fe67c95d08f1a9ea902d32e7e (diff) | |
download | linux-9a0ec045110dbaad4b8d609142b534f913354101.tar.xz |
bcachefs: fix overflow in fiemap
filefrag (and potentially other utilities that call fiemap) sometimes
pass ULONG_MAX as the length. fiemap_prep clamps excessively large
lengths - but the calculation of end can overflow if it occurs before
calling fiemap_prep. When this happens, filefrag assumes it has read to
the end and exits.
Signed-off-by: Reed Riley <reed@riley.engineer>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions