Linux kernel -stable discussions
 help / color / mirror / Atom feed
* Unable to compile 6.12 kernels on SPARC64 since 6.12.105
@ 2026-11-22 18:39 Iulian Vaideanu
  2026-11-23  5:03 ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Iulian Vaideanu @ 2026-11-22 18:39 UTC (permalink / raw)
  To: stable; +Cc: regressions

Hello everyone,

Ever since 6.12.105 I cannot "make bindeb-pkg" vanilla kernels
(platform is Debian unstable on bare-metal Netra SPARC T4-1, GCC 16.1
or 16.2 from Debian ports) - it always ends in the error below in
fcntl.c, probably brought up by one of the fsnotify-related commits in
105.

Is there anything I can do to work around this?

Thank you.

Iulian

  CC      fs/fcntl.o
In file included from <command-line>:
fs/fcntl.c: In function ‘fcntl_init’:
././include/linux/compiler_types.h:543:45: error: call to
‘__compiletime_assert_443’ declared with attribute error: BUILD_BUG_ON
failed: 21 - 1 != HWEIGHT32( (VALID_OPEN_FLAGS & ~(O_NONBLOCK |
O_NDELAY)) | __FMODE_EXEC | __FMODE_NONOTIFY)
  543 |         _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
      |                                             ^
././include/linux/compiler_types.h:524:25: note: in definition of
macro ‘__compiletime_assert’
  524 |                         prefix ## suffix();
         \
      |                         ^~~~~~
././include/linux/compiler_types.h:543:9: note: in expansion of macro
‘_compiletime_assert’
  543 |         _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
      |         ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro
‘compiletime_assert’
   39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
      |                                     ^~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:50:9: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
   50 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
      |         ^~~~~~~~~~~~~~~~
fs/fcntl.c:1169:9: note: in expansion of macro ‘BUILD_BUG_ON’
 1169 |         BUILD_BUG_ON(21 - 1 /* for O_RDONLY being 0 */ !=
      |         ^~~~~~~~~~~~
make[6]: *** [scripts/Makefile.build:229: fs/fcntl.o] Error 1
make[5]: *** [scripts/Makefile.build:466: fs] Error 2
make[4]: *** [Makefile:1983: .] Error 2
make[3]: *** [debian/rules:76: build-arch] Error 2
dpkg-buildpackage: error: make -f debian/rules binary subprocess
failed with exit status 2
make[2]: *** [scripts/Makefile.package:126: bindeb-pkg] Error 2
make[1]: *** [/home/linux-kernel/linux-6.12.118/Makefile:1604:
bindeb-pkg] Error 2
make: *** [Makefile:224: __sub-make] Error 2

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Unable to compile 6.12 kernels on SPARC64 since 6.12.105
  2026-11-22 18:39 Unable to compile 6.12 kernels on SPARC64 since 6.12.105 Iulian Vaideanu
@ 2026-11-23  5:03 ` Greg KH
  2026-11-23  6:06   ` Thorsten Leemhuis
  0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2026-11-23  5:03 UTC (permalink / raw)
  To: Iulian Vaideanu; +Cc: stable, regressions

On Sun, Nov 22, 2026 at 08:39:18PM +0200, Iulian Vaideanu wrote:
> Hello everyone,
> 
> Ever since 6.12.105 I cannot "make bindeb-pkg" vanilla kernels
> (platform is Debian unstable on bare-metal Netra SPARC T4-1, GCC 16.1
> or 16.2 from Debian ports) - it always ends in the error below in
> fcntl.c, probably brought up by one of the fsnotify-related commits in
> 105.
> 
> Is there anything I can do to work around this?

Can you use 'git bisect' to track down the offending change?


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Unable to compile 6.12 kernels on SPARC64 since 6.12.105
  2026-11-23  5:03 ` Greg KH
@ 2026-11-23  6:06   ` Thorsten Leemhuis
  2026-11-24  0:11     ` Sasha Levin
  0 siblings, 1 reply; 4+ messages in thread
From: Thorsten Leemhuis @ 2026-11-23  6:06 UTC (permalink / raw)
  To: Greg KH, Iulian Vaideanu; +Cc: stable, regressions

On 11/23/26 06:03, Greg KH wrote:
> On Sun, Nov 22, 2026 at 08:39:18PM +0200, Iulian Vaideanu wrote:
>>
>> Ever since 6.12.105 I cannot "make bindeb-pkg" vanilla kernels
>> (platform is Debian unstable on bare-metal Netra SPARC T4-1, GCC 16.1
>> or 16.2 from Debian ports) - it always ends in the error below in
>> fcntl.c, probably brought up by one of the fsnotify-related commits in
>> 105.
>>
>> Is there anything I can do to work around this?
> 
> Can you use 'git bisect' to track down the offending change?

Not my area of expertise, so this might be misleading, but FWIW:

Wondering if this is related to another sparc build problem in the same
area for which a fix was recently queued for 6.12.y, but then dropped
for now to prevent a deadlock situation:

* https://lore.kernel.org/all/2026102206-trinity-feminism-b082@gregkh/
*
https://lore.kernel.org/all/09fded57a6074dd89485.sashal-rc-0003@kernel.org/

Ciao, Thorsten

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Unable to compile 6.12 kernels on SPARC64 since 6.12.105
  2026-11-23  6:06   ` Thorsten Leemhuis
@ 2026-11-24  0:11     ` Sasha Levin
  0 siblings, 0 replies; 4+ messages in thread
From: Sasha Levin @ 2026-11-24  0:11 UTC (permalink / raw)
  To: Greg KH, Iulian Vaideanu
  Cc: Sasha Levin, stable, regressions, Thorsten Leemhuis

> Wondering if this is related to another sparc build problem in the same
> area for which a fix was recently queued for 6.12.y, but then dropped
> for now to prevent a deadlock situation:

Yes, that's the one. 6.12.105 took a backport of a94204f4d48e ("fsnotify:
opt-in for permission events at file open time"), which moved
FMODE_NONOTIFY to bit 25. On sparc that is the same bit as __O_TMPFILE,
so the BUILD_BUG_ON in fcntl_init() fires.

The upstream fix, ebe559609d78 ("fs: get rid of __FMODE_NONOTIFY kludge"),
can't simply be requeued: two overlayfs backports released in 6.12.119
still use __FMODE_NONOTIFY, which it removes. I'll send a 6.12-only patch
that moves FMODE_NONOTIFY back to bit 26 and FMODE_NONOTIFY_PERM to bit 25.

Iulian, until that lands, swapping those two values in include/linux/fs.h
works around it locally.

-- 
Thanks,
Sasha

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-24  0:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-22 18:39 Unable to compile 6.12 kernels on SPARC64 since 6.12.105 Iulian Vaideanu
2026-11-23  5:03 ` Greg KH
2026-11-23  6:06   ` Thorsten Leemhuis
2026-11-24  0:11     ` Sasha Levin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox