On Wed, May 08, 2024 at 09:09:33AM -0700, Darrick J. Wong wrote: > > Do you have any odd kasan/lockdep features enabled? > > Never mind that. > > I /think/ I figured this out -- the xfarray_sort_scan function can > return an error if a fatal signal has been received. Unfortunately the > callsites all assume that an error return means that si->folio doesn't > point at a folio, so they don't bother calling xfarray_sort_scan_done, > so we leak a locked page and that's what the folio_wait_bit_common is > stuck on. Yes, this looks a lot like it is tripping over a locked page.