[BusyBox 0000550]: MAP_SHARED in insmod causes problems in uClinux

bugs at busybox.net bugs at busybox.net
Thu Dec 15 05:21:18 UTC 2005


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=550 
====================================================================== 
Reported By:                JWilliamCampbell
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   550
Category:                   Kernel Module Support
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             11-17-2005 16:26 PST
Last Modified:              12-14-2005 21:21 PST
====================================================================== 
Summary:                    MAP_SHARED in insmod causes problems in uClinux
Description: 
Recent changes to the mmap directive on uClinux restrict the support of
shared mmap mappings to either character devices or device drivers that
allocate backing ram on demand for file mappings. This causes insmod in
BusyBox to fail on uClinux kernels. The problem is resolve by converting
the MAP_SHARED to MAP_PRIVATE. Since there is no real reason to prefer
MAP_SHARED in other cases, this change is a clear improvement. Change line
4098 in modutils/insmod.c from
-    map = mmap(NULL, len, PROT_READ, MAP_SHARED, fd, 0);
to
+    map = mmap(NILL, len, PROT_READ, MAP_PRIVATE, fd, 0);
====================================================================== 

---------------------------------------------------------------------- 
 landley - 12-14-05 21:21  
---------------------------------------------------------------------- 
svn 12711 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-17-05 16:26  JWilliamCampbellNew Issue                                    
11-17-05 16:26  JWilliamCampbellStatus                   new => assigned     
11-17-05 16:26  JWilliamCampbellAssigned To               => BusyBox         
12-14-05 21:21  landley        Status                   assigned => closed  
12-14-05 21:21  landley        Note Added: 0000777                          
======================================================================




More information about the busybox-cvs mailing list