lkml.org 
[lkml]   [1999]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] a.out don't exec over NFS


On Mon, 8 Mar 1999, Jan Rekorajski wrote:
>
> You mean mmap? The problem is that most mmaps expects offset to be blocksize
> aligned.

And some don't, like NFS.

Basically, if a filesystem is using "generic_file_mmap()" (and most of
them are), then the issue is whether the filesystem has a bmap() entry for
the inode or not, and bmap is designed for block-aligned usage. Some fs's
(msdos) have a special smap function to do "sector mapping" rather than
block mapping.

> In case of a.out offset is 1024 and if blocksize is != 1024 you
> may forget running a.out binaries

Wrong.

It works perfectly fine on NFS. NFS doesn't use the block mpping stuff at
all, and can map stuff at any offset.

Linus


-
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:50    [W:0.055 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site