On Wed, 22 Jan 2025 06:43:21 +0100, Christoph Hellwig wrote: > The XFS_IOC_EXCHANGE_RANGE ioctl with the XFS_EXCHANGE_RANGE_TO_EOF flag > operates on a range bounded by the end of the file. This means the > actual amount of blocks exchanged is derived from the inode size, which > is only stable with the IOLOCK (i_rwsem) held. Do that, it currently > calls remap_verify_area from inside the sb write protection which nests > outside the IOLOCK. But this makes fsnotify_file_area_perm which is > called from remap_verify_area unhappy when the kernel is built with > lockdep and the recently added CONFIG_FANOTIFY_ACCESS_PERMISSIONS > option. > > [...] Applied to for-next, thanks! [1/1] xfs: don't call remap_verify_area with sb write protection held commit: f5f0ed89f13e3e5246404a322ee85169a226bfb5 Best regards, -- Carlos Maiolino <cem@xxxxxxxxxx>