Re: NFS bug?

From: Joshua Hudson
Date: Fri Apr 21 2006 - 12:43:47 EST


> > > Was there no stack trace in that Oops? AFAICS, getdents64() isn't
> > > supposed to be calling __copy_from_user_ll() at all, so you appear to
> > > have something very weird going here.
> >
> > I'd be guessing that filldir64() was passed a negative namlen.
>
> Why would that trigger a bug in __copy_from_user_ll()? I could see it
> triggering errors in copy_to_user(), but not copy_from_*...
>
> Cheers,
> Trond

I've made that mistake before. Passing copy_from_user a negative
length -> crash.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/