Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'for-linus-6.14-ofs4' of git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux

Pull orangefs fix from Mike Marshall:
"Fix a oob in orangefs_debug_write

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"

* tag 'for-linus-6.14-ofs4' of git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux:
orangefs: fix a oob in orangefs_debug_write

+2 -2
+2 -2
fs/orangefs/orangefs-debugfs.c
··· 392 392 * Thwart users who try to jamb a ridiculous number 393 393 * of bytes into the debug file... 394 394 */ 395 - if (count > ORANGEFS_MAX_DEBUG_STRING_LEN + 1) { 395 + if (count > ORANGEFS_MAX_DEBUG_STRING_LEN) { 396 396 silly = count; 397 - count = ORANGEFS_MAX_DEBUG_STRING_LEN + 1; 397 + count = ORANGEFS_MAX_DEBUG_STRING_LEN; 398 398 } 399 399 400 400 buf = kzalloc(ORANGEFS_MAX_DEBUG_STRING_LEN, GFP_KERNEL);