Messages in this thread | | | Date | Sun, 7 Mar 1999 20:45:11 -0800 (PST) | From | Linus Torvalds <> | Subject | Re: [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/
| |