linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [akpm-mm:mm-stable] [mm]  c25465eb76: ltp.swapon03.fail
@ 2025-03-24  8:49 kernel test robot
  2025-03-24 11:53 ` David Hildenbrand
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2025-03-24  8:49 UTC (permalink / raw)
  To: David Hildenbrand
  Cc: oe-lkp, lkp, Andrew Morton, Simona Vetter, Alistair Popple,
	Alex Shi, Danilo Krummrich, Dave Airlie, Jann Horn,
	Jason Gunthorpe, Jerome Glisse, John Hubbard, Jonathan Corbet,
	Karol Herbst, Liam Howlett, Lorenzo Stoakes, Lyude,
	Masami Hiramatsu (Google),
	Oleg Nesterov, Pasha Tatashin, Peter Xu, Peter Zijlstra,
	SeongJae Park, Vlastimil Babka, Yanteng Si, Barry Song,
	linux-kernel, linux-mm, ltp, oliver.sang



Hello,

kernel test robot noticed "ltp.swapon03.fail" on:

commit: c25465eb7630ffcadaab29c1010071512f8c9621 ("mm: use single SWP_DEVICE_EXCLUSIVE entry type")
https://git.kernel.org/cgit/linux/kernel/git/akpm/mm.git mm-stable


in testcase: ltp
version: ltp-x86_64-042eff32a-1_20250322
with following parameters:

	disk: 1HDD
	fs: btrfs
	test: syscalls-04/swapon03



config: x86_64-rhel-9.4-ltp
compiler: gcc-12
test machine: 4 threads 1 sockets Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz (Ivy Bridge) with 8G 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@intel.com>
| Closes: https://lore.kernel.org/oe-lkp/202503241635.4c94156d-lkp@intel.com



Running tests.......
<<<test_start>>>
tag=swapon03 stime=1742744454
cmdline="swapon03"
contacts=""
analysis=exit
<<<test_output>>>
tst_tmpdir.c:316: TINFO: Using /fs/sda2/tmpdir/ltp-N0rQjX9YWD/LTP_swarbcULG as tmpdir (btrfs filesystem)
tst_device.c:98: TINFO: Found free device 0 '/dev/loop0'
tst_test.c:1905: TINFO: LTP version: 20250130-167-g042eff32a
tst_test.c:1909: TINFO: Tested kernel: 6.14.0-rc6-00040-gc25465eb7630 #1 SMP PREEMPT_DYNAMIC Sun Mar 23 23:05:21 CST 2025 x86_64
tst_kconfig.c:88: TINFO: Parsing kernel config '/proc/config.gz'
tst_kconfig.c:676: TINFO: CONFIG_KASAN kernel option detected which might slow the execution
tst_test.c:1722: TINFO: Overall timeout per run is 0h 10m 00s
tst_supported_fs_types.c:97: TINFO: Kernel supports ext2
tst_supported_fs_types.c:62: TINFO: mkfs.ext2 does exist
tst_supported_fs_types.c:97: TINFO: Kernel supports ext3
tst_supported_fs_types.c:62: TINFO: mkfs.ext3 does exist
tst_supported_fs_types.c:97: TINFO: Kernel supports ext4
tst_supported_fs_types.c:62: TINFO: mkfs.ext4 does exist
tst_supported_fs_types.c:97: TINFO: Kernel supports xfs
tst_supported_fs_types.c:62: TINFO: mkfs.xfs does exist
tst_supported_fs_types.c:97: TINFO: Kernel supports btrfs
tst_supported_fs_types.c:62: TINFO: mkfs.btrfs does exist
tst_supported_fs_types.c:105: TINFO: Skipping bcachefs because of FUSE blacklist
tst_supported_fs_types.c:97: TINFO: Kernel supports vfat
tst_supported_fs_types.c:62: TINFO: mkfs.vfat does exist
tst_supported_fs_types.c:97: TINFO: Kernel supports exfat
tst_supported_fs_types.c:62: TINFO: mkfs.exfat does exist
tst_supported_fs_types.c:132: TINFO: FUSE does support ntfs
tst_supported_fs_types.c:62: TINFO: mkfs.ntfs does exist
tst_supported_fs_types.c:97: TINFO: Kernel supports tmpfs
tst_supported_fs_types.c:49: TINFO: mkfs is not needed for tmpfs
tst_test.c:1833: TINFO: === Testing on ext2 ===
tst_test.c:1170: TINFO: Formatting /dev/loop0 with ext2 opts='' extra opts=''
mke2fs 1.47.0 (5-Feb-2023)
tst_test.c:1182: TINFO: Mounting /dev/loop0 to /fs/sda2/tmpdir/ltp-N0rQjX9YWD/LTP_swarbcULG/mntpoint fstyp=ext2 flags=0
libswap.c:198: TINFO: create a swapfile size of 1 megabytes (MB)
tst_ioctl.c:26: TINFO: FIBMAP ioctl is supported
tst_kconfig.c:88: TINFO: Parsing kernel config '/proc/config.gz'
tst_kconfig.c:88: TINFO: Parsing kernel config '/proc/config.gz'
tst_kconfig.c:88: TINFO: Parsing kernel config '/proc/config.gz'
tst_kconfig.c:88: TINFO: Parsing kernel config '/proc/config.gz'
swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
swapon03.c:63: TINFO: Successfully created 23 swap files
swapon03.c:64: TINFO: create a swapfile size of 1 megabytes (MB)
swapon03.c:105: TFAIL: swapon(mntpoint/testswap, 0) succeeded
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try  1...
tst_device.c:420: TINFO: Likely gvfsd-trash is probing newly mounted fs, kill it to speed up tests.
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try  2...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try  3...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try  4...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try  5...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try  6...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try  7...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try  8...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try  9...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 10...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 11...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 12...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 13...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 14...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 15...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 16...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 17...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 18...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 19...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 20...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 21...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 22...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 23...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 24...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 25...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 26...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 27...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 28...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 29...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 30...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 31...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 32...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 33...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 34...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 35...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 36...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 37...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 38...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 39...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 40...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 41...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 42...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 43...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 44...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 45...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 46...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 47...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 48...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 49...
tst_device.c:416: TINFO: umount('mntpoint') failed with EBUSY, try 50...
tst_device.c:427: TWARN: Failed to umount('mntpoint') after 50 retries
tst_test.c:1833: TINFO: === Testing on ext3 ===
tst_test.c:1170: TINFO: Formatting /dev/loop0 with ext3 opts='' extra opts=''
mke2fs 1.47.0 (5-Feb-2023)
/dev/loop0 is mounted; will not make a filesystem here!
tst_test.c:1170: TBROK: mkfs.ext3 failed with exit code 1

Summary:
passed   0
failed   1
broken   1
skipped  0
warnings 1
tst_device.c:271: TWARN: ioctl(/dev/loop0, LOOP_CLR_FD, 0) no ENXIO for too long
tst_tmpdir.c:347: TWARN: tst_rmdir: rmobj(/fs/sda2/tmpdir/ltp-N0rQjX9YWD/LTP_swarbcULG) failed: unlink(/fs/sda2/tmpdir/ltp-N0rQjX9YWD/LTP_swarbcULG/mntpoint/testswap24) failed; errno=5: EIO
incrementing stop
<<<execution_status>>>
initiation_status="ok"
duration=13 termination_type=exited termination_id=7 corefile=no
cutime=5 cstime=124
<<<test_end>>>
INFO: ltp-pan reported some tests FAIL
LTP Version: 20250130-167-g042eff32a

       ###############################################################

            Done executing testcases.
            LTP Version:  20250130-167-g042eff32a
       ###############################################################




The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20250324/202503241635.4c94156d-lkp@intel.com



-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [akpm-mm:mm-stable] [mm] c25465eb76: ltp.swapon03.fail
  2025-03-24  8:49 [akpm-mm:mm-stable] [mm] c25465eb76: ltp.swapon03.fail kernel test robot
@ 2025-03-24 11:53 ` David Hildenbrand
  0 siblings, 0 replies; 2+ messages in thread
From: David Hildenbrand @ 2025-03-24 11:53 UTC (permalink / raw)
  To: kernel test robot
  Cc: oe-lkp, lkp, Andrew Morton, Simona Vetter, Alistair Popple,
	Alex Shi, Danilo Krummrich, Dave Airlie, Jann Horn,
	Jason Gunthorpe, Jerome Glisse, John Hubbard, Jonathan Corbet,
	Karol Herbst, Liam Howlett, Lorenzo Stoakes, Lyude,
	Masami Hiramatsu (Google),
	Oleg Nesterov, Pasha Tatashin, Peter Xu, Peter Zijlstra,
	SeongJae Park, Vlastimil Babka, Yanteng Si, Barry Song,
	linux-kernel, linux-mm, ltp

On 24.03.25 09:49, kernel test robot wrote:
> 
> 
> Hello,
> 
> kernel test robot noticed "ltp.swapon03.fail" on:
> 
> commit: c25465eb7630ffcadaab29c1010071512f8c9621 ("mm: use single SWP_DEVICE_EXCLUSIVE entry type")
> https://git.kernel.org/cgit/linux/kernel/git/akpm/mm.git mm-stable
> 
> 
> in testcase: ltp
> version: ltp-x86_64-042eff32a-1_20250322
> with following parameters:
> 
> 	disk: 1HDD
> 	fs: btrfs
> 	test: syscalls-04/swapon03
> 
> 
> 
> config: x86_64-rhel-9.4-ltp
> compiler: gcc-12
> test machine: 4 threads 1 sockets Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz (Ivy Bridge) with 8G memory

LTP needs fixing.

tst_max_swapfiles() detects the number of supported swapfiles by parsing 
the kernel config, expecting that with CONFIG_DEVICE_PRIVATE we'd use 4 
on newer kernels.

Now it's "3", and consequently we support one more swapfile which the 
test cannot deal with (expecting a failure)

So, all good from a kernel perspective.

-- 
Cheers,

David / dhildenb



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-03-24 11:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-24  8:49 [akpm-mm:mm-stable] [mm] c25465eb76: ltp.swapon03.fail kernel test robot
2025-03-24 11:53 ` David Hildenbrand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox