mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Random shadow stack pointer corruption
@ 2020-07-18 17:57 Yu-cheng Yu
  2020-07-18 18:00 ` Andy Lutomirski
  0 siblings, 1 reply; 9+ messages in thread
From: Yu-cheng Yu @ 2020-07-18 17:57 UTC (permalink / raw)
  To: LKML, x86, Andy Lutomirski, Borislav Petkov, Dave Hansen,
	H.J. Lu, Ingo Molnar, Ravi V. Shankar, Sebastian Andrzej Siewior,
	Tony Luck, Thomas Gleixner, Peter Zijlstra, Weijiang Yang

Hi,

My shadow stack tests start to have random shadow stack pointer corruption after
v5.7 (excluding).  The symptom looks like some locking issue or the kernel is
confused about which CPU a task is on.  In later tip/master, this can be
triggered by creating two tasks and each does continuous
pthread_create()/pthread_join().  If the kernel has max_cpus=1, the issue goes
away.  I also checked XSAVES/XRSTORS, but this does not seem to be an issue
coming from there.

The tests I run take a long time to complete, and some commit points in bisect
do not show failures right away.  However, the issue can be more easily
triggered after the point of:

d77290507ab2 x86/entry/32: Convert IRET exception to IDTENTRY_SW

Can anyone help me find places to look at?

Thanks,
Yu-cheng


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

end of thread, other threads:[~2020-07-29  0:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-18 17:57 Random shadow stack pointer corruption Yu-cheng Yu
2020-07-18 18:00 ` Andy Lutomirski
2020-07-18 18:24   ` Yu-cheng Yu
2020-07-18 18:27     ` Andy Lutomirski
2020-07-18 22:41     ` Dave Hansen
2020-07-18 23:04       ` H.J. Lu
2020-07-18 23:34       ` Yu-cheng Yu
2020-07-29  0:35         ` H.J. Lu
2020-07-29  0:56           ` Andy Lutomirski

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

all inboxes | Powered by JetHome®