* Request: xen/PVH: Set up GS segment for stack canary
@ 2018-07-25 19:11 Jason Andryuk
2018-07-26 15:06 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Jason Andryuk @ 2018-07-25 19:11 UTC (permalink / raw)
To: stable; +Cc: Boris Ostrovsky, Juergen Gross
xen/PVH: Set up GS segment for stack canary
commit 98014068328c5574de9a4a30b604111fd9d8f901 upstream
A 32bit PVH Xen kernel with CONFIG_CC_STACKPROTECTOR_STRONG fails to
boot. Xen detects a triple fault and kills the domain. The IP was
xen_prepare_pvh+9 corresponding to:
mov %gs:0x14,%eax
The 32bit kernel hasn't setup %gs when calling into xen_prepare_pvh.
Curiously, 64bit was not affected. The requested patch sets up the
canary for PVH to boot successfully.
This is applicable to and has been tested on 4.14. It is also
applicable to 4.17.
Thanks,
Jason
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Request: xen/PVH: Set up GS segment for stack canary
2018-07-25 19:11 Request: xen/PVH: Set up GS segment for stack canary Jason Andryuk
@ 2018-07-26 15:06 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2018-07-26 15:06 UTC (permalink / raw)
To: Jason Andryuk; +Cc: stable, Boris Ostrovsky, Juergen Gross
On Wed, Jul 25, 2018 at 03:11:10PM -0400, Jason Andryuk wrote:
> xen/PVH: Set up GS segment for stack canary
>
> commit 98014068328c5574de9a4a30b604111fd9d8f901 upstream
>
> A 32bit PVH Xen kernel with CONFIG_CC_STACKPROTECTOR_STRONG fails to
> boot. Xen detects a triple fault and kills the domain. The IP was
> xen_prepare_pvh+9 corresponding to:
> mov %gs:0x14,%eax
>
> The 32bit kernel hasn't setup %gs when calling into xen_prepare_pvh.
> Curiously, 64bit was not affected. The requested patch sets up the
> canary for PVH to boot successfully.
>
> This is applicable to and has been tested on 4.14. It is also
> applicable to 4.17.
Thanks, now queued up.
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-26 16:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-25 19:11 Request: xen/PVH: Set up GS segment for stack canary Jason Andryuk
2018-07-26 15:06 ` Greg KH
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).