All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] 2.6.9-bs7 panic on check_sysemu
@ 2005-04-03 22:47 Peter
  2005-04-04 13:32 ` Blaisorblade
  0 siblings, 1 reply; 7+ messages in thread
From: Peter @ 2005-04-03 22:47 UTC (permalink / raw)
  To: user-mode-linux-devel

I get this error starting up a 2.6.9-bs7 guest:

Checking syscall emulation patch for ptrace...<0>Kernel panic - not 
syncing: check_sysemu : expected SIGTRAP, got status = 256

The host is 2.6.8.1 with host-skas3-2.6.7-v2.patch.

The 2.6.9-bs7 kernel runs OK on my newer host kernels.

Is this a case where I should be upgrading my host kernels (will do that 
in time anyway)?

Or is there something that can be done on the guest to make it work on 
older kernels also?

Regards, Peter



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

* Re: [uml-devel] 2.6.9-bs7 panic on check_sysemu
  2005-04-03 22:47 [uml-devel] 2.6.9-bs7 panic on check_sysemu Peter
@ 2005-04-04 13:32 ` Blaisorblade
  2005-04-05 17:23   ` Rob Landley
  0 siblings, 1 reply; 7+ messages in thread
From: Blaisorblade @ 2005-04-04 13:32 UTC (permalink / raw)
  To: user-mode-linux-devel; +Cc: Peter

On Monday 04 April 2005 00:47, Peter wrote:
> I get this error starting up a 2.6.9-bs7 guest:
>
> Checking syscall emulation patch for ptrace...<0>Kernel panic - not
> syncing: check_sysemu : expected SIGTRAP, got status = 256
>
> The host is 2.6.8.1 with host-skas3-2.6.7-v2.patch.
>
> The 2.6.9-bs7 kernel runs OK on my newer host kernels.
>
> Is this a case where I should be upgrading my host kernels (will do that
> in time anyway)?

You simply need to update the SKAS patch version. -V2 is very old, and many 
bugs (including this, that is a bug in the SYSEMU part of the SKAS patch). 
Upgrading to -V7 for the SKAS patch, even on the same host kernel version 
(i.e. against 2.6.8.1), would fix that.

Also, some older guest kernels may seem to work, because they don't diagnose 
such bugs. But actually they have problems in some situations, because of the 
host bugs. For instance panicking with a simple "echo 0 > /proc/sysemu; echo 
1 > /proc/sysemu".

>
> Or is there something that can be done on the guest to make it work on
> older kernels also?
Not a lot, except disabling SYSEMU (and its performance advantage) entirely - 
add the "nosysemu" param to the UML command line and it will work.

But it won't be as slow as if you didn't use SKAS.

Bye
-- 
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

* Re: [uml-devel] 2.6.9-bs7 panic on check_sysemu
  2005-04-04 13:32 ` Blaisorblade
@ 2005-04-05 17:23   ` Rob Landley
  2005-04-05 20:54     ` Blaisorblade
                       ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Rob Landley @ 2005-04-05 17:23 UTC (permalink / raw)
  To: user-mode-linux-devel; +Cc: Blaisorblade, Peter

On Monday 04 April 2005 09:32 am, Blaisorblade wrote:

> > Is this a case where I should be upgrading my host kernels (will do that
> > in time anyway)?
>
> You simply need to update the SKAS patch version. -V2 is very old, and many
> bugs (including this, that is a bug in the SYSEMU part of the SKAS patch).
> Upgrading to -V7 for the SKAS patch, even on the same host kernel version
> (i.e. against 2.6.8.1), would fix that.
>
> Also, some older guest kernels may seem to work, because they don't
> diagnose such bugs. But actually they have problems in some situations,
> because of the host bugs. For instance panicking with a simple "echo 0 >
> /proc/sysemu; echo 1 > /proc/sysemu".
>
> > Or is there something that can be done on the guest to make it work on
> > older kernels also?
>
> Not a lot, except disabling SYSEMU (and its performance advantage) entirely
> - add the "nosysemu" param to the UML command line and it will work.
>
> But it won't be as slow as if you didn't use SKAS.
>
> Bye

Speaking of which, I ask this from time to time:

