mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nathan Chancellor <nathan@kernel.org>
To: Kees Cook <kees@kernel.org>
Cc: Nicolas Schier <nsc@kernel.org>, Lorenzo Stoakes <ljs@kernel.org>,
	Manuel Ebner <manuelebnerli@mailbox.org>,
	Ard Biesheuvel <ardb@kernel.org>,
	"Paul E . McKenney" <paulmck@kernel.org>,
	Nicolas Schier <n.schier@fritz.com>,
	Sami Tolvanen <samitolvanen@google.com>,
	linux-kbuild@vger.kernel.org, llvm@lists.linux.dev,
	linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org
Subject: Re: [PATCH v2 0/2] kbuild: Give jobserver-exec recipes the jobserver
Date: Sat, 10 Oct 2026 14:48:29 +0100	[thread overview]
Message-ID: <20261010134829.GB1853402@ax162> (raw)
In-Reply-To: <20261010081910.stay.092-kees@kernel.org>

On Sat, Oct 10, 2026 at 01:19:09AM -0700, Kees Cook wrote:
> Hi!
> 
> Paul reported a build failure on CentOS Stream 9 with linux-next[1]: the
> kernel builds, but scripts/jobserver-exec prints
> 
>   WARNING: Unable to reopen jobserver read-side pipe: FileNotFoundError(2, 'No such file or directory')
> 
> and rcutorture's build check counts the "Error" in that line. CentOS's
> make 4.3 carries a backport of the fix for GNU Make bug 58232, so
> sub-makes, like the top-level make, give the jobserver pipe only to
> recipes marked recursive, while MAKEFLAGS still names it. The new pigz
> steps (1/2), for the kernel image, the built-in initramfs, and the other
> gzip rules, and the older Clang LTO initcall ordering step (2/2) run
> jobserver-exec from recipes without "+", so pigz gets one thread and the
> initcall script caps its children at the CPU count instead of the free
> job slots. Mark these recipes recursive, as was done for rustc.
> 
> Thanks!
> 
> -Kees
> 
>  v2:
>  - 1/2: also mark the gzip rules that choose gzip through a variable,
>    including the built-in initramfs in usr/Makefile, which rcutorture's
>    kvm.sh builds and v1 missed (Paul)
>  - 1/2: update the gzip entry in Documentation/kbuild/makefiles.rst
>    (Nicolas)
>  - 2/2: cite Masahiro's earlier version of this change and say when the
>    script gets more than one archive (Nicolas)
>  - v1..v2 diff: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git/diff/?id=dev/next-20261001/pigz-recursive/v2&id2=dev/next-20261001/pigz-recursive/v1
>  v1: https://lore.kernel.org/all/20261009062722.i.253-kees@kernel.org/
> 
> [1] https://lore.kernel.org/all/0ddb5e5e-f801-444c-aa98-0cfe814a3026@paulmck-laptop/
> 
> Kees Cook (2):
>   kbuild: Mark the gzip recipes as recursive
>   kbuild: Mark the initcall ordering recipe as recursive

I've kicked these into -next, I will formally apply them to
kbuild-next-speedups once Paul can confirm that it resolves his
regression. Thanks a lot for the assist here!

-- 
Cheers,
Nathan

  parent reply	other threads:[~2026-10-10 13:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-10  8:19 Kees Cook
2026-10-10  8:19 ` [PATCH v2 1/2] kbuild: Mark the gzip recipes as recursive Kees Cook
2026-10-10  8:19 ` [PATCH v2 2/2] kbuild: Mark the initcall ordering recipe " Kees Cook
2026-10-10 13:48 ` Nathan Chancellor [this message]
2026-10-10 21:07   ` [PATCH v2 0/2] kbuild: Give jobserver-exec recipes the jobserver Paul E. McKenney
2026-10-11  0:24 ` Nathan Chancellor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261010134829.GB1853402@ax162 \
    --to=nathan@kernel.org \
    --cc=ardb@kernel.org \
    --cc=kees@kernel.org \
    --cc=linux-hardening@vger.kernel.org \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ljs@kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=manuelebnerli@mailbox.org \
    --cc=n.schier@fritz.com \
    --cc=nsc@kernel.org \
    --cc=paulmck@kernel.org \
    --cc=samitolvanen@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®