]> git.ipfire.org Git - thirdparty/linux.git/commit
gfs2: fiemap page fault fix
authorAndreas Gruenbacher <agruenba@redhat.com>
Thu, 5 Feb 2026 14:52:57 +0000 (15:52 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Thu, 5 Feb 2026 17:00:45 +0000 (18:00 +0100)
commite411d74cc5ba290f85d0dd5e4d1df8f1d6d975d2
tree8c36c5117ea7ddc448e8470e921cceb1f920653d
parentda6f5bbc2e7902f578b503f2a4c3d8d09ca4b102
gfs2: fiemap page fault fix

In gfs2_fiemap(), we are calling iomap_fiemap() while holding the inode
glock.  This can lead to recursive glock taking if the fiemap buffer is
memory mapped to the same inode and accessing it triggers a page fault.

Fix by disabling page faults for iomap_fiemap() and faulting in the
buffer by hand if necessary.

Fixes xfstest generic/742.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/inode.c