diff options
| author | Jason Wang <[email protected]> | 2024-07-01 03:31:59 +0000 |
|---|---|---|
| committer | Michael S. Tsirkin <[email protected]> | 2024-07-26 07:26:02 +0000 |
| commit | 0823dc64586ba5ea13a7d200a5d33e4c5fa45950 (patch) | |
| tree | fa58ab1e15843b6078657aca1d27ec0830835a89 /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | virtio_pci_modern: remove admin queue serialization lock (diff) | |
| download | kernel-0823dc64586ba5ea13a7d200a5d33e4c5fa45950.tar.gz kernel-0823dc64586ba5ea13a7d200a5d33e4c5fa45950.zip | |
vhost-vdpa: switch to use vmf_insert_pfn() in the fault handler
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 <[email protected]>
Tested-by: Dragos Tatulea <[email protected]>
Fixes: ddd89d0a059d ("vhost_vdpa: support doorbell mapping via mmap")
Cc: [email protected]
Signed-off-by: Jason Wang <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Reviewed-by: Michal Kubiak <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions
