]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
orangefs: fix a oob in orangefs_debug_write
authorMike Marshall <hubcap@omnibond.com>
Wed, 8 Jan 2025 19:21:08 +0000 (14:21 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2025 13:01:27 +0000 (14:01 +0100)
commit897f496b946fdcfab5983c983e4b513ab6682364
treedf7d278fd3d58557a40943a63d6929aa00f1cae7
parent3dbe889a1b829b4c07e0836ff853fe649e51ce4f
orangefs: fix a oob in orangefs_debug_write

[ Upstream commit f7c848431632598ff9bce57a659db6af60d75b39 ]

I got a syzbot report: slab-out-of-bounds Read in
orangefs_debug_write... several people suggested fixes,
I tested Al Viro's suggestion and made this patch.

Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Reported-by: syzbot+fc519d7875f2d9186c1f@syzkaller.appspotmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/orangefs/orangefs-debugfs.c