BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000550 [BusyBox] Kernel Module Support major always 11-17-05 16:26 12-14-05 21:21
Reporter JWilliamCampbell View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version svn
Summary 0000550: 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);
Additional Information
Attached Files

- Relationships

- Notes
(0000777)
landley
12-14-05 21:21

svn 12711
 

- Issue History
Date Modified Username Field Change
11-17-05 16:26 JWilliamCampbell New Issue
11-17-05 16:26 JWilliamCampbell Status new => assigned
11-17-05 16:26 JWilliamCampbell Assigned To  => BusyBox
12-14-05 21:21 landley Status assigned => closed
12-14-05 21:21 landley Note Added: 0000777
12-14-05 21:21 landley Resolution open => fixed
12-14-05 21:21 landley Fixed in Version  => svn


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker