All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] Blank process command lines in 2.6.13.2?
@ 2005-10-09 21:23 Rob Landley
  2005-10-10  2:06 ` Jeff Dike
  0 siblings, 1 reply; 5+ messages in thread
From: Rob Landley @ 2005-10-09 21:23 UTC (permalink / raw)
  To: user-mode-linux-devel

Running a big script under UML, I noticed this at the end of ps:

19869 pts/1    D+     0:03 tmpdir/linux rootfstype=hostfs rw quiet mem=48M 
DIR=/
19873 pts/1    S+     0:00 tmpdir/linux rootfstype=hostfs rw quiet mem=48M 
DIR=/
19874 pts/1    T+     0:00
19968 pts/1    T+     0:00
19979 pts/1    T+     0:00
19981 pts/1    T+     0:04
19983 pts/2    R+     0:00 ps ax

*boggle*

This expected?

Rob


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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] 5+ messages in thread

* Re: [uml-devel] Blank process command lines in 2.6.13.2?
  2005-10-09 21:23 [uml-devel] Blank process command lines in 2.6.13.2? Rob Landley
@ 2005-10-10  2:06 ` Jeff Dike
  2005-10-10  5:10   ` Rob Landley
  0 siblings, 1 reply; 5+ messages in thread
From: Jeff Dike @ 2005-10-10  2:06 UTC (permalink / raw)
  To: Rob Landley; +Cc: user-mode-linux-devel

On Sun, Oct 09, 2005 at 04:23:34PM -0500, Rob Landley wrote:
> 19874 pts/1    T+     0:00
> 19968 pts/1    T+     0:00
> 19979 pts/1    T+     0:00
> 19981 pts/1    T+     0:04
> 19983 pts/2    R+     0:00 ps ax
> 
> *boggle*
> 
> This expected?

Yeah, it's not unexpected.  The host tasks for UML processes inherit the
arglist address from UML, but UML has completely redone their address spaces,
so those addresses don't point at arguments any more.

				Jeff


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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] 5+ messages in thread

* Re: [uml-devel] Blank process command lines in 2.6.13.2?
  2005-10-10  2:06 ` Jeff Dike
@ 2005-10-10  5:10   ` Rob Landley
  2005-10-10 14:36     ` Jeff Dike
  0 siblings, 1 reply; 5+ messages in thread
From: Rob Landley @ 2005-10-10  5:10 UTC (permalink / raw)
  To: user-mode-linux-devel; +Cc: Jeff Dike

On Sunday 09 October 2005 21:06, Jeff Dike wrote:
> On Sun, Oct 09, 2005 at 04:23:34PM -0500, Rob Landley wrote:
> > 19874 pts/1    T+     0:00
> > 19968 pts/1    T+     0:00
> > 19979 pts/1    T+     0:00
> > 19981 pts/1    T+     0:04
> > 19983 pts/2    R+     0:00 ps ax
> >
> > *boggle*
> >
> > This expected?
>
> Yeah, it's not unexpected.  The host tasks for UML processes inherit the
> arglist address from UML, but UML has completely redone their address
> spaces, so those addresses don't point at arguments any more.

Any likelihood that at some point in the future it could accidentally point to 
something it would be a bad idea to display?

Rob


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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] 5+ messages in thread

* Re: [uml-devel] Blank process command lines in 2.6.13.2?
  2005-10-10  5:10   ` Rob Landley
@ 2005-10-10 14:36     ` Jeff Dike
  2005-10-10 23:30       ` Rob Landley
  0 siblings, 1 reply; 5+ messages in thread
From: Jeff Dike @ 2005-10-10 14:36 UTC (permalink / raw)
  To: Rob Landley; +Cc: user-mode-linux-devel

On Mon, Oct 10, 2005 at 12:10:10AM -0500, Rob Landley wrote:
> Any likelihood that at some point in the future it could accidentally point to 
> something it would be a bad idea to display?

I think the worst case is skas3 with no stack randomization, where that
page will point somewhere into the process stack.  There is some slight 
possibility that something could store a password on its stack, and have that
end up in the area that the host ps looks for arguments.  This would make the
password visible on the host for the time that this process in context.

With stack randomization, the UML process stacks will be located
elsewhere almost all the time, so with skas3, there is a smaller
chance that there will be a visible password there.

With skas0, that page is the stub signal stack, which contains no sensitive
information.

				Jeff


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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] 5+ messages in thread

* Re: [uml-devel] Blank process command lines in 2.6.13.2?
  2005-10-10 14:36     ` Jeff Dike
@ 2005-10-10 23:30       ` Rob Landley
  0 siblings, 0 replies; 5+ messages in thread
From: Rob Landley @ 2005-10-10 23:30 UTC (permalink / raw)
  To: user-mode-linux-devel; +Cc: Jeff Dike

On Monday 10 October 2005 09:36, Jeff Dike wrote:
> I think the worst case is skas3 with no stack randomization, where that
> page will point somewhere into the process stack.  There is some slight
> possibility that something could store a password on its stack, and have
> that end up in the area that the host ps looks for arguments.  This would
> make the password visible on the host for the time that this process in
> context.

I'm not so worried about sensitive info because in the parent kernel you can 
just attach to the process from a debugger (although not necessarily as a 
different, normal user).  I'm actually slightly more concerned about high 
ascii garbage or who knows what showing up and making ps look really weird.

> With stack randomization, the UML process stacks will be located
> elsewhere almost all the time, so with skas3, there is a smaller
> chance that there will be a visible password there.
>
> With skas0, that page is the stub signal stack, which contains no sensitive
> information.

Is there any way to move the stub signal stack on skas0 by one page so that we 
can still have ps on the parent system look right?  I don't know how hard 
that is.  (Is there a design document for -skas0 anywhere?  I found 
the /dev/anon page...)

Rob


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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] 5+ messages in thread

end of thread, other threads:[~2005-10-10 23:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-09 21:23 [uml-devel] Blank process command lines in 2.6.13.2? Rob Landley
2005-10-10  2:06 ` Jeff Dike
2005-10-10  5:10   ` Rob Landley
2005-10-10 14:36     ` Jeff Dike
2005-10-10 23:30       ` Rob Landley

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.