Re: Oops with tmpfs on both 2.4.22 & 2.6.0-test11
From: William Lee Irwin III (wli_at_holomorphy.com)
Date: 11/30/03
- Previous message: Santiago Garcia Mantinan: "IDE DMA setting not available on 2.4.23 as a module"
- In reply to: James W McMechan: "Re: Oops with tmpfs on both 2.4.22 & 2.6.0-test11"
- Next in thread: Oleg Drokin: "Re: Oops with tmpfs on both 2.4.22 & 2.6.0-test11"
- Reply: Oleg Drokin: "Re: Oops with tmpfs on both 2.4.22 & 2.6.0-test11"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 30 Nov 2003 12:06:15 -0800 To: James W McMechan <mcmechanjw@juno.com>
At some point in the past, I wrote:
>> Please post the oops (run through ksymoops as-needed).
On Sun, Nov 30, 2003 at 09:34:44AM -0800, James W McMechan wrote:
> I still think the one line test program was easier...
> I hope this helps
Could you try 2.6 with the following patch and send in the resulting
oops/BUG? Please turn on kallsyms for the run.
Thanks.
-- wli
--- fs/libfs.c.orig 2003-11-30 12:02:09.000000000 -0800
+++ fs/libfs.c 2003-11-30 12:04:36.000000000 -0800
@@ -60,6 +60,9 @@
loff_t dcache_dir_lseek(struct file *file, loff_t offset, int origin)
{
+ BUG_ON(!file);
+ BUG_ON(!file->f_dentry);
+ BUG_ON(!file->f_dentry->d_inode);
down(&file->f_dentry->d_inode->i_sem);
switch (origin) {
case 1:
@@ -83,10 +86,12 @@
while (n && p != &file->f_dentry->d_subdirs) {
struct dentry *next;
next = list_entry(p, struct dentry, d_child);
+ BUG_ON(!next);
if (!d_unhashed(next) && next->d_inode)
n--;
p = p->next;
}
+ BUG_ON(!cursor);
list_del(&cursor->d_child);
list_add_tail(&cursor->d_child, p);
spin_unlock(&dcache_lock);
-
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/
- Previous message: Santiago Garcia Mantinan: "IDE DMA setting not available on 2.4.23 as a module"
- In reply to: James W McMechan: "Re: Oops with tmpfs on both 2.4.22 & 2.6.0-test11"
- Next in thread: Oleg Drokin: "Re: Oops with tmpfs on both 2.4.22 & 2.6.0-test11"
- Reply: Oleg Drokin: "Re: Oops with tmpfs on both 2.4.22 & 2.6.0-test11"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|