Skip to content
Snippets Groups Projects
Commit 3611a2ed authored by Mike Marshall's avatar Mike Marshall Committed by Frieder Schrempf
Browse files

orangefs: fix out-of-bounds fsid access


[ Upstream commit 53e4efa4 ]

Arnd Bergmann sent a patch to fsdevel, he says:

"orangefs_statfs() copies two consecutive fields of the superblock into
the statfs structure, which triggers a warning from the string fortification
helpers"

Jan Kara suggested an alternate way to do the patch to make it more readable.

I ran both ideas through xfstests and both seem fine. This patch
is based on Jan Kara's suggestion.

Signed-off-by: default avatarMike Marshall <hubcap@omnibond.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 5608ffe3
No related branches found
No related tags found
1 merge request!162🤖 Sync Bot: Update v6.1-ktn to Latest Stable Kernel (v6.1.103)
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment