From: Sharyathi Nagesh <sharyath@in.ibm.com>
To: linux-kernel@vger.kernel.org, Arjan van de Ven <arjan@infradead.org>
Cc: Sachin Sant <sachinp@in.ibm.com>
Subject: Re: Bug while executing : cat /proc/iomem on 2.6.17-rc1/rc2
Date: Thu, 11 May 2006 12:57:48 +0530 [thread overview]
Message-ID: <1147332468.17798.13.camel@localhost.localdomain> (raw)
In-Reply-To: <1145962096.3114.19.camel@laptopd505.fenrus.org>
I was able to replicate the Bug, even when all the drivers are built into the kernel.
It looks like while traversing through p->parent field of resource structure is leading to NULL pointer.
Would it be appropriate to make the following code change.
But I found cat /proc/iomem hangs after line kernel data..
--- kernel/resource.c.old 2006-05-11 05:29:33.000000000 -0700
+++ kernel/resource.c 2006-05-11 05:29:58.000000000 -0700
@@ -81,7 +81,7 @@ static int r_show(struct seq_file *m, vo
int depth;
for (depth = 0, p = r; depth < MAX_IORES_LEVEL; depth++, p = p->parent){
- if (p->parent == root)
+ if (p->parent == root || p->parent == NULL)
break;
}
seq_printf(m, "%*s%0*lx-%0*lx : %s\n",
Regards
Sharyathi Nagesh
On Tue, 2006-04-25 at 12:48 +0200, Arjan van de Ven wrote:
> On Tue, 2006-04-25 at 16:13 +0530, Sachin Sant wrote:
> > I found this following problem while executing cat/proc/iomem. The
> > command causes following BUG.
> >
> > x236:/linux-2.6.17-rc1/fs # cat /proc/iomem
> > Segmentation fault
>
>
> this tends to be a driver bug; could you compile all the drivers you
> need as module, and then try to not load them as much as possible. See
> if it still crashes, if not, load the rest one at a time until it
> crashes, and then you've found the culprit :)
>
>
> -
> 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/
>
next prev parent reply other threads:[~2006-05-11 7:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-25 10:43 Bug while executing : cat /proc/iomem on 2.6.17-rc1/rc2 Sachin Sant
2006-04-25 10:48 ` Arjan van de Ven
2006-05-11 7:27 ` Sharyathi Nagesh [this message]
2006-05-11 7:32 ` Russell King
2006-05-11 8:38 ` Sachin Sant
2006-05-13 10:30 ` Maneesh Soni
2006-05-13 14:56 ` Linus Torvalds
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1147332468.17798.13.camel@localhost.localdomain \
--to=sharyath@in.ibm.com \
--cc=arjan@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sachinp@in.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.