All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike-SPC via Bugspray Bot <bugbot@kernel.org>
To: cel@kernel.org, jlayton@kernel.org, neilb@ownmail.net,
	 trondmy@kernel.org, linux-nfs@vger.kernel.org, anna@kernel.org,
	 neilb@brown.name
Subject: Re: Compile Error fs/nfsd/nfs4state.o - clamp() low limit slotsize greater than high limit total_avail/scale_factor
Date: Thu, 06 Nov 2025 11:30:10 +0000	[thread overview]
Message-ID: <20251106-b220745c6-0a65ef0b5697@bugzilla.kernel.org> (raw)
In-Reply-To: <ab235dbe-7949-4208-a21a-2cdd50347152@kernel.org>

Mike-SPC writes via Kernel.org Bugzilla:

(In reply to Bugspray Bot from comment #5)
> Chuck Lever <cel@kernel.org> replies to comment #4:
> 
> On 11/5/25 7:25 AM, Mike-SPC via Bugspray Bot wrote:
> > Mike-SPC writes via Kernel.org Bugzilla:
> > 
> >> Have you found a 6.1.y kernel for which the build doesn't fail?
> > 
> > Yes. Compiling Version 6.1.155 works without problems.
> > Versions >= 6.1.156 aren't.
> 
> My analysis yesterday suggests that, because the nfs4state.c code hasn't
> changed, it's probably something elsewhere that introduced this problem.
> As we can't reproduce the issue, can you use "git bisect" between
> v6.1.155 and v6.1.156 to find the culprit commit?
> 
> (via https://msgid.link/ab235dbe-7949-4208-a21a-2cdd50347152@kernel.org)


Yes, your analysis is right (thanks for it).
After some investigation, the issue appears to be caused by changes introduced in
include/linux/minmax.h.

I verified this by replacing minmax.h in 6.1.156 with the version from 6.1.155,
and the kernel then compiles successfully.

The relevant section in the 6.1.156 changelog (https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.1.156) shows several modifications to minmax.h (notably around __clamp_once() and the use of
BUILD_BUG_ON_MSG(statically_true(ulo > uhi), ...)), which seem to trigger a compile-time assertion when building NFSD.

Replacing the updated header with the previous one resolves the issue, so this appears
to be a regression introduced by the new clamp() logic.

Could you please advise who is the right person or mailing list to report this issue to
(minmax.h maintainers, kernel core, or stable tree)?

Regards,
Michael

View: https://bugzilla.kernel.org/show_bug.cgi?id=220745#c6
You can reply to this message to join the discussion.
-- 
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)


  reply	other threads:[~2025-11-06 11:30 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-04 14:15 Compile Error fs/nfsd/nfs4state.o - clamp() low limit slotsize greater than high limit total_avail/scale_factor Mike-SPC via Bugspray Bot
2025-11-04 14:50 ` Chuck Lever
2025-11-04 22:20   ` NeilBrown
2025-11-05  8:25     ` Mike-SPC via Bugspray Bot
2025-11-05 12:25 ` Mike-SPC via Bugspray Bot
2025-11-05 14:29   ` Chuck Lever
2025-11-06 11:30     ` Mike-SPC via Bugspray Bot [this message]
2025-11-06 12:29       ` Jeff Layton
2025-11-06 14:33         ` Fwd: " Chuck Lever
2025-11-06 19:22           ` David Laight
2025-11-06 19:32             ` Chuck Lever
2025-11-06 22:39               ` David Laight
2025-11-07 11:17             ` NeilBrown
2025-11-07 11:43               ` David Laight
2025-11-07 22:49                 ` NeilBrown
2025-11-08 15:49                   ` Chuck Lever
2025-11-08 22:40                     ` David Laight
2025-11-15 11:00 ` Mike-SPC via Bugspray Bot

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=20251106-b220745c6-0a65ef0b5697@bugzilla.kernel.org \
    --to=bugbot@kernel.org \
    --cc=anna@kernel.org \
    --cc=cel@kernel.org \
    --cc=jlayton@kernel.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=neilb@brown.name \
    --cc=neilb@ownmail.net \
    --cc=trondmy@kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.