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@xxxxxxxxx> wrote: > > On Fri, 30 Jul 2010 16:43:53 +0800, Américo Wang <xiyou.wangcong@xxxxxxxxx> 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-kbuild" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html