diff options
| author | Alex Williamson <alex.williamson@redhat.com> | 2025-01-02 11:32:54 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-01-17 13:40:45 +0100 |
| commit | f3e8a16c23b29a66ed6f57470b7a55db41df4a1b (patch) | |
| tree | e98ad13d12c3452fbceb379ec57a9842770f00cd /fs | |
| parent | b1a38fe4789cce90a4f20ee8517c5957e66afc12 (diff) | |
| download | linux-f3e8a16c23b29a66ed6f57470b7a55db41df4a1b.tar.gz linux-f3e8a16c23b29a66ed6f57470b7a55db41df4a1b.tar.bz2 linux-f3e8a16c23b29a66ed6f57470b7a55db41df4a1b.zip | |
vfio/pci: Fallback huge faults for unaligned pfn
commit 09dfc8a5f2ce897005a94bf66cca4f91e4e03700 upstream.
The PFN must also be aligned to the fault order to insert a huge
pfnmap. Test the alignment and fallback when unaligned.
Fixes: f9e54c3a2f5b ("vfio/pci: implement huge_fault support")
Link: https://bugzilla.kernel.org/show_bug.cgi?id=219619
Reported-by: Athul Krishna <athul.krishna.kr@protonmail.com>
Reported-by: Precific <precification@posteo.de>
Reviewed-by: Peter Xu <peterx@redhat.com>
Tested-by: Precific <precification@posteo.de>
Link: https://lore.kernel.org/r/20250102183416.1841878-1-alex.williamson@redhat.com
Cc: stable@vger.kernel.org
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions
