Re: [PATCH] Make rcutorture RNG use temporal entropy

2007-09-04 Thread Paul E. McKenney
On Tue, Sep 04, 2007 at 09:14:19AM -0700, Paul E. McKenney wrote: > On Tue, Sep 04, 2007 at 11:16:50AM +0530, Satyam Sharma wrote: > > Hi Paul, > > > > On Wed, 15 Aug 2007, Paul E. McKenney wrote: > > > > > > The locking used by get_random_bytes() can conflict with the > > > preempt_disable()

Re: [PATCH] Make rcutorture RNG use temporal entropy

2007-09-04 Thread Paul E. McKenney
On Tue, Sep 04, 2007 at 11:16:50AM +0530, Satyam Sharma wrote: > Hi Paul, > > > On Wed, 15 Aug 2007, Paul E. McKenney wrote: > > > > The locking used by get_random_bytes() can conflict with the > > preempt_disable() and synchronize_sched() form of RCU. This patch changes > > rcutorture's RNG

Re: [PATCH] Make rcutorture RNG use temporal entropy

2007-09-04 Thread Paul E. McKenney
On Tue, Sep 04, 2007 at 11:16:50AM +0530, Satyam Sharma wrote: Hi Paul, On Wed, 15 Aug 2007, Paul E. McKenney wrote: The locking used by get_random_bytes() can conflict with the preempt_disable() and synchronize_sched() form of RCU. This patch changes rcutorture's RNG to gather

Re: [PATCH] Make rcutorture RNG use temporal entropy

2007-09-04 Thread Paul E. McKenney
On Tue, Sep 04, 2007 at 09:14:19AM -0700, Paul E. McKenney wrote: On Tue, Sep 04, 2007 at 11:16:50AM +0530, Satyam Sharma wrote: Hi Paul, On Wed, 15 Aug 2007, Paul E. McKenney wrote: The locking used by get_random_bytes() can conflict with the preempt_disable() and

Re: [PATCH] Make rcutorture RNG use temporal entropy

2007-09-03 Thread Satyam Sharma
Hi Paul, On Wed, 15 Aug 2007, Paul E. McKenney wrote: > > The locking used by get_random_bytes() can conflict with the > preempt_disable() and synchronize_sched() form of RCU. This patch changes > rcutorture's RNG to gather entropy from the new cpu_clock() interface > (relying on interrupts,

Re: [PATCH] Make rcutorture RNG use temporal entropy

2007-09-03 Thread Paul E. McKenney
On Mon, Sep 03, 2007 at 08:29:04AM -0500, Matt Mackall wrote: > On Mon, Aug 27, 2007 at 06:15:54PM -0700, Paul E. McKenney wrote: > > On Thu, Aug 23, 2007 at 02:40:37PM -0500, Matt Mackall wrote: > > > Yes. Using a hash function rather than a trivial LFSR is preferable. > > > But pulling the guts

Re: [PATCH] Make rcutorture RNG use temporal entropy

2007-09-03 Thread Matt Mackall
On Mon, Aug 27, 2007 at 06:15:54PM -0700, Paul E. McKenney wrote: > On Thu, Aug 23, 2007 at 02:40:37PM -0500, Matt Mackall wrote: > > On Thu, Aug 23, 2007 at 11:58:31AM -0700, Paul E. McKenney wrote: > > > On Thu, Aug 23, 2007 at 01:06:58PM -0500, Matt Mackall wrote: > > > > On Fri, Aug 17, 2007

Re: [PATCH] Make rcutorture RNG use temporal entropy

2007-09-03 Thread Matt Mackall
On Mon, Aug 27, 2007 at 06:15:54PM -0700, Paul E. McKenney wrote: On Thu, Aug 23, 2007 at 02:40:37PM -0500, Matt Mackall wrote: On Thu, Aug 23, 2007 at 11:58:31AM -0700, Paul E. McKenney wrote: On Thu, Aug 23, 2007 at 01:06:58PM -0500, Matt Mackall wrote: On Fri, Aug 17, 2007 at

Re: [PATCH] Make rcutorture RNG use temporal entropy

2007-09-03 Thread Paul E. McKenney
On Mon, Sep 03, 2007 at 08:29:04AM -0500, Matt Mackall wrote: On Mon, Aug 27, 2007 at 06:15:54PM -0700, Paul E. McKenney wrote: On Thu, Aug 23, 2007 at 02:40:37PM -0500, Matt Mackall wrote: Yes. Using a hash function rather than a trivial LFSR is preferable. But pulling the guts out and

Re: [PATCH] Make rcutorture RNG use temporal entropy

2007-09-03 Thread Satyam Sharma
Hi Paul, On Wed, 15 Aug 2007, Paul E. McKenney wrote: The locking used by get_random_bytes() can conflict with the preempt_disable() and synchronize_sched() form of RCU. This patch changes rcutorture's RNG to gather entropy from the new cpu_clock() interface (relying on interrupts,

Re: [PATCH] Make rcutorture RNG use temporal entropy

2007-08-27 Thread Paul E. McKenney
On Thu, Aug 23, 2007 at 02:40:37PM -0500, Matt Mackall wrote: > On Thu, Aug 23, 2007 at 11:58:31AM -0700, Paul E. McKenney wrote: > > On Thu, Aug 23, 2007 at 01:06:58PM -0500, Matt Mackall wrote: > > > On Fri, Aug 17, 2007 at 01:00:22PM -0700, Paul E. McKenney wrote: > > > > On Fri, Aug 17, 2007

Re: [PATCH] Make rcutorture RNG use temporal entropy

2007-08-27 Thread Paul E. McKenney
On Thu, Aug 23, 2007 at 02:40:37PM -0500, Matt Mackall wrote: On Thu, Aug 23, 2007 at 11:58:31AM -0700, Paul E. McKenney wrote: On Thu, Aug 23, 2007 at 01:06:58PM -0500, Matt Mackall wrote: On Fri, Aug 17, 2007 at 01:00:22PM -0700, Paul E. McKenney wrote: On Fri, Aug 17, 2007 at

Re: [PATCH] Make rcutorture RNG use temporal entropy

2007-08-23 Thread Matt Mackall
On Thu, Aug 23, 2007 at 11:58:31AM -0700, Paul E. McKenney wrote: > On Thu, Aug 23, 2007 at 01:06:58PM -0500, Matt Mackall wrote: > > On Fri, Aug 17, 2007 at 01:00:22PM -0700, Paul E. McKenney wrote: > > > On Fri, Aug 17, 2007 at 11:53:56AM -0700, Andrew Morton wrote: > > > > On Wed, 15 Aug 2007

Re: [PATCH] Make rcutorture RNG use temporal entropy

2007-08-23 Thread Paul E. McKenney
On Thu, Aug 23, 2007 at 01:06:58PM -0500, Matt Mackall wrote: > On Fri, Aug 17, 2007 at 01:00:22PM -0700, Paul E. McKenney wrote: > > On Fri, Aug 17, 2007 at 11:53:56AM -0700, Andrew Morton wrote: > > > On Wed, 15 Aug 2007 19:49:04 -0700 > > > "Paul E. McKenney" <[EMAIL PROTECTED]> wrote: > > > >

Re: [PATCH] Make rcutorture RNG use temporal entropy

2007-08-23 Thread Matt Mackall
On Fri, Aug 17, 2007 at 01:00:22PM -0700, Paul E. McKenney wrote: > On Fri, Aug 17, 2007 at 11:53:56AM -0700, Andrew Morton wrote: > > On Wed, 15 Aug 2007 19:49:04 -0700 > > "Paul E. McKenney" <[EMAIL PROTECTED]> wrote: > > > > > Repost of http://lkml.org/lkml/2007/8/10/472 made available by

Re: [PATCH] Make rcutorture RNG use temporal entropy

