Re: buggy ia64_fls() ? (was Re: /dev/random problem on 2.6.12-rc1)

2005-04-08 Thread Matt Mackall
On Fri, Apr 08, 2005 at 02:12:04PM +0200, Simon Derr wrote: > I enabled the debug messages in random.c and I think I found the problem > lying in the IA64 version of fls(). Good catch. > It turns out that the generic and IA64 versions of fls() disagree: > > (output from a small test program)

buggy ia64_fls() ? (was Re: /dev/random problem on 2.6.12-rc1)

2005-04-08 Thread Simon Derr
On Fri, 8 Apr 2005, Matt Mackall wrote: > On Fri, Apr 08, 2005 at 08:56:51AM +0200, Simon Derr wrote: > > On Thu, 7 Apr 2005, Matt Mackall wrote: > > > > > On Thu, Apr 07, 2005 at 05:36:59PM +0200, Simon Derr wrote: > > > > > > > > > > I run: > > # dd if=/dev/random bs=1 count=1 | od > >

Re: /dev/random problem on 2.6.12-rc1

2005-04-08 Thread Matt Mackall
On Fri, Apr 08, 2005 at 08:56:51AM +0200, Simon Derr wrote: > On Thu, 7 Apr 2005, Matt Mackall wrote: > > > On Thu, Apr 07, 2005 at 05:36:59PM +0200, Simon Derr wrote: > > > > > > > > > On Thu, 7 Apr 2005, Yura Pakhuchiy wrote: > > > > > > > On Thu, 2005-04-07 at 14:40 +0200, Patrice Martinez

Re: /dev/random problem on 2.6.12-rc1

2005-04-08 Thread Simon Derr
On Thu, 7 Apr 2005, Matt Mackall wrote: > On Thu, Apr 07, 2005 at 05:36:59PM +0200, Simon Derr wrote: > > > > > > On Thu, 7 Apr 2005, Yura Pakhuchiy wrote: > > > > > On Thu, 2005-04-07 at 14:40 +0200, Patrice Martinez wrote: > > > > When using a machine with a 2612-rc 1kernel, I encounter

Re: /dev/random problem on 2.6.12-rc1

2005-04-08 Thread Simon Derr
On Thu, 7 Apr 2005, Matt Mackall wrote: On Thu, Apr 07, 2005 at 05:36:59PM +0200, Simon Derr wrote: On Thu, 7 Apr 2005, Yura Pakhuchiy wrote: On Thu, 2005-04-07 at 14:40 +0200, Patrice Martinez wrote: When using a machine with a 2612-rc 1kernel, I encounter problems

Re: /dev/random problem on 2.6.12-rc1

2005-04-08 Thread Matt Mackall
On Fri, Apr 08, 2005 at 08:56:51AM +0200, Simon Derr wrote: On Thu, 7 Apr 2005, Matt Mackall wrote: On Thu, Apr 07, 2005 at 05:36:59PM +0200, Simon Derr wrote: On Thu, 7 Apr 2005, Yura Pakhuchiy wrote: On Thu, 2005-04-07 at 14:40 +0200, Patrice Martinez wrote: When

buggy ia64_fls() ? (was Re: /dev/random problem on 2.6.12-rc1)

2005-04-08 Thread Simon Derr
On Fri, 8 Apr 2005, Matt Mackall wrote: On Fri, Apr 08, 2005 at 08:56:51AM +0200, Simon Derr wrote: On Thu, 7 Apr 2005, Matt Mackall wrote: On Thu, Apr 07, 2005 at 05:36:59PM +0200, Simon Derr wrote: I run: # dd if=/dev/random bs=1 count=1 | od strace the dd process,

Re: buggy ia64_fls() ? (was Re: /dev/random problem on 2.6.12-rc1)

2005-04-08 Thread Matt Mackall
On Fri, Apr 08, 2005 at 02:12:04PM +0200, Simon Derr wrote: I enabled the debug messages in random.c and I think I found the problem lying in the IA64 version of fls(). Good catch. It turns out that the generic and IA64 versions of fls() disagree: (output from a small test program)

Re: /dev/random problem on 2.6.12-rc1

2005-04-07 Thread Matt Mackall
On Thu, Apr 07, 2005 at 05:36:59PM +0200, Simon Derr wrote: > > > On Thu, 7 Apr 2005, Yura Pakhuchiy wrote: > > > On Thu, 2005-04-07 at 14:40 +0200, Patrice Martinez wrote: > > > When using a machine with a 2612-rc 1kernel, I encounter problems > > > reading /dev/random: > > > it simply

Re: /dev/random problem on 2.6.12-rc1

2005-04-07 Thread Simon Derr
On Thu, 7 Apr 2005, Yura Pakhuchiy wrote: > On Thu, 2005-04-07 at 14:40 +0200, Patrice Martinez wrote: > > When using a machine with a 2612-rc 1kernel, I encounter problems > > reading /dev/random: > > it simply nevers returns anything, and the process is blocked in the > > read... > > The

Re: /dev/random problem on 2.6.12-rc1

2005-04-07 Thread Yura Pakhuchiy
On Thu, 2005-04-07 at 14:40 +0200, Patrice Martinez wrote: > When using a machine with a 2612-rc 1kernel, I encounter problems > reading /dev/random: > it simply nevers returns anything, and the process is blocked in the > read... > The easiest way to see it is to type: > od < /dev/random >

Re: /dev/random problem on 2.6.12-rc1

2005-04-07 Thread Yura Pakhuchiy
On Thu, 2005-04-07 at 14:40 +0200, Patrice Martinez wrote: > When using a machine with a 2612-rc 1kernel, I encounter problems > reading /dev/random: > it simply nevers returns anything, and the process is blocked in the > read... > The easiest way to see it is to type: > od < /dev/random >

/dev/random problem on 2.6.12-rc1

2005-04-07 Thread Patrice Martinez
When using a machine with a 2612-rc 1kernel, I encounter problems reading /dev/random: it simply nevers returns anything, and the process is blocked in the read... The easiest way to see it is to type: od < /dev/random Any idea? -- Best regards Patrice Martinez Linux Kernel Architect. OFFICE

/dev/random problem on 2.6.12-rc1

2005-04-07 Thread Patrice Martinez
When using a machine with a 2612-rc 1kernel, I encounter problems reading /dev/random: it simply nevers returns anything, and the process is blocked in the read... The easiest way to see it is to type: od /dev/random Any idea? -- Best regards Patrice Martinez Linux Kernel Architect. OFFICE :

Re: /dev/random problem on 2.6.12-rc1

2005-04-07 Thread Yura Pakhuchiy
On Thu, 2005-04-07 at 14:40 +0200, Patrice Martinez wrote: When using a machine with a 2612-rc 1kernel, I encounter problems reading /dev/random: it simply nevers returns anything, and the process is blocked in the read... The easiest way to see it is to type: od /dev/random Any

Re: /dev/random problem on 2.6.12-rc1

2005-04-07 Thread Yura Pakhuchiy
On Thu, 2005-04-07 at 14:40 +0200, Patrice Martinez wrote: When using a machine with a 2612-rc 1kernel, I encounter problems reading /dev/random: it simply nevers returns anything, and the process is blocked in the read... The easiest way to see it is to type: od /dev/random Any

Re: /dev/random problem on 2.6.12-rc1

2005-04-07 Thread Simon Derr
On Thu, 7 Apr 2005, Yura Pakhuchiy wrote: On Thu, 2005-04-07 at 14:40 +0200, Patrice Martinez wrote: When using a machine with a 2612-rc 1kernel, I encounter problems reading /dev/random: it simply nevers returns anything, and the process is blocked in the read... The easiest way

Re: /dev/random problem on 2.6.12-rc1

2005-04-07 Thread Matt Mackall
On Thu, Apr 07, 2005 at 05:36:59PM +0200, Simon Derr wrote: On Thu, 7 Apr 2005, Yura Pakhuchiy wrote: On Thu, 2005-04-07 at 14:40 +0200, Patrice Martinez wrote: When using a machine with a 2612-rc 1kernel, I encounter problems reading /dev/random: it simply nevers returns