← Back to team overview

canonical-ubuntu-qa team mailing list archive

[Bug 2122462] [NEW] ubuntu_ltp_syscalls.swapon03 times out on Google TDX instances

 

Public bug reported:

Not considered a regression because this behavior was present since the
beginning of TDX testing.

When testing ubuntu_ltp_syscalls.swapon03 for noble:linux-gke on c3-standard-8.tdx, the test times out during ext2 testing:
112646  21:13:58 DEBUG| [stdout] tst_test.c:1887: TINFO: === Testing on ext2 ===
112647  21:13:58 DEBUG| [stdout] tst_test.c:1216: TINFO: Formatting /dev/loop3 with ext2 opts='' extra opts=''
112648  21:13:58 DEBUG| [stdout] mke2fs 1.47.0 (5-Feb-2023)
112649  21:13:58 DEBUG| [stdout] tst_test.c:1228: TINFO: Mounting /dev/loop3 to /tmp/ltp-45D7OdPNyw/LTP_swaQPG1Rm/mntpoint fstyp=ext2 flags=0
112650  21:13:58 DEBUG| [stdout] libswap.c:198: TINFO: create a swapfile size of 1 megabytes (MB)
112651  21:13:58 DEBUG| [stdout] tst_ioctl.c:26: TINFO: FIBMAP ioctl is supported
112652  21:13:58 DEBUG| [stdout] tst_kconfig.c:88: TINFO: Parsing kernel config '/lib/modules/6.8.0-1034-gke/build/.config'
112653  21:13:58 DEBUG| [stdout] tst_kconfig.c:88: TINFO: Parsing kernel config '/lib/modules/6.8.0-1034-gke/build/.config'
112654  21:13:58 DEBUG| [stdout] tst_kconfig.c:88: TINFO: Parsing kernel config '/lib/modules/6.8.0-1034-gke/build/.config'
112655  21:13:58 DEBUG| [stdout] tst_kconfig.c:88: TINFO: Parsing kernel config '/lib/modules/6.8.0-1034-gke/build/.config'
112656  21:13:58 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
112657  21:13:58 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
112658  21:13:58 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
112659  21:13:58 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
112660  21:13:58 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
112661  21:13:58 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
112662  21:13:58 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
112663  21:13:58 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
112664  21:13:58 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
112665  21:13:59 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
112666  21:13:59 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
112667  21:13:59 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
112668  21:13:59 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
112669  21:13:59 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
112670  21:13:59 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
112671  21:13:59 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
112672  21:13:59 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
112673  21:13:59 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
112674  21:13:59 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
112675  21:13:59 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
112676  21:13:59 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
112677  21:13:59 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
112678  21:13:59 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
112679  21:13:59 DEBUG| [stdout] swapon03.c:63: TINFO: Successfully created 23 swap files
112680  21:13:59 DEBUG| [stdout] swapon03.c:64: TINFO: create a swapfile size of 1 megabytes (MB)
112681  21:13:59 DEBUG| [stdout] swapon03.c:105: TPASS: swapon(mntpoint/testswap, 0) : EPERM (1)
112682  21:14:29 DEBUG| [stdout] Test timeouted, sending SIGKILL!
112683  21:14:29 DEBUG| [stdout] tst_test.c:1845: TINFO: If you are running on slow machine, try exporting LTP_TIMEOUT_MUL > 1
112684  21:14:29 DEBUG| [stdout] tst_test.c:1847: TBROK: Test killed! (timeout?)

On passing machines, the timed out portion here takes 1 second.

Serial logs reveal that an operation which usually happens instantly, deactivating a swapfile, takes several seconds apiece on the TDX instance:
2025-09-09T21:14:00.229311+00:00 ... testswap02.swap: Deactivated successfully.
2025-09-09T21:14:01.249264+00:00 ... testswap03.swap: Deactivated successfully.
2025-09-09T21:14:02.277240+00:00 ... testswap04.swap: Deactivated successfully.
2025-09-09T21:14:03.251133+00:00 ... testswap05.swap: Deactivated successfully.
2025-09-09T21:14:05.426322+00:00 ... testswap06.swap: Deactivated successfully.
2025-09-09T21:14:08.255364+00:00 ... testswap07.swap: Deactivated successfully.
2025-09-09T21:14:10.255350+00:00 ... testswap08.swap: Deactivated successfully.
2025-09-09T21:14:13.259379+00:00 ... testswap09.swap: Deactivated successfully.
2025-09-09T21:14:15.271302+00:00 ... testswap10.swap: Deactivated successfully.
2025-09-09T21:14:21.427386+00:00 ... testswap11.swap: Deactivated successfully.
2025-09-09T21:14:25.426271+00:00 ... testswap12.swap: Deactivated successfully.
2025-09-09T21:14:28.390306+00:00 ... testswap13.swap: Deactivated successfully.
2025-09-09T21:14:29.421214+00:00 ... testswap14.swap: Deactivated successfully.

Log was edited for clarity.

This timeout is consistent after at least one retry. I have only
observed this with noble:linux-gke so far.

** Affects: ubuntu-kernel-tests
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Canonical
Platform QA Team, which is subscribed to ubuntu-kernel-tests.
https://bugs.launchpad.net/bugs/2122462

