public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: user-mode port 0.56-2.4.18-15
  2002-04-08 20:56 user-mode port 0.56-2.4.18-15 Jeff Dike
@ 2002-04-08  1:25 ` Pavel Machek
  2002-04-09 23:16   ` Jeff Dike
  2002-04-08 20:02 ` Robert Love
  1 sibling, 1 reply; 9+ messages in thread
From: Pavel Machek @ 2002-04-08  1:25 UTC (permalink / raw)
  To: Jeff Dike; +Cc: linux-kernel, user-mode-linux-user

Hi!

> Added SA_SAMPLE_RANDOM to the irq registration flags of some drivers.  This
> makes apps which read /dev/random work a lot better.  Randomness in UML is
> more problematic than on the host, but I chose a set of drivers whose
> interrupts shouldn't be too predictable.

Why don't you just feed your /dev/random from hosts /dev/random?

> HZ is now 52.

Wow.. Why such strange value?
								Pavel
-- 
Philips Velo 1: 1"x4"x8", 300gram, 60, 12MB, 40bogomips, linux, mutt,
details at http://atrey.karlin.mff.cuni.cz/~pavel/velo/index.html.


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

* Re: user-mode port 0.56-2.4.18-15
  2002-04-08 20:56 user-mode port 0.56-2.4.18-15 Jeff Dike
  2002-04-08  1:25 ` Pavel Machek
@ 2002-04-08 20:02 ` Robert Love
  2002-04-08 23:09   ` Jeff Dike
  1 sibling, 1 reply; 9+ messages in thread
From: Robert Love @ 2002-04-08 20:02 UTC (permalink / raw)
  To: Jeff Dike; +Cc: linux-kernel

On Mon, 2002-04-08 at 16:56, Jeff Dike wrote:

> Added SA_SAMPLE_RANDOM to the irq registration flags of some drivers.  This
> makes apps which read /dev/random work a lot better.  Randomness in UML is
> more problematic than on the host, but I chose a set of drivers whose
> interrupts shouldn't be too predictable.

If these drivers truly are sufficient candidates for feeding
/dev/random, perhaps you could pull these bits and submit them to Linus
and Marcelo?

I for one think this is a good idea.

	Robert Love



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

* user-mode port 0.56-2.4.18-15
@ 2002-04-08 20:56 Jeff Dike
  2002-04-08  1:25 ` Pavel Machek
  2002-04-08 20:02 ` Robert Love
  0 siblings, 2 replies; 9+ messages in thread
From: Jeff Dike @ 2002-04-08 20:56 UTC (permalink / raw)
  To: linux-kernel, user-mode-linux-user

I'm breaking with my usual practice of tying full UML releases to major
kernel releases.  The intervals between successive 2.4.x kernels are getting
too long for my taste.

So, here's a second 2.4.18 UML.  As usual, there are a ton of bug fixes in
this release.  Some of the more important ones are:

The console flow control bug is now fixed.  Flow control works properly
both with and without Sapan Bhatia's tty output SIGIO fix.

Fixed a crash caused by using a tty_struct after it had been freed when there
was no getty on the main console.

Daniel Phillips' pgtable fixes are in.

Fixed a crash caused by installing cmucl.

On older processors which don't implement the cmov instructions, UML likely
would hang on starting init.  Strictly speaking, this is not a UML bug.  The 
bug was booting a filesystem that executes cmov.  However, UML now detects
cmov support in the host processor and panics with a useful message when it
sees init get a SIGILL on a cmov.  The real fix is to get a filesystem that's
built for earlier processors than P6.

Added SA_SAMPLE_RANDOM to the irq registration flags of some drivers.  This
makes apps which read /dev/random work a lot better.  Randomness in UML is
more problematic than on the host, but I chose a set of drivers whose
interrupts shouldn't be too predictable.

The signal mask is now initialized so that odd environments can't screw
UML up by passing in bogus masks.  

The consoles and serial lines now support SIGWINCH.

The ubd driver's COW bitmaps are now properly byte-swapped. 

UML is now robust in the face of tmpfs running out of space.

HZ is now 52.

The project's home page is http://user-mode-linux.sourceforge.net

Downloads are available at 
	http://user-mode-linux.sourceforge.net/dl-sf.html

				Jeff


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

* Re: user-mode port 0.56-2.4.18-15
  2002-04-08 20:02 ` Robert Love
@ 2002-04-08 23:09   ` Jeff Dike
  0 siblings, 0 replies; 9+ messages in thread
From: Jeff Dike @ 2002-04-08 23:09 UTC (permalink / raw)
  To: Robert Love; +Cc: linux-kernel

rml@tech9.net said:
> If these drivers truly are sufficient candidates for feeding /dev/
> random, perhaps you could pull these bits and submit them to Linus and
> Marcelo? 

They're UML drivers, so they're not useful anywhere except in UML.

				Jeff


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

* Re: user-mode port 0.56-2.4.18-15
  2002-04-09 23:16   ` Jeff Dike
@ 2002-04-09 22:17     ` Pavel Machek
  2002-04-10  1:44       ` Jeff Dike
  2002-04-10 21:14     ` David Wagner
  1 sibling, 1 reply; 9+ messages in thread
