| Anonymous | Login | Signup for a new account | 11-10-2008 10:53 PST |
| Main | My View | View Issues | Change Log | Docs |
| 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 | |||||||||
|
|
|||||||||
| Copyright © 2000 - 2006 Mantis Group |