public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* ReiserFS buglet
@ 2002-09-24  7:24 Jakob Oestergaard
  2002-09-24  9:21 ` Oleg Drokin
  0 siblings, 1 reply; 12+ messages in thread
From: Jakob Oestergaard @ 2002-09-24  7:24 UTC (permalink / raw)
  To: linux-kernel; +Cc: Hans Reiser


First:

In linux-2.4.19, I found the following:

fs/reiserfs/super.c:707

 s->s_blocksize = sb_blocksize(rs);
 s->s_blocksize_bits = 0;
 while ((1 << s->s_blocksize_bits) != s->s_blocksize)
     s->s_blocksize_bits ++;


What happens if there's a bit-flip on the disk so that s->s_blocksize is
not a power of two ?

I would suggest replacing the '!=' with a '<' in the while loop and
adding a sanity check afterwards.

After all, a single bit-flip in the root fs superblock would cause the
system to hang silently (but spinning really fast!) at boot.


Second:

As I see it, the ReiserFS journal has the same problems as jbd wrt. to
atomicity of write operations of indexes.  Please see my recent mail
about the jbd problems.


-- 
................................................................
:   jakob@unthought.net   : And I see the elder races,         :
:.........................: putrid forms of man                :
:   Jakob Østergaard      : See him rise and claim the earth,  :
:        OZ9ABN           : his downfall is at hand.           :
:.........................:............{Konkhra}...............:

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

end of thread, other threads:[~2002-09-24 11:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-24  7:24 ReiserFS buglet Jakob Oestergaard
2002-09-24  9:21 ` Oleg Drokin
2002-09-24  9:27   ` Jakob Oestergaard
2002-09-24  9:42     ` Hans Reiser
2002-09-24  9:47       ` Jakob Oestergaard
2002-09-24  9:48     ` Oleg Drokin
2002-09-24 10:03       ` Jakob Oestergaard
2002-09-24 10:25         ` Oleg Drokin
2002-09-24 10:39           ` Jakob Oestergaard
2002-09-24 10:54             ` Oleg Drokin
2002-09-24 11:30           ` Hans Reiser
2002-09-24 11:35             ` Oleg Drokin

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