get_user_pages(), pinned pages, and DAX
get_user_pages(), pinned pages, and DAX
Posted Jun 28, 2019 5:16 UTC (Fri) by shentino (guest, #76459)In reply to: get_user_pages(), pinned pages, and DAX by jgg
Parent article: get_user_pages(), pinned pages, and DAX
Accessing a range of an MMAP'ed file that's been truncated at the filesystem level is analogous to trying to access a range of physical memory that does not exist.
In this case it is very much the virtual equivalent of a bus error so a SIGBUS is completely appropriate given the insanity already present of whatever got the file truncated to begin with.
