]> 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 12:50:00 +0000 (13:50 +0100)
commit1da2697307dad281dd690a19441b5ca4af92d786
tree3790323fc9c5c0aec677662664b2186b1fbf3926
parentb47002ed65ade940839b7f439ff4a194e7d5ec28
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