Why do read-only memory addresses have dirty pages?

Executing (for example) the following command to get a list of pages with memory mapping:

pmap -x `pidof bash`

I got this result: enter image description here Why are some read-only pages marked as dirty, i.e. Written, requiring writeback? If they are read-only, the process will not be able to write them ... (In the given example, dirty pages are always 4 kB, but I found other cases with different values)

I also checked / proc / pid / smaps and these pages are described as "Private Dirty".

+4
source share

Source: https://habr.com/ru/post/1688636/


All Articles