linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Freeze on ppc32 MPC8248 board with 5.2 kernel
@ 2019-07-25 22:30 Doug Crawford
  2019-08-13  4:41 ` Christophe Leroy
  0 siblings, 1 reply; 2+ messages in thread
From: Doug Crawford @ 2019-07-25 22:30 UTC (permalink / raw)
  To: linuxppc-dev

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

We have a ppc32 MPC8248 board that is working perfectly with the 4.19
kernel.
We have noticed two issues with the 5.2 kernel:

1) If the new CONFIG_PPC_KUAP (kernel userspace access protection) is
enabled the kernel freezes right after initializing all the drivers and
just before starting /sbin/init.

2) If CONFIG_PPC_KUAP is disabled the system starts up, but any user space
program will hang indefinitely after calling the GCC atomic
"__sync_bool_compare_and_swap".  This happens when nginx starts.  The same
nginx binary works fine on a 4.19 kernel.

[-- Attachment #2: Type: text/html, Size: 647 bytes --]

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

* Re: Freeze on ppc32 MPC8248 board with 5.2 kernel
  2019-07-25 22:30 Freeze on ppc32 MPC8248 board with 5.2 kernel Doug Crawford
@ 2019-08-13  4:41 ` Christophe Leroy
  0 siblings, 0 replies; 2+ messages in thread
From: Christophe Leroy @ 2019-08-13  4:41 UTC (permalink / raw)
  To: Doug Crawford, linuxppc-dev

Hi Doug,

Le 26/07/2019 à 00:30, Doug Crawford a écrit :
> We have a ppc32 MPC8248 board that is working perfectly with the 4.19 
> kernel.
> We have noticed two issues with the 5.2 kernel:

  Have you tried 5.0 and 5.1 ?

> 
> 1) If the new CONFIG_PPC_KUAP (kernel userspace access protection) is 
> enabled the kernel freezes right after initializing all the drivers and 
> just before starting /sbin/init.

Can you provide your .config ?

Can you also provide the output of the boot console ?

> 
> 2) If CONFIG_PPC_KUAP is disabled the system starts up, but any user 
> space program will hang indefinitely after calling the GCC atomic 
> "__sync_bool_compare_and_swap".  This happens when nginx starts.  The 
> same nginx binary works fine on a 4.19 kernel.

Can you provide 'dmesg' ?

What version of GCC do you use ?

Have you tried a simple program doing nothing else than 
__sync_bool_compare_and_swap() ?

Can you provide a disassembly of the function that uses 
__sync_bool_compare_and_swap() ?

Thanks
Christophe

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

end of thread, other threads:[~2019-08-13  4:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-25 22:30 Freeze on ppc32 MPC8248 board with 5.2 kernel Doug Crawford
2019-08-13  4:41 ` Christophe Leroy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).