lkml.org 
[lkml]   [1998]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: STREAMS: interface versus implementation
On Wed, Sep 16, 1998 at 08:11:58PM +0100, Alan Cox wrote:

> > > 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/

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.060 / U:2.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site