On 12.06.23 03:54, kernel test robot wrote:
Hello, kernel test robot noticed "WARNING:at_mm/gup.c:#try_get_folio" on: commit: 1ccf164ec866cb8575ab9b2e219fca875089c60e ("block: Use iov_iter_extract_pages() and page pinning in direct-io.c") https://git.kernel.org/cgit/linux/kernel/git/axboe/linux-block.git for-6.5/block [test failed on linux-next/master 53ab6975c12d1ad86c599a8927e8c698b144d669] in testcase: xfstests version: xfstests-x86_64-06c027a-1_20230529 with following parameters: disk: 4HDD fs: udf test: generic-group-45 compiler: gcc-12 test machine: 8 threads Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz (Skylake) with 16G memory (please refer to attached dmesg/kmsg for entire log/backtrace) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <oliver.sang@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-lkp/202306120931.a9606b88-oliver.sang@xxxxxxxxx [ 121.986791][ T2220] ------------[ cut here ]------------ [ 121.992093][ T2220] WARNING: CPU: 6 PID: 2220 at mm/gup.c:76 try_get_folio (mm/gup.c:76 (discriminator 1))
I assume we have a refcount underflow (but could be an overflow?). Maybe we used unpin_user_page() on a page not pinned via pin_user_pages() ?
-- Cheers, David / dhildenb