public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Bug#1104745: gcc-15 ICE compiling linux kernel 6.14.5 with CONFIG_RANDSTRUCT
       [not found] <174645965734.16657.5032027654487191240.reportbug@spatz.zoo>
@ 2025-06-04 20:43 ` Uwe Kleine-König
  2025-06-05  8:43   ` Greg KH
  2025-06-08  8:25   ` Ingo Saitz
  0 siblings, 2 replies; 5+ messages in thread
From: Uwe Kleine-König @ 2025-06-04 20:43 UTC (permalink / raw)
  To: Ingo Saitz, 1104745; +Cc: stable

[-- Attachment #1: Type: text/plain, Size: 823 bytes --]

Control: tag -1 + fixed-upstream
Control: forwarded -1 https://lore.kernel.org/r/20250530221824.work.623-kees@kernel.org

Hello,

On Mon, May 05, 2025 at 05:40:57PM +0200, Ingo Saitz wrote:
> When compiling the linux kernel (tested on 6.15-rc5 and 6.14.5 from
> kernel.org) with CONFIG_RANDSTRUCT enabled, gcc-15 throws an ICE:
> 
> arch/x86/kernel/cpu/proc.c:174:14: internal compiler error: in comptypes_check_enum_int, at c/c-typeck.cc:1516
>   174 | const struct seq_operations cpuinfo_op = {
>       |              ^~~~~~~~~~~~~~

This is claimed to be fixed in upstream by commit
https://git.kernel.org/linus/f39f18f3c3531aa802b58a20d39d96e82eb96c14
that is scheduled to be included in 6.16-rc1.

This wasn't explicitly marked for stable, but I think a backport would
be good.

Best regards
Uwe

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: Bug#1104745: gcc-15 ICE compiling linux kernel 6.14.5 with CONFIG_RANDSTRUCT
  2025-06-04 20:43 ` Bug#1104745: gcc-15 ICE compiling linux kernel 6.14.5 with CONFIG_RANDSTRUCT Uwe Kleine-König
@ 2025-06-05  8:43   ` Greg KH
  2025-06-08  8:25   ` Ingo Saitz
  1 sibling, 0 replies; 5+ messages in thread
From: Greg KH @ 2025-06-05  8:43 UTC (permalink / raw)
  To: Uwe Kleine-König; +Cc: Ingo Saitz, 1104745, stable

