[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20101106162426.GA14361@merkur.ravnborg.org>
Date: Sat, 6 Nov 2010 17:24:26 +0100
From: Sam Ravnborg <sam@...nborg.org>
To: Ben Gamari <bgamari.foss@...il.com>
Cc: Américo Wang <xiyou.wangcong@...il.com>,
Christoph Egger <siccegge@...fau.de>,
linux-kernel@...r.kernel.org,
linux-kbuild <linux-kbuild@...r.kernel.org>,
Michal Marek <mmarek@...e.cz>
Subject: Re: Bus error on make allyesconfig, kernelbuild with HEAD
On Sat, Nov 06, 2010 at 11:49:10AM -0400, Ben Gamari wrote:
> On Sat, 06 Nov 2010 11:07:48 -0400, Ben Gamari <bgamari.foss@...il.com> wrote:
> > On Fri, 30 Jul 2010 16:43:53 +0800, Américo Wang <xiyou.wangcong@...il.com> wrote:
> > > This is useful. :) Looks like parse_dep_file() accesses out of
> > > the mmap'ed memory range...
> > >
> > Did anything ever happen with this? I seem to be experiencing similar
> > issues while cross-compiling for ARM on x86-64. All tested kernels
> > (v2.6.35 to master) fail with,
Too k a quick look.
Does the following patch fix it?
if m == p then we will stay in the while look looking for a space.
I did not audit all of the code - there may be other issues..
Sam
diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c
index ea26b23..f472ada 100644
--- a/scripts/basic/fixdep.c
+++ b/scripts/basic/fixdep.c
@@ -318,7 +318,7 @@ static void parse_dep_file(void *map, size_t len)
while (m < end && (*m == ' ' || *m == '\\' || *m == '\n'))
m++;
p = m;
- while (p < end && *p != ' ') p++;
+ while (p <= end && *p != ' ') p++;
if (p == end) {
do p--; while (!isalnum(*p));
p++;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists