All of lore.kernel.org
 help / color / mirror / Atom feed
* dom0pvh issue with XEN 4.8.0
@ 2017-02-05  8:05 G.R.
  2017-02-05  8:21 ` Steven Haigh
  2017-02-06  9:33 ` Pasi Kärkkäinen
  0 siblings, 2 replies; 5+ messages in thread
From: G.R. @ 2017-02-05  8:05 UTC (permalink / raw)
  To: xen-devel

Hi all,
dom0pvh=1 is not working well for me with XEN 4.8.0 + linux kernel 4.9.2.

The system boots with no obvious issue.
But many user mode application are suffering from segfault, which
makes the dom0 not useable: The segfault always come from libc-2.24.so
while it works just fine in PV dom0.
I have no idea why, but those segfault would kill my ssh connection
while sshd is not showing up in the victim list.

Some examples:
Feb  5 14:25:28 gaia kernel: [  123.446346] getty[3044]: segfault at 0
ip 00007f5e769e6c60 sp 00007ffc57bc0a98 error 6 in
libc-2.24.so[7f5e769b7000+195000]
Feb  5 14:29:04 gaia kernel: [  339.671742] grep[4195]: segfault at 0
ip 00007f5d3b95ac60 sp 00007ffcc1620bb8 error 6 in
libc-2.24.so[7f5d3b92b000+195000]
Feb  5 14:29:23 gaia kernel: [  358.495888] tail[4203]: segfault at 0
ip 00007f751314bc60 sp 00007fffe5ce5e48 error 6 in
libc-2.24.so[7f751311c000+195000]
Feb  5 14:35:06 gaia kernel: [  701.314247] bash[4323]: segfault at 0
ip 00007f3fef30ec60 sp 00007ffd48cc2058 error 6 in
libc-2.24.so[7f3fef2df000+195000]
Feb  5 14:48:43 gaia kernel: [ 1518.809924] ls[4910]: segfault at 0 ip
00007f29e9bc1c60 sp 00007ffd712752b8 error 6 in
libc-2.24.so[7f29e9b92000+195000]

Any suggestion on how to get this fixed?
I don't think I can do live debug since the userspace is quite unstable.
On the other hand, dmesg from both dom0 && XEN looks just fine.

PS: I'm using a custom compiled dom0 kernel. Is there any specific
kernel config is required to get dom0pvh=1 work?

Thanks,
Rui

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

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

* Re: dom0pvh issue with XEN 4.8.0
  2017-02-05  8:05 dom0pvh issue with XEN 4.8.0 G.R.
@ 2017-02-05  8:21 ` Steven Haigh
  2017-02-06  9:33 ` Pasi Kärkkäinen
  1 sibling, 0 replies; 5+ messages in thread
From: Steven Haigh @ 2017-02-05  8:21 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1937 bytes --]

On Sunday, 5 February 2017 4:05:32 PM AEDT G.R. wrote:
> Hi all,
> dom0pvh=1 is not working well for me with XEN 4.8.0 + linux kernel 4.9.2.
> 
> The system boots with no obvious issue.
> But many user mode application are suffering from segfault, which
> makes the dom0 not useable: The segfault always come from libc-2.24.so
> while it works just fine in PV dom0.
> I have no idea why, but those segfault would kill my ssh connection
> while sshd is not showing up in the victim list.
> 
> Some examples:
> Feb  5 14:25:28 gaia kernel: [  123.446346] getty[3044]: segfault at 0
> ip 00007f5e769e6c60 sp 00007ffc57bc0a98 error 6 in
> libc-2.24.so[7f5e769b7000+195000]
> Feb  5 14:29:04 gaia kernel: [  339.671742] grep[4195]: segfault at 0
> ip 00007f5d3b95ac60 sp 00007ffcc1620bb8 error 6 in
> libc-2.24.so[7f5d3b92b000+195000]
> Feb  5 14:29:23 gaia kernel: [  358.495888] tail[4203]: segfault at 0
> ip 00007f751314bc60 sp 00007fffe5ce5e48 error 6 in
> libc-2.24.so[7f751311c000+195000]
> Feb  5 14:35:06 gaia kernel: [  701.314247] bash[4323]: segfault at 0
> ip 00007f3fef30ec60 sp 00007ffd48cc2058 error 6 in
> libc-2.24.so[7f3fef2df000+195000]
> Feb  5 14:48:43 gaia kernel: [ 1518.809924] ls[4910]: segfault at 0 ip
> 00007f29e9bc1c60 sp 00007ffd712752b8 error 6 in
> libc-2.24.so[7f29e9b92000+195000]
> 
> Any suggestion on how to get this fixed?
> I don't think I can do live debug since the userspace is quite unstable.
> On the other hand, dmesg from both dom0 && XEN looks just fine.
> 
> PS: I'm using a custom compiled dom0 kernel. Is there any specific
> kernel config is required to get dom0pvh=1 work?

I've been down this path before - and the only thing that gave me stability 
back was to disable the pvh options. I had everything from disk corruption to 
what you mention with apps while trying this option.

-- 
Steven Haigh

Email: netwiz@crc.id.au
Web: http://www.crc.id.au
Phone: (03) 9001 6090 - 0412 935 897

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

[-- Attachment #2: Type: text/plain, Size: 127 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

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

* Re: dom0pvh issue with XEN 4.8.0
  2017-02-05  8:05 dom0pvh issue with XEN 4.8.0 G.R.
  2017-02-05  8:21 ` Steven Haigh
@ 2017-02-06  9:33 ` Pasi Kärkkäinen
  2017-02-06 10:25   ` G.R.
  1 sibling, 1 reply; 5+ messages in thread
From: Pasi Kärkkäinen @ 2017-02-06  9:33 UTC (permalink / raw)
  To: G.R.; +Cc: xen-devel

Hi,

On Sun, Feb 05, 2017 at 04:05:32PM +0800, G.R. wrote:
> Hi all,
> dom0pvh=1 is not working well for me with XEN 4.8.0 + linux kernel 4.9.2.
> 
> The system boots with no obvious issue.
> But many user mode application are suffering from segfault, which
> makes the dom0 not useable: The segfault always come from libc-2.24.so
> while it works just fine in PV dom0.
> I have no idea why, but those segfault would kill my ssh connection
> while sshd is not showing up in the victim list.
> 
> Some examples:
> Feb  5 14:25:28 gaia kernel: [  123.446346] getty[3044]: segfault at 0
> ip 00007f5e769e6c60 sp 00007ffc57bc0a98 error 6 in
> libc-2.24.so[7f5e769b7000+195000]
> Feb  5 14:29:04 gaia kernel: [  339.671742] grep[4195]: segfault at 0
> ip 00007f5d3b95ac60 sp 00007ffcc1620bb8 error 6 in
> libc-2.24.so[7f5d3b92b000+195000]
> Feb  5 14:29:23 gaia kernel: [  358.495888] tail[4203]: segfault at 0
> ip 00007f751314bc60 sp 00007fffe5ce5e48 error 6 in
> libc-2.24.so[7f751311c000+195000]
> Feb  5 14:35:06 gaia kernel: [  701.314247] bash[4323]: segfault at 0
> ip 00007f3fef30ec60 sp 00007ffd48cc2058 error 6 in
> libc-2.24.so[7f3fef2df000+195000]
> Feb  5 14:48:43 gaia kernel: [ 1518.809924] ls[4910]: segfault at 0 ip
> 00007f29e9bc1c60 sp 00007ffd712752b8 error 6 in
> libc-2.24.so[7f29e9b92000+195000]
> 
> Any suggestion on how to get this fixed?
> I don't think I can do live debug since the userspace is quite unstable.
> On the other hand, dmesg from both dom0 && XEN looks just fine.
> 
> PS: I'm using a custom compiled dom0 kernel. Is there any specific
> kernel config is required to get dom0pvh=1 work?
>

I think the plan is to replace/rewrite the PVH (dom0) support with PVHv2,
see Roger's recent series here on xen-devel mailinglist.. 

 
> Thanks,
> Rui
> 


-- Pasi


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

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

* Re: dom0pvh issue with XEN 4.8.0
  2017-02-06  9:33 ` Pasi Kärkkäinen
@ 2017-02-06 10:25   ` G.R.
  2017-02-07 13:02     ` Roger Pau Monné
  0 siblings, 1 reply; 5+ messages in thread
From: G.R. @ 2017-02-06 10:25 UTC (permalink / raw)
  To: Pasi Kärkkäinen; +Cc: xen-devel

On Mon, Feb 6, 2017 at 5:33 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote:
> Hi,
>
> On Sun, Feb 05, 2017 at 04:05:32PM +0800, G.R. wrote:
>> Hi all,
>> dom0pvh=1 is not working well for me with XEN 4.8.0 + linux kernel 4.9.2.
>>
>> The system boots with no obvious issue.
>> But many user mode application are suffering from segfault, which
>> makes the dom0 not useable: The segfault always come from libc-2.24.so
>> while it works just fine in PV dom0.
>> I have no idea why, but those segfault would kill my ssh connection
>> while sshd is not showing up in the victim list.
>>
>> Some examples:
>> Feb  5 14:25:28 gaia kernel: [  123.446346] getty[3044]: segfault at 0
>> ip 00007f5e769e6c60 sp 00007ffc57bc0a98 error 6 in
>> libc-2.24.so[7f5e769b7000+195000]
>> Feb  5 14:29:04 gaia kernel: [  339.671742] grep[4195]: segfault at 0
>> ip 00007f5d3b95ac60 sp 00007ffcc1620bb8 error 6 in
>> libc-2.24.so[7f5d3b92b000+195000]
>> Feb  5 14:29:23 gaia kernel: [  358.495888] tail[4203]: segfault at 0
>> ip 00007f751314bc60 sp 00007fffe5ce5e48 error 6 in
>> libc-2.24.so[7f751311c000+195000]
>> Feb  5 14:35:06 gaia kernel: [  701.314247] bash[4323]: segfault at 0
>> ip 00007f3fef30ec60 sp 00007ffd48cc2058 error 6 in
>> libc-2.24.so[7f3fef2df000+195000]
>> Feb  5 14:48:43 gaia kernel: [ 1518.809924] ls[4910]: segfault at 0 ip
>> 00007f29e9bc1c60 sp 00007ffd712752b8 error 6 in
>> libc-2.24.so[7f29e9b92000+195000]
>>
>> Any suggestion on how to get this fixed?
>> I don't think I can do live debug since the userspace is quite unstable.
>> On the other hand, dmesg from both dom0 && XEN looks just fine.
>>
>> PS: I'm using a custom compiled dom0 kernel. Is there any specific
>> kernel config is required to get dom0pvh=1 work?
>>
>
> I think the plan is to replace/rewrite the PVH (dom0) support with PVHv2,
> see Roger's recent series here on xen-devel mailinglist..
>

Thanks for all your input.
Just had another check on the feature sheet, really didn't notice that
PVH is still an 'preview' feature.
Had the wrong impression since the feature had been announced for 2~3
years anyway.
Will avoid this for the moment.

Rui

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

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

* Re: dom0pvh issue with XEN 4.8.0
  2017-02-06 10:25   ` G.R.
@ 2017-02-07 13:02     ` Roger Pau Monné
  0 siblings, 0 replies; 5+ messages in thread
From: Roger Pau Monné @ 2017-02-07 13:02 UTC (permalink / raw)
  To: G.R.; +Cc: xen-devel

On Mon, Feb 06, 2017 at 06:25:57PM +0800, G.R. wrote:
> On Mon, Feb 6, 2017 at 5:33 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote:
> > Hi,
> >
> > On Sun, Feb 05, 2017 at 04:05:32PM +0800, G.R. wrote:
> >> Hi all,
> >> dom0pvh=1 is not working well for me with XEN 4.8.0 + linux kernel 4.9.2.
> >>
> >> The system boots with no obvious issue.
> >> But many user mode application are suffering from segfault, which
> >> makes the dom0 not useable: The segfault always come from libc-2.24.so
> >> while it works just fine in PV dom0.
> >> I have no idea why, but those segfault would kill my ssh connection
> >> while sshd is not showing up in the victim list.
> >>
> >> Some examples:
> >> Feb  5 14:25:28 gaia kernel: [  123.446346] getty[3044]: segfault at 0
> >> ip 00007f5e769e6c60 sp 00007ffc57bc0a98 error 6 in
> >> libc-2.24.so[7f5e769b7000+195000]
> >> Feb  5 14:29:04 gaia kernel: [  339.671742] grep[4195]: segfault at 0
> >> ip 00007f5d3b95ac60 sp 00007ffcc1620bb8 error 6 in
> >> libc-2.24.so[7f5d3b92b000+195000]
> >> Feb  5 14:29:23 gaia kernel: [  358.495888] tail[4203]: segfault at 0
> >> ip 00007f751314bc60 sp 00007fffe5ce5e48 error 6 in
> >> libc-2.24.so[7f751311c000+195000]
> >> Feb  5 14:35:06 gaia kernel: [  701.314247] bash[4323]: segfault at 0
> >> ip 00007f3fef30ec60 sp 00007ffd48cc2058 error 6 in
> >> libc-2.24.so[7f3fef2df000+195000]
> >> Feb  5 14:48:43 gaia kernel: [ 1518.809924] ls[4910]: segfault at 0 ip
> >> 00007f29e9bc1c60 sp 00007ffd712752b8 error 6 in
> >> libc-2.24.so[7f29e9b92000+195000]
> >>
> >> Any suggestion on how to get this fixed?
> >> I don't think I can do live debug since the userspace is quite unstable.
> >> On the other hand, dmesg from both dom0 && XEN looks just fine.
> >>
> >> PS: I'm using a custom compiled dom0 kernel. Is there any specific
> >> kernel config is required to get dom0pvh=1 work?
> >>
> >
> > I think the plan is to replace/rewrite the PVH (dom0) support with PVHv2,
> > see Roger's recent series here on xen-devel mailinglist..
> >
> 
> Thanks for all your input.
> Just had another check on the feature sheet, really didn't notice that
> PVH is still an 'preview' feature.
> Had the wrong impression since the feature had been announced for 2~3
> years anyway.
> Will avoid this for the moment.

Hello,

Yes, it's best to avoid it for the time being, but I'm still concerned by this.
The classic PVH mode is used by FreeBSD, and I have never received any reports
of SEGFAULTs in user-space applications, so it looks like an issue on the Linux
kernel and not Xen itself.

Roger.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

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

end of thread, other threads:[~2017-02-07 13:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-05  8:05 dom0pvh issue with XEN 4.8.0 G.R.
2017-02-05  8:21 ` Steven Haigh
2017-02-06  9:33 ` Pasi Kärkkäinen
2017-02-06 10:25   ` G.R.
2017-02-07 13:02     ` Roger Pau Monné

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.