On Wed, Jun 04, 2025 at 10:43:11PM +0200, Uwe Kleine-König wrote:
> Control: tag -1 + fixed-upstream
> Control: forwarded -1 https://lore.kernel.org/r/20250530221824.work.623-kees@kernel.org
> 
> Hello,
> 
> On Mon, May 05, 2025 at 05:40:57PM +0200, Ingo Saitz wrote:
> > When compiling the linux kernel (tested on 6.15-rc5 and 6.14.5 from
> > kernel.org) with CONFIG_RANDSTRUCT enabled, gcc-15 throws an ICE:
> > 
> > arch/x86/kernel/cpu/proc.c:174:14: internal compiler error: in comptypes_check_enum_int, at c/c-typeck.cc:1516
> >   174 | const struct seq_operations cpuinfo_op = {
> >       |              ^~~~~~~~~~~~~~
> 
> This is claimed to be fixed in upstream by commit
> https://git.kernel.org/linus/f39f18f3c3531aa802b58a20d39d96e82eb96c14
> that is scheduled to be included in 6.16-rc1.
> 
> This wasn't explicitly marked for stable, but I think a backport would
> be good.

Does not apply cleanly, we need backports submitted to us to be able to
take it.

thanks,

greg k-h

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

* Re: Bug#1104745: gcc-15 ICE compiling linux kernel 6.14.5 with CONFIG_RANDSTRUCT
  2025-06-04 20:43 ` Bug#1104745: gcc-15 ICE compiling linux kernel 6.14.5 with CONFIG_RANDSTRUCT Uwe Kleine-König
  2025-06-05  8:43   ` Greg KH
@ 2025-06-08  8:25   ` Ingo Saitz
  2025-06-11 16:40     ` Uwe Kleine-König
  1 sibling, 1 reply; 5+ messages in thread
From: Ingo Saitz @ 2025-06-08  8:25 UTC (permalink / raw)
  To: Uwe Kleine-König; +Cc: Ingo Saitz, 1104745, stable

On Wed, Jun 04, 2025 at 10:43:11PM +0200, Uwe Kleine-König wrote:
> Control: tag -1 + fixed-upstream
> Control: forwarded -1 https://lore.kernel.org/r/20250530221824.work.623-kees@kernel.org
> 
> Hello,
> 
> On Mon, May 05, 2025 at 05:40:57PM +0200, Ingo Saitz wrote:
> > When compiling the linux kernel (tested on 6.15-rc5 and 6.14.5 from
> > kernel.org) with CONFIG_RANDSTRUCT enabled, gcc-15 throws an ICE:
> > 
> > arch/x86/kernel/cpu/proc.c:174:14: internal compiler error: in comptypes_check_enum_int, at c/c-typeck.cc:1516
> >   174 | const struct seq_operations cpuinfo_op = {
> >       |              ^~~~~~~~~~~~~~
> 
> This is claimed to be fixed in upstream by commit
> https://git.kernel.org/linus/f39f18f3c3531aa802b58a20d39d96e82eb96c14
> that is scheduled to be included in 6.16-rc1.

I can confirm applying the patches

    e136a4062174a9a8d1c1447ca040ea81accfa6a8: randstruct: gcc-plugin: Remove bogus void member
    f39f18f3c3531aa802b58a20d39d96e82eb96c14: randstruct: gcc-plugin: Fix attribute addition

fixes the compile issue (on vanilla 6.12, 6.14 and 6.15 kernel trees;
the kernels seem to run fine, too, so far). The first patch was needed
for the second to apply cleanly. But I can try to backport only
f39f18f3c3531aa802b58a20d39d96e82eb96c14 and see if it still compiles.

> 
> This wasn't explicitly marked for stable, but I think a backport would
> be good.
> 
> Best regards
> Uwe



    Ingo
-- 
const_cast<long double>(Λ)

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

* Re: Bug#1104745: gcc-15 ICE compiling linux kernel 6.14.5 with CONFIG_RANDSTRUCT
  2025-06-08  8:25   ` Ingo Saitz
@ 2025-06-11 16:40     ` Uwe Kleine-König
  2025-06-23  8:22       ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: Uwe Kleine-König @ 2025-06-11 16:40 UTC (permalink / raw)
  To: Greg KH, Ingo Saitz; +Cc: 1104745, stable

[-- Attachment #1: Type: text/plain, Size: 1740 bytes --]

Hello Greg, hello Ingo,

On Sun, Jun 08, 2025 at 10:25:50AM +0200, Ingo Saitz wrote:
> On Wed, Jun 04, 2025 at 10:43:11PM +0200, Uwe Kleine-König wrote:
> > Control: tag -1 + fixed-upstream
> > Control: forwarded -1 https://lore.kernel.org/r/20250530221824.work.623-kees@kernel.org
> > 
> > Hello,
> > 
> > On Mon, May 05, 2025 at 05:40:57PM +0200, Ingo Saitz wrote:
> > > When compiling the linux kernel (tested on 6.15-rc5 and 6.14.5 from
> > > kernel.org) with CONFIG_RANDSTRUCT enabled, gcc-15 throws an ICE:
> > > 
> > > arch/x86/kernel/cpu/proc.c:174:14: internal compiler error: in comptypes_check_enum_int, at c/c-typeck.cc:1516
> > >   174 | const struct seq_operations cpuinfo_op = {
> > >       |              ^~~~~~~~~~~~~~
> > 
> > This is claimed to be fixed in upstream by commit
> > https://git.kernel.org/linus/f39f18f3c3531aa802b58a20d39d96e82eb96c14
> > that is scheduled to be included in 6.16-rc1.
> 
> I can confirm applying the patches
> 
>     e136a4062174a9a8d1c1447ca040ea81accfa6a8: randstruct: gcc-plugin: Remove bogus void member
>     f39f18f3c3531aa802b58a20d39d96e82eb96c14: randstruct: gcc-plugin: Fix attribute addition
> 
> fixes the compile issue (on vanilla 6.12, 6.14 and 6.15 kernel trees;
> the kernels seem to run fine, too, so far). The first patch was needed
> for the second to apply cleanly. But I can try to backport only
> f39f18f3c3531aa802b58a20d39d96e82eb96c14 and see if it still compiles.

@Ingo: Thanks for testing and confirming the backport works.

@gregkh: I think it's reasonable to backport both
e136a4062174a9a8d1c1447ca040ea81accfa6a8 and
f39f18f3c3531aa802b58a20d39d96e82eb96c14. Do you already have these on
your radar?

Best regards
Uwe

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: Bug#1104745: gcc-15 ICE compiling linux kernel 6.14.5 with CONFIG_RANDSTRUCT
  2025-06-11 16:40     ` Uwe Kleine-König
@ 2025-06-23  8:22       ` Greg KH
  0 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2025-06-23  8:22 UTC (permalink / raw)
  To: Uwe Kleine-König; +Cc: Ingo Saitz, 1104745, stable

On Wed, Jun 11, 2025 at 06:40:48PM +0200, Uwe Kleine-König wrote:
> Hello Greg, hello Ingo,
> 
> On Sun, Jun 08, 2025 at 10:25:50AM +0200, Ingo Saitz wrote:
> > On Wed, Jun 04, 2025 at 10:43:11PM +0200, Uwe Kleine-König wrote:
> > > Control: tag -1 + fixed-upstream
> > > Control: forwarded -1 https://lore.kernel.org/r/20250530221824.work.623-kees@kernel.org
> > > 
> > > Hello,
> > > 
> > > On Mon, May 05, 2025 at 05:40:57PM +0200, Ingo Saitz wrote:
> > > > When compiling the linux kernel (tested on 6.15-rc5 and 6.14.5 from
> > > > kernel.org) with CONFIG_RANDSTRUCT enabled, gcc-15 throws an ICE:
> > > > 
> > > > arch/x86/kernel/cpu/proc.c:174:14: internal compiler error: in comptypes_check_enum_int, at c/c-typeck.cc:1516
> > > >   174 | const struct seq_operations cpuinfo_op = {
> > > >       |              ^~~~~~~~~~~~~~
> > > 
> > > This is claimed to be fixed in upstream by commit
> > > https://git.kernel.org/linus/f39f18f3c3531aa802b58a20d39d96e82eb96c14
> > > that is scheduled to be included in 6.16-rc1.
> > 
> > I can confirm applying the patches
> > 
> >     e136a4062174a9a8d1c1447ca040ea81accfa6a8: randstruct: gcc-plugin: Remove bogus void member
> >     f39f18f3c3531aa802b58a20d39d96e82eb96c14: randstruct: gcc-plugin: Fix attribute addition
> > 
> > fixes the compile issue (on vanilla 6.12, 6.14 and 6.15 kernel trees;
> > the kernels seem to run fine, too, so far). The first patch was needed
> > for the second to apply cleanly. But I can try to backport only
> > f39f18f3c3531aa802b58a20d39d96e82eb96c14 and see if it still compiles.
> 
> @Ingo: Thanks for testing and confirming the backport works.
> 
> @gregkh: I think it's reasonable to backport both
> e136a4062174a9a8d1c1447ca040ea81accfa6a8 and
> f39f18f3c3531aa802b58a20d39d96e82eb96c14. Do you already have these on
> your radar?

They are in the stable queues now.

thanks,

greg k-h

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

end of thread, other threads:[~2025-06-23  8:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <174645965734.16657.5032027654487191240.reportbug@spatz.zoo>
2025-06-04 20:43 ` Bug#1104745: gcc-15 ICE compiling linux kernel 6.14.5 with CONFIG_RANDSTRUCT Uwe Kleine-König
2025-06-05  8:43   ` Greg KH
2025-06-08  8:25   ` Ingo Saitz
2025-06-11 16:40     ` Uwe Kleine-König
2025-06-23  8:22       ` Greg KH

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