[lkml]   [2001]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
SubjectRe: initrd oops; still happens with 2.4.5ac2
On Mon, 28 May 2001 10:25:51 +0300
Ville Herva <> wrote:
> The oops call trace seems to be the same as in
> Any ideas?

Did you try the patch posted by Go Taniguchi <>?
Following is the copy of his message and the patch itself.

Masaru Kawashima

From: Go Taniguchi <>
To: LKML <>
Subject: [PATCH]initrd unmount problem
Date: Mon, 28 May 2001 13:26:20 +0900
Organization: Turbolinx Inc.
X-Mailer: Mozilla 4.75 [ja] (X11; U; Linux 2.2.18-10 i686)


It seems that ioctl_by_bdev() in fs/block_dev.c has a problem.
When initrd is unmounted it can cause OOPS.
This problem occurs in recent ac patches.
May be vanilla too.

change_root() in fs/super.c calls ioctl_by_bdev() in
fs/block_dev.c which does not set inode_fake.i_bdev.

But ioctl of ramdisk (rd_ioctl() in rd.c) accesses to
i_bdev->bd_openers of the inode and which causes OOPS.

I attach the patch.

- GO!

--- linux/fs/block_dev.c.orig Mon May 28 12:40:12 2001
+++ linux/fs/block_dev.c Mon May 28 12:40:12 2001
@@ -602,6 +602,7 @@
if (!bdev->bd_op->ioctl)
return -EINVAL;
+ inode_fake.i_bdev=bdev;
res = bdev->bd_op->ioctl(&inode_fake, NULL, cmd, arg);

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:54    [W:0.041 / U:8.540 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site