2007-08-23 Thread Matt Mackall
On Fri, Aug 17, 2007 at 01:00:22PM -0700, Paul E. McKenney wrote: On Fri, Aug 17, 2007 at 11:53:56AM -0700, Andrew Morton wrote: On Wed, 15 Aug 2007 19:49:04 -0700 Paul E. McKenney [EMAIL PROTECTED] wrote: Repost of http://lkml.org/lkml/2007/8/10/472 made available by request.

Re: [PATCH] Make rcutorture RNG use temporal entropy

2007-08-23 Thread Paul E. McKenney
On Thu, Aug 23, 2007 at 01:06:58PM -0500, Matt Mackall wrote: On Fri, Aug 17, 2007 at 01:00:22PM -0700, Paul E. McKenney wrote: On Fri, Aug 17, 2007 at 11:53:56AM -0700, Andrew Morton wrote: On Wed, 15 Aug 2007 19:49:04 -0700 Paul E. McKenney [EMAIL PROTECTED] wrote: Repost of

Re: [PATCH] Make rcutorture RNG use temporal entropy

2007-08-23 Thread Matt Mackall
On Thu, Aug 23, 2007 at 11:58:31AM -0700, Paul E. McKenney wrote: On Thu, Aug 23, 2007 at 01:06:58PM -0500, Matt Mackall wrote: On Fri, Aug 17, 2007 at 01:00:22PM -0700, Paul E. McKenney wrote: On Fri, Aug 17, 2007 at 11:53:56AM -0700, Andrew Morton wrote: On Wed, 15 Aug 2007 19:49:04

Re: [PATCH] Make rcutorture RNG use temporal entropy

2007-08-17 Thread Paul E. McKenney
On Fri, Aug 17, 2007 at 11:53:56AM -0700, Andrew Morton wrote: > On Wed, 15 Aug 2007 19:49:04 -0700 > "Paul E. McKenney" <[EMAIL PROTECTED]> wrote: > > > Repost of http://lkml.org/lkml/2007/8/10/472 made available by request. > > > > The locking used by get_random_bytes() can conflict with the >

Re: [PATCH] Make rcutorture RNG use temporal entropy

2007-08-17 Thread Andrew Morton
On Wed, 15 Aug 2007 19:49:04 -0700 "Paul E. McKenney" <[EMAIL PROTECTED]> wrote: > Repost of http://lkml.org/lkml/2007/8/10/472 made available by request. > > The locking used by get_random_bytes() can conflict with the > preempt_disable() and synchronize_sched() form of RCU. This patch changes

Re: [PATCH] Make rcutorture RNG use temporal entropy

2007-08-17 Thread Andrew Morton
On Wed, 15 Aug 2007 19:49:04 -0700 Paul E. McKenney [EMAIL PROTECTED] wrote: Repost of http://lkml.org/lkml/2007/8/10/472 made available by request. The locking used by get_random_bytes() can conflict with the preempt_disable() and synchronize_sched() form of RCU. This patch changes

Re: [PATCH] Make rcutorture RNG use temporal entropy

2007-08-17 Thread Paul E. McKenney
On Fri, Aug 17, 2007 at 11:53:56AM -0700, Andrew Morton wrote: On Wed, 15 Aug 2007 19:49:04 -0700 Paul E. McKenney [EMAIL PROTECTED] wrote: Repost of http://lkml.org/lkml/2007/8/10/472 made available by request. The locking used by get_random_bytes() can conflict with the

[PATCH] Make rcutorture RNG use temporal entropy

2007-08-15 Thread Paul E. McKenney
Repost of http://lkml.org/lkml/2007/8/10/472 made available by request. The locking used by get_random_bytes() can conflict with the preempt_disable() and synchronize_sched() form of RCU. This patch changes rcutorture's RNG to gather entropy from the new cpu_clock() interface (relying on

[PATCH] Make rcutorture RNG use temporal entropy

2007-08-15 Thread Paul E. McKenney
Repost of http://lkml.org/lkml/2007/8/10/472 made available by request. The locking used by get_random_bytes() can conflict with the preempt_disable() and synchronize_sched() form of RCU. This patch changes rcutorture's RNG to gather entropy from the new cpu_clock() interface (relying on