• Dave Kleikamp's avatar
    JFS: Avoid BUG() on a damaged file system · 17e6afc7
    Dave Kleikamp authored
    On Mon, 2006-12-18 at 19:51 +0100, Eric Sesterhenn wrote:
    > hi,
    >
    > while playing around with fsfuzzer, i got the following oops with jfs:
    >
    > [  851.804875] BUG at fs/jfs/jfs_xtree.c:760
    > assert(!BT_STACK_FULL(btstack))
    > [  851.805179] ------------[ cut here ]------------
    > [  851.805238] kernel BUG at fs/jfs/jfs_xtree.c:760!
    
    JFS should mark the superblock dirty and return an error rather than
    calling BUG().
    Signed-off-by: default avatarDave Kleikamp <shaggy@austin.ibm.com>
    17e6afc7
jfs_xtree.c 98.5 KB