* [PATCH] check-uapi: reject zero and malformed job counts
@ 2026-09-28 23:44 omer zalman
2026-09-29 4:40 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: omer zalman @ 2026-09-28 23:44 UTC (permalink / raw)
To: akpm; +Cc: arnd, quic_johmoo, linux-api, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 405 bytes --]
With -j 0, the per-header loop waits on an empty PID before any
worker starts. It counts that wait error as an ABI failure even when
the header passes. Reject non-positive or malformed job counts as
prerequisite errors before starting the check.
Signed-off-by: Omer Zalman <omerzalman42@gmail.com>
The exact git-format-patch file is attached because Gmail's web
composer removes tabs from inline diffs.
[-- Attachment #2: 02-check-uapi-job-count.patch --]
[-- Type: application/octet-stream, Size: 1209 bytes --]
From 37e0d18b7aaa621981ac1433fd4dbdac72194694 Mon Sep 17 00:00:00 2001
From: Omer Zalman <omerzalman42@gmail.com>
Date: Sun, 27 Sep 2026 08:41:10 -0400
Subject: [PATCH] check-uapi: reject zero and malformed job counts
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Arnd Bergmann <arnd@arndb.de>, John Moon <quic_johmoo@quicinc.com>, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org
From: Omer Zalman <omerzalman42@gmail.com>
With -j 0, the per-header loop waits on an empty PID before any
worker starts. It counts that wait error as an ABI failure even when
the header passes. Reject non-positive or malformed job counts as
prerequisite errors before starting the check.
Signed-off-by: Omer Zalman <omerzalman42@gmail.com>
---
scripts/check-uapi.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/scripts/check-uapi.sh b/scripts/check-uapi.sh
index e349d1f..a5b5995 100644
--- a/scripts/check-uapi.sh
+++ b/scripts/check-uapi.sh
@@ -575,6 +575,11 @@ main() {
exec > /dev/null 2>&1
fi
+ if ! [[ "$MAX_THREADS" =~ ^0*[1-9][0-9]*$ ]]; then
+ eprintf 'error - JOBS must be a positive integer\n'
+ exit "$FAIL_PREREQ"
+ fi
+
run "$base_ref" "$past_ref" "$abi_error_log" "$@"
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] check-uapi: reject zero and malformed job counts
2026-09-28 23:44 [PATCH] check-uapi: reject zero and malformed job counts omer zalman
@ 2026-09-29 4:40 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2026-09-29 4:40 UTC (permalink / raw)
To: omer zalman; +Cc: akpm, arnd, quic_johmoo, linux-api, linux-kernel
On Mon, Sep 28, 2026 at 07:44:32PM -0400, omer zalman wrote:
> With -j 0, the per-header loop waits on an empty PID before any
> worker starts. It counts that wait error as an ABI failure even when
> the header passes. Reject non-positive or malformed job counts as
> prerequisite errors before starting the check.
>
> Signed-off-by: Omer Zalman <omerzalman42@gmail.com>
>
> The exact git-format-patch file is attached because Gmail's web
> composer removes tabs from inline diffs.
Please do not use gmail web interface for patches, the email
documentation in the kernel should explain how to do this properly.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-09-29 4:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-28 23:44 [PATCH] check-uapi: reject zero and malformed job counts omer zalman
2026-09-29 4:40 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®