Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HWPOISON: Use get_user_page_fast in hwpoison madvise
The previous version didn't take the mmap_sem before calling gup(), which is racy. Use get_user_pages_fast() instead which doesn't need any locks. This is also faster of course, but then it doesn't really matter because this is just a testing path. Based on report from Nick Piggin. Cc: [email protected] Signed-off-by: Andi Kleen <[email protected]>
- Loading branch information