kernel-fix-off-by-one-benign-bugs.patch removed from -mm tree
The quilt patch titled
Subject: kernel: fix off-by-one benign bugs
has been removed from the -mm tree. Its filename was
kernel-fix-off-by-one-benign-bugs.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Alejandro Colomar <[email protected]>
Subject: kernel: fix off-by-one benign bugs
Date: Thu, 11 Dec 2025 11:44:00 +0100
We were wasting a byte due to an off-by-one bug. s[c]nprintf() doesn't write more than $2 bytes including the null byte, so trying to pass 'size-1' there is wasting one byte.
This is essentially the same as the previous commit, in a different file.
---
kernel/kcsan/kcsan_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/kcsan/kcsan_test.c renamed from kernel/kcsan/kcsan_test.c~kernel-fix-off-by-one-benign-bugs +2 -2
@@ -176,7 +176,7 @@ static bool __report_matches(const struc/* Title */ cur = expect[0 ]; - end = &expect[0 ][sizeof (expect[0 ]) -1 ]; + end =ARRAY_END (expect[0 ]); cur +=scnprintf (cur, end - cur,"BUG: KCSAN: %s in " , is_assert ?"assert: race" :"data-race" );if (r->access[1 ].fn) {
@@ -200,7 +200,7 @@ static bool __report_matches(const struc/* Access 1 */ cur = expect[1 ]; - end = &expect[1 ][sizeof (expect[1 ]) -1 ]; + end =ARRAY_END (expect[1 ]);if (!r->access[1 ].fn) cur +=scnprintf (cur, end - cur,"race at unknown origin, with " );
_
Patches currently in -mm which might be from [email protected] are