> > > if(*(u32 *)pathname='/dev')
> > I see an alignment trap too, but anyway...
>
> Not on X86. Also statistically speaking most strings are naturally aligned.
> Analyse the calls to open() and you'll see that pretty fast.
But what about pathname pointing two or three bytes before the end of
a page, and the next page is not mapped? If I'm not mistaken, you would
get segfaults for valid strings.
-- Jan- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/