On Sun, 2012-06-03 at 09:07 +0200, Yves-Alexis Perez wrote: > On dim., 2012-06-03 at 01:08 +0100, Ben Hutchings wrote: > > So sizeof(s) == 4 and count <= 3, > > How do you know that? From the call stack? What? Did you even read the code? > > but the compiler is still too stupid > > to avoid generating a conditional call to copy_from_user_overflow(). > > And this would break the build if we did what you're asking. > > Well, I think the point is to manage to fix those (if it's now the > default upstream, I guess there will be some more visibility and people > trying to fix them). > > I still think it's useful to catch those at compile time instead of at > runtime. I think it's more useful to be able to build the kernel than to not be able to build the kernel. Ben. -- Ben Hutchings Knowledge is power. France is bacon.
Attachment:
signature.asc
Description: This is a digitally signed message part