What's the minimal patch set that _just_ adds -SKAS0 mode to something like a 
2.6.11 kernel?  I'd like to try it out, but every time I sit down to whack at 
it my interest budget runs out sifting through a mountain of unrelated x86-64 
patches to try to figure out what exactly I need to apply to get just 
SKAS0...

No biggie.  I'll can always ask again later... :)

Rob


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

* Re: [uml-devel] 2.6.9-bs7 panic on check_sysemu
  2005-04-05 17:23   ` Rob Landley
@ 2005-04-05 20:54     ` Blaisorblade
  2005-04-05 20:55     ` Blaisorblade
  2005-04-06  0:24     ` Jeff Dike
  2 siblings, 0 replies; 7+ messages in thread
From: Blaisorblade @ 2005-04-05 20:54 UTC (permalink / raw)
  To: Rob Landley, Jeff Dike; +Cc: user-mode-linux-devel

On Tuesday 05 April 2005 19:23, Rob Landley wrote:
> On Monday 04 April 2005 09:32 am, Blaisorblade wrote:
> > > Is this a case where I should be upgrading my host kernels (will do
> > > that in time anyway)?

> > You simply need to update the SKAS patch version. -V2 is very old, and
> > many bugs (including this, that is a bug in the SYSEMU part of the SKAS
> > patch). Upgrading to -V7 for the SKAS patch, even on the same host kernel
> > version (i.e. against 2.6.8.1), would fix that.

> > Also, some older guest kernels may seem to work, because they don't
> > diagnose such bugs. But actually they have problems in some situations,
> > because of the host bugs. For instance panicking with a simple "echo 0 >
> > /proc/sysemu; echo 1 > /proc/sysemu".

> > > Or is there something that can be done on the guest to make it work on
> > > older kernels also?

> > Not a lot, except disabling SYSEMU (and its performance advantage)
> > entirely - add the "nosysemu" param to the UML command line and it will
> > work.

> > But it won't be as slow as if you didn't use SKAS.

> > Bye

> Speaking of which, I ask this from time to time:

> What's the minimal patch set that _just_ adds -SKAS0 mode to something like
> a 2.6.11 kernel?  I'd like to try it out, but every time I sit down to
> whack at it my interest budget runs out sifting through a mountain of
> unrelated x86-64 patches to try to figure out what exactly I need to apply
> to get just SKAS0...

> No biggie.  I'll can always ask again later... :)

The problem is that I don't use the Jeff's tree nor work on SKAS0, since 
somebody must work on current releases.

While Jeff is loaded with development work and cannot handle every user. I too 
have sometimes problem to keep in touch with him.

That said, check if applying the whole tree (until the point patches apply) 
works for you.
-- 
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

* Re: [uml-devel] 2.6.9-bs7 panic on check_sysemu
  2005-04-05 17:23   ` Rob Landley
  2005-04-05 20:54     ` Blaisorblade
@ 2005-04-05 20:55     ` Blaisorblade
  2005-04-06  4:59       ` Rob Landley
  2005-04-06  0:24     ` Jeff Dike
  2 siblings, 1 reply; 7+ messages in thread
From: Blaisorblade @ 2005-04-05 20:55 UTC (permalink / raw)
  To: Rob Landley; +Cc: user-mode-linux-devel, Peter

On Tuesday 05 April 2005 19:23, Rob Landley wrote:
> On Monday 04 April 2005 09:32 am, Blaisorblade wrote:
> > > Is this a case where I should be upgrading my host kernels (will do
> > > that in time anyway)?
> >
> > You simply need to update the SKAS patch version. -V2 is very old, and
> > many bugs (including this, that is a bug in the SYSEMU part of the SKAS
> > patch). Upgrading to -V7 for the SKAS patch, even on the same host kernel
> > version (i.e. against 2.6.8.1), would fix that.
> >
> > Also, some older guest kernels may seem to work, because they don't
> > diagnose such bugs. But actually they have problems in some situations,
> > because of the host bugs. For instance panicking with a simple "echo 0 >
> > /proc/sysemu; echo 1 > /proc/sysemu".
> >
> > > Or is there something that can be done on the guest to make it work on
> > > older kernels also?
> >
> > Not a lot, except disabling SYSEMU (and its performance advantage)
> > entirely - add the "nosysemu" param to the UML command line and it will
> > work.
> >
> > But it won't be as slow as if you didn't use SKAS.
> >
> > Bye
>
> Speaking of which, I ask this from time to time:
>
> What's the minimal patch set that _just_ adds -SKAS0 mode to something like
> a 2.6.11 kernel?  I'd like to try it out, but every time I sit down to
> whack at it my interest budget runs out sifting through a mountain of
> unrelated x86-64 patches to try to figure out what exactly I need to apply
> to get just SKAS0...
Also, I forgot: during your development work use SKAS. It doesn't give any big 
difference visible inside the Virtual Machine (except for bugs).
-- 
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

* Re: [uml-devel] 2.6.9-bs7 panic on check_sysemu
  2005-04-05 17:23   ` Rob Landley
  2005-04-05 20:54     ` Blaisorblade
  2005-04-05 20:55     ` Blaisorblade
@ 2005-04-06  0:24     ` Jeff Dike
  2 siblings, 0 replies; 7+ messages in thread
From: Jeff Dike @ 2005-04-06  0:24 UTC (permalink / raw)
  To: Rob Landley; +Cc: user-mode-linux-devel, Blaisorblade, Peter

On Tue, Apr 05, 2005 at 01:23:47PM -0400, Rob Landley wrote:
> What's the minimal patch set that _just_ adds -SKAS0 mode to something like a 
> 2.6.11 kernel?  I'd like to try it out, but every time I sit down to whack at 
> it my interest budget runs out sifting through a mountain of unrelated x86-64 
> patches to try to figure out what exactly I need to apply to get just 
> SKAS0...

There isn't really one right now.  Those patches need to be cleaned up, 
merged, and disentanged from other stuff.

				Jeff


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

* Re: [uml-devel] 2.6.9-bs7 panic on check_sysemu
  2005-04-05 20:55     ` Blaisorblade
@ 2005-04-06  4:59       ` Rob Landley
  0 siblings, 0 replies; 7+ messages in thread
From: Rob Landley @ 2005-04-06  4:59 UTC (permalink / raw)
  To: Blaisorblade; +Cc: user-mode-linux-devel

On Tuesday 05 April 2005 04:55 pm, Blaisorblade wrote:

> > Speaking of which, I ask this from time to time:
> >
> > What's the minimal patch set that _just_ adds -SKAS0 mode to something
> > like a 2.6.11 kernel?  I'd like to try it out, but every time I sit down
> > to whack at it my interest budget runs out sifting through a mountain of
> > unrelated x86-64 patches to try to figure out what exactly I need to
> > apply to get just SKAS0...
>
> Also, I forgot: during your development work use SKAS. It doesn't give any
> big difference visible inside the Virtual Machine (except for bugs).

I'm trying out the build on various different systems: knoppix, red hat, suse, 
debian.  In some cases running on borrowed machines, in other cases running 
on a knoppix boot cd.  (I care because I'm using the host tools, which vary 
slightly from system to system.)

You just suggested that I replace the kernels on all of these systems, 
(including other people's machines, and the bootable CD that uses a kernel 
with the cloop patch applied and an initramfs that's hard to extract) with a 
different kernel.  Just so I'm testing something faster that's not actually 
what I'm going to be deploying.

If I was going to replace the host kernel and run on a modified system, I'd 
just A) replace it with the version I actually need, B) run the build as root 
and use chroot instead of UML.

I'm interested in SKAS0 because it's potentially deployable.  Any SKAS that 
requires a modified host kernel is not, for my purposes.

Rob


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

end of thread, other threads:[~2005-04-06  7:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-03 22:47 [uml-devel] 2.6.9-bs7 panic on check_sysemu Peter
2005-04-04 13:32 ` Blaisorblade
2005-04-05 17:23   ` Rob Landley
2005-04-05 20:54     ` Blaisorblade
2005-04-05 20:55     ` Blaisorblade
2005-04-06  4:59       ` Rob Landley
2005-04-06  0:24     ` Jeff Dike

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.