lkml.org 
[lkml]   [1999]   [Dec]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectmmap bug in 2.2.13 (or in documentation)

Cause the fall through in do_mmap (around mm/mmap.c:223) all kind of
file mmap are denied with EACCES if file is not open for reading.
This is contrary to mmap(2):

ERRORS
...
EACCES MAP_PRIVATE was asked, but fd is not open for read-
ing. Or MAP_SHARED was asked and PROT_WRITE is
set, fd is not open for writing.

As I'm unable to understand why a file opened WR_ONLY cannot be mmap'ed
PROT_WRITE, MAP_SHARED I deduce that a break is missing at line 222.

Another for me incomprehensible option is that mmap(2) is wrong... can
someone
clarify this?

--
Abramo Bagnara mailto:abramo@alsa-project.org

Opera Unica
Via Emilia Interna, 140 Phone: +39.0546.656023
48014 Castel Bolognese (RA) - Italy Fax: +39.0546.656023

ALSA project is http://www.alsa-project.org
sponsored by SuSE Linux http://www.suse.com

It sounds good!

-
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:55    [from the cache]
©2003-2011 Jasper Spaans