userswap: fix VM_BUG_ON() in handle_userfault()
hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I6CAIM -------------------------------- When CONFIG_VM_BUG_ON=y and userswap feature is used, there is a kernel BUG in handle_userfault(). VM_BUG_ON() didn't allow more than one reason flag. Fix this by skipping VM_BUG_ON() if reason is VM_UFFD_MISSING|VM_USWAP. Signed-off-by: NZhangPeng <zhangpeng362@huawei.com>
Showing
想要评论请 注册 或 登录