summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2024-07-01 11:31:59 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-08-14 13:58:55 +0200
commit2ac6deb9998b8982fcf65f536dfce50f5935c8ea (patch)
tree5f4b6d4a9235480319dddd353b621ebd14b6f4db /include/linux
parentb9d604933d5fd72dd37f24e1dc35f778297d745a (diff)
downloadlinux-2ac6deb9998b8982fcf65f536dfce50f5935c8ea.tar.gz
linux-2ac6deb9998b8982fcf65f536dfce50f5935c8ea.tar.bz2
linux-2ac6deb9998b8982fcf65f536dfce50f5935c8ea.zip
vhost-vdpa: switch to use vmf_insert_pfn() in the fault handler
commit 0823dc64586ba5ea13a7d200a5d33e4c5fa45950 upstream. remap_pfn_page() should not be called in the fault handler as it may change the vma->flags which may trigger lockdep warning since the vma write lock is not held. Actually there's no need to modify the vma->flags as it has been set in the mmap(). So this patch switches to use vmf_insert_pfn() instead. Reported-by: Dragos Tatulea <dtatulea@nvidia.com> Tested-by: Dragos Tatulea <dtatulea@nvidia.com> Fixes: ddd89d0a059d ("vhost_vdpa: support doorbell mapping via mmap") Cc: stable@vger.kernel.org Signed-off-by: Jason Wang <jasowang@redhat.com> Message-Id: <20240701033159.18133-1-jasowang@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Michal Kubiak <michal.kubiak@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions