When dumping a vma for a task its consents is dumped regardless of whether a mapping is shared. Thus for e.g. 2 tasks with shared region we'll have 2 images with the same contents.
−
−
Another problem is that a shared memory region may have different mincore() reports from different tasks. Thus neither of them is suitable for dumping the shmem with current technique.
−
−
=== Mincore report is bad ===
−
−
The existing mincore bit is not enough for several reasons.
−
−
# Swapped out memory is not reported and this is a BUG. Plan is to propose the MINCORE_SWAP bit.
−
# File pages are reported as present if they are in page cache regardless of whether they are mapped or not.
−
# When a page from private file mapping is not cow-ed (i.e. was read only) it's not necessary to dump it.
=== Non linear mappings ===
=== Non linear mappings ===
−
Currently there's no way to detect this mapping and dump one carefully.
+
Currently we don't support non-linear mappings (fail dump if present)