+14
−9
Loading
maillist inclusion category: performance bugzilla: https://gitee.com/openeuler/kernel/issues/I9E07B CVE: NA Reference: https://lore.kernel.org/linux-mm/20240403083805.1818160-1-wangkefeng.wang@huawei.com/ -------------------------------- The access_error() of vma already checked under per-VMA lock, if it is a bad access, directly handle error, no need to retry with mmap_lock again. In order to release the correct lock, pass the mm_struct into bad_area_access_error(), if mm is NULL, release vma lock, or release mmap_lock. Since the page faut is handled under per-VMA lock, count it as a vma lock event with VMA_LOCK_SUCCESS. Reviewed-by:Suren Baghdasaryan <surenb@google.com> Signed-off-by:
Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by:
ZhangPeng <zhangpeng362@huawei.com>