Wind River Support Network


LIN7-7011 : pmem Ext 4 : kernel crash when using mmap with MAP_SHARED

Created: Nov 16, 2016    Updated: Sep 8, 2018
Resolved Date: Nov 21, 2016
Found In Version: 7.0
Fix Version:
Severity: Standard
Applicable for: Wind River Linux 7
Component/s: Kernel


We faced an 'fault' issue when running the stress test.
The fault occur when we use mmap on a newly created file on ramdisk. 

We use MAP_SHARED to get the content written into the file mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L); 

If we change to MAP_PRIVATE the crash is not seen. 

Other Downloads

Live chat