diff options
| author | Johannes Thumshirn <johannes.thumshirn@wdc.com> | 2026-04-29 22:58:15 +0200 |
|---|---|---|
| committer | Damien Le Moal <dlemoal@kernel.org> | 2026-05-12 07:53:20 +0900 |
| commit | 3a8389d42bdf4213730f4067f8bfa78bae6564ef (patch) | |
| tree | c644aae2ad6745d32f8fe19029174ac76305a936 /scripts/stackusage | |
| parent | 5d6919055dec134de3c40167a490f33c74c12581 (diff) | |
zonefs: handle integer overflow in zonefs_fname_to_fno
In zonefs the file name in one of the two directories corresponds to the
zone number.
Here Alexey reported a possible integer overflow in zonefs_fname_to_fno(),
where the parsing of the zone number from the file name can overflow the
'long' data type.
Add a check for integer overflows and if the fno 'long' did overflow
return -ENOENT.
Reported-by: Alexey Dobriyan <adobriyan@gmail.com>
Fixes: d207794ababe ("zonefs: Dynamically create file inodes when needed")
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