From: Pavel Machek @ 2002-04-09 22:17 UTC (permalink / raw)
  To: Jeff Dike; +Cc: linux-kernel, user-mode-linux-user

Hi!

> > Why don't you just feed your /dev/random from hosts /dev/random? 
> 
> That would open up DOS attacks on the host.  A nasty person inside a UML
> could drain the host's /dev/random and hang anything on the host that needs
> random numbers.

Okay, make it /dev/urandom ;-).

									Pavel
-- 
Casualities in World Trade Center: ~3k dead inside the building,
cryptography in U.S.A. and free speech in Czech Republic.

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

* Re: user-mode port 0.56-2.4.18-15
  2002-04-08  1:25 ` Pavel Machek
@ 2002-04-09 23:16   ` Jeff Dike
  2002-04-09 22:17     ` Pavel Machek
  2002-04-10 21:14     ` David Wagner
  0 siblings, 2 replies; 9+ messages in thread
From: Jeff Dike @ 2002-04-09 23:16 UTC (permalink / raw)
  To: Pavel Machek; +Cc: linux-kernel, user-mode-linux-user

pavel@suse.cz said:
> Why don't you just feed your /dev/random from hosts /dev/random? 

That would open up DOS attacks on the host.  A nasty person inside a UML
could drain the host's /dev/random and hang anything on the host that needs
random numbers.

> Wow.. Why such strange value? 

HZ > 50 is needed to make ps and friends shut up.
HZ % 4 == 0 is needed to make some QOS thing compile.

				Jeff

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

* Re: user-mode port 0.56-2.4.18-15
  2002-04-09 22:17     ` Pavel Machek
@ 2002-04-10  1:44       ` Jeff Dike
  2002-04-10  3:53         ` [uml-user] " Andreas Dilger
  0 siblings, 1 reply; 9+ messages in thread
From: Jeff Dike @ 2002-04-10  1:44 UTC (permalink / raw)
  To: Pavel Machek; +Cc: linux-kernel, user-mode-linux-user

pavel@suse.cz said:
> Okay, make it /dev/urandom ;-). 

Doesn't /dev/urandom have exactly the same DOS properties as /dev/random?
I.e. it reads real random numbers until the entropy pool is empty, then 
starts returning pseudo-random numbers?  If so, things on the host will 
still hang when they then try to read /dev/random.

Also, UML processes deserve crytographically secure numbers just as much as 
host proceses do.  When something opens /dev/random, /dev/random is exactly
what it should get.

				Jeff


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

* Re: [uml-user] Re: user-mode port 0.56-2.4.18-15
  2002-04-10  1:44       ` Jeff Dike
@ 2002-04-10  3:53         ` Andreas Dilger
  0 siblings, 0 replies; 9+ messages in thread
From: Andreas Dilger @ 2002-04-10  3:53 UTC (permalink / raw)
  To: Jeff Dike; +Cc: Pavel Machek, linux-kernel, user-mode-linux-user

On Apr 09, 2002  20:44 -0500, Jeff Dike wrote:
> Doesn't /dev/urandom have exactly the same DOS properties as /dev/random?
> I.e. it reads real random numbers until the entropy pool is empty, then 
> starts returning pseudo-random numbers?  If so, things on the host will 
> still hang when they then try to read /dev/random.

You are correct.  Reading from /dev/urandom consumes just as much
entropy as reading from /dev/random.  It just doesn't block when the
entropy pool is random.

Hmm, maybe this should be fixed by refilling the urandom entropy pool
much less often...

Cheers, Andreas
--
Andreas Dilger
http://www-mddsp.enel.ucalgary.ca/People/adilger/
http://sourceforge.net/projects/ext2resize/


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

* Re: user-mode port 0.56-2.4.18-15
  2002-04-09 23:16   ` Jeff Dike
  2002-04-09 22:17     ` Pavel Machek
@ 2002-04-10 21:14     ` David Wagner
  1 sibling, 0 replies; 9+ messages in thread
From: David Wagner @ 2002-04-10 21:14 UTC (permalink / raw)
  To: linux-kernel

Jeff Dike  wrote:
>pavel@suse.cz said:
>> Why don't you just feed your /dev/random from hosts /dev/random? 
>
>That would open up DOS attacks on the host.  A nasty person inside a UML
>could drain the host's /dev/random and hang anything on the host that needs
>random numbers.

Why not feed your /dev/random from the host's /dev/urandom?

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

end of thread, other threads:[~2002-04-10 21:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-08 20:56 user-mode port 0.56-2.4.18-15 Jeff Dike
2002-04-08  1:25 ` Pavel Machek
2002-04-09 23:16   ` Jeff Dike
2002-04-09 22:17     ` Pavel Machek
2002-04-10  1:44       ` Jeff Dike
2002-04-10  3:53         ` [uml-user] " Andreas Dilger
2002-04-10 21:14     ` David Wagner
2002-04-08 20:02 ` Robert Love
2002-04-08 23:09   ` Jeff Dike

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