Skip to content

zonefs: handle integer overflow in zonefs_fname_to_fno#1303

Open
vfsci-bot[bot] wants to merge 1 commit intovfs.base.cifrom
pw/1087734/vfs.base.ci
Open

zonefs: handle integer overflow in zonefs_fname_to_fno#1303
vfsci-bot[bot] wants to merge 1 commit intovfs.base.cifrom
pw/1087734/vfs.base.ci

Conversation

@vfsci-bot
Copy link
Copy Markdown

@vfsci-bot vfsci-bot Bot commented Apr 29, 2026

Series: https://patchwork.kernel.org/project/linux-fsdevel/list/?series=1087734
Submitter: Johannes Thumshirn
Version: 1
Patches: 1/1
Message-ID: <[email protected]>
Base: vfs.base.ci
Lore: https://lore.kernel.org/linux-fsdevel/[email protected]


Automated by ml2pr

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 <[email protected]>
Signed-off-by: Johannes Thumshirn <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant