LinuxPPC-Dev Archive on lore.kernel.org
 help / color / 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 --]

<div dir="ltr">We have a ppc32 MPC8248 board that is working perfectly with the 4.19 kernel.<div>We have noticed two issues with the 5.2 kernel:<div><br></div><div>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.</div></div><div><br></div><div>2) If CONFIG_PPC_KUAP is disabled the system starts up, but any user space program will hang indefinitely after calling the GCC atomic &quot;__sync_bool_compare_and_swap&quot;.  This happens when nginx starts.  The same nginx binary works fine on a 4.19 kernel.</div></div>

^ 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, back to index

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

LinuxPPC-Dev Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linuxppc-dev/0 linuxppc-dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linuxppc-dev linuxppc-dev/ https://lore.kernel.org/linuxppc-dev \
		linuxppc-dev@lists.ozlabs.org linuxppc-dev@ozlabs.org linuxppc-dev@archiver.kernel.org
	public-inbox-index linuxppc-dev


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.ozlabs.lists.linuxppc-dev


AGPL code for this site: git clone https://public-inbox.org/ public-inbox