lkml.org 
[lkml]   [2001]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject2.4.10 kernel Oops with compressed ramdisk
Greetings,

When attempting to load a compressed ramdisk from a floppy, the kernel
has a NULL pointer dereference. The problem occurs inside of
rd_load_image(). rd_load_image() -> identify_ramdisk_image() ->
do_generic_file_read() -> update_atime() is the call trace.
inode->i_sb is not being set somewhere and the macro IS_NOATIME attempts
to dereference it.

#define IS_NOATIME(inode) (__IS_FLG(inode, MS_NOATIME) || ((inode)->i_flags & S_NOATIME))

#define __IS_FLG(inode,flg) ((inode)->i_sb->s_flags & (flg))

Any ideas where inode->i_sb should be set?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:04    [W:0.047 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site