Title:
  ubuntu_ltp_syscalls.swapon03 times out on Google TDX instances

Status in ubuntu-kernel-tests:
  New

Bug description:
  Not considered a regression because this behavior was present since
  the beginning of TDX testing.

  When testing ubuntu_ltp_syscalls.swapon03 for noble:linux-gke on c3-standard-8.tdx, the test times out during ext2 testing:
  112646  21:13:58 DEBUG| [stdout] tst_test.c:1887: TINFO: === Testing on ext2 ===
  112647  21:13:58 DEBUG| [stdout] tst_test.c:1216: TINFO: Formatting /dev/loop3 with ext2 opts='' extra opts=''
  112648  21:13:58 DEBUG| [stdout] mke2fs 1.47.0 (5-Feb-2023)
  112649  21:13:58 DEBUG| [stdout] tst_test.c:1228: TINFO: Mounting /dev/loop3 to /tmp/ltp-45D7OdPNyw/LTP_swaQPG1Rm/mntpoint fstyp=ext2 flags=0
  112650  21:13:58 DEBUG| [stdout] libswap.c:198: TINFO: create a swapfile size of 1 megabytes (MB)
  112651  21:13:58 DEBUG| [stdout] tst_ioctl.c:26: TINFO: FIBMAP ioctl is supported
  112652  21:13:58 DEBUG| [stdout] tst_kconfig.c:88: TINFO: Parsing kernel config '/lib/modules/6.8.0-1034-gke/build/.config'
  112653  21:13:58 DEBUG| [stdout] tst_kconfig.c:88: TINFO: Parsing kernel config '/lib/modules/6.8.0-1034-gke/build/.config'
  112654  21:13:58 DEBUG| [stdout] tst_kconfig.c:88: TINFO: Parsing kernel config '/lib/modules/6.8.0-1034-gke/build/.config'
  112655  21:13:58 DEBUG| [stdout] tst_kconfig.c:88: TINFO: Parsing kernel config '/lib/modules/6.8.0-1034-gke/build/.config'
  112656  21:13:58 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
  112657  21:13:58 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
  112658  21:13:58 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
  112659  21:13:58 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
  112660  21:13:58 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
  112661  21:13:58 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
  112662  21:13:58 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
  112663  21:13:58 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
  112664  21:13:58 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
  112665  21:13:59 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
  112666  21:13:59 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
  112667  21:13:59 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
  112668  21:13:59 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
  112669  21:13:59 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
  112670  21:13:59 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
  112671  21:13:59 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
  112672  21:13:59 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
  112673  21:13:59 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
  112674  21:13:59 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
  112675  21:13:59 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
  112676  21:13:59 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
  112677  21:13:59 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
  112678  21:13:59 DEBUG| [stdout] swapon03.c:51: TINFO: create a swapfile size of 1 megabytes (MB)
  112679  21:13:59 DEBUG| [stdout] swapon03.c:63: TINFO: Successfully created 23 swap files
  112680  21:13:59 DEBUG| [stdout] swapon03.c:64: TINFO: create a swapfile size of 1 megabytes (MB)
  112681  21:13:59 DEBUG| [stdout] swapon03.c:105: TPASS: swapon(mntpoint/testswap, 0) : EPERM (1)
  112682  21:14:29 DEBUG| [stdout] Test timeouted, sending SIGKILL!
  112683  21:14:29 DEBUG| [stdout] tst_test.c:1845: TINFO: If you are running on slow machine, try exporting LTP_TIMEOUT_MUL > 1
  112684  21:14:29 DEBUG| [stdout] tst_test.c:1847: TBROK: Test killed! (timeout?)

  On passing machines, the timed out portion here takes 1 second.

  Serial logs reveal that an operation which usually happens instantly, deactivating a swapfile, takes several seconds apiece on the TDX instance:
  2025-09-09T21:14:00.229311+00:00 ... testswap02.swap: Deactivated successfully.
  2025-09-09T21:14:01.249264+00:00 ... testswap03.swap: Deactivated successfully.
  2025-09-09T21:14:02.277240+00:00 ... testswap04.swap: Deactivated successfully.
  2025-09-09T21:14:03.251133+00:00 ... testswap05.swap: Deactivated successfully.
  2025-09-09T21:14:05.426322+00:00 ... testswap06.swap: Deactivated successfully.
  2025-09-09T21:14:08.255364+00:00 ... testswap07.swap: Deactivated successfully.
  2025-09-09T21:14:10.255350+00:00 ... testswap08.swap: Deactivated successfully.
  2025-09-09T21:14:13.259379+00:00 ... testswap09.swap: Deactivated successfully.
  2025-09-09T21:14:15.271302+00:00 ... testswap10.swap: Deactivated successfully.
  2025-09-09T21:14:21.427386+00:00 ... testswap11.swap: Deactivated successfully.
  2025-09-09T21:14:25.426271+00:00 ... testswap12.swap: Deactivated successfully.
  2025-09-09T21:14:28.390306+00:00 ... testswap13.swap: Deactivated successfully.
  2025-09-09T21:14:29.421214+00:00 ... testswap14.swap: Deactivated successfully.

  Log was edited for clarity.

  This timeout is consistent after at least one retry. I have only
  observed this with noble:linux-gke so far.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/2122462/+subscriptions