kernel_selftests failures on kernel-P10d-LPAR10.ppc64el.10

Bug #2032641 reported by Roxana Nicolescu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Fix Released
Undecided
Po-Hsu Lin
linux (Ubuntu)
Invalid
Undecided
Unassigned
Focal
Fix Released
Undecided
Po-Hsu Lin

Bug Description

[Impact]
The powerpc tests from kernel selftests were unable to finish properly
on Power10 VM with Focal 5.4 kernel. There will be lots of failures for
powerpc/ptrace and powerpc/tm tests. For example the ptrace-tm-gpr:
  # selftests: powerpc/ptrace: ptrace-tm-gpr
  # test: ptrace_tm_gpr
  # tags: git_version:unknown
  # [FAIL] Test FAILED on line 94
  # GPR[14]: 1 Expected: 2
  # GPR[15]: 1 Expected: 2
  # GPR[16]: 1 Expected: 2
  # GPR[17]: 1 Expected: 2
  # GPR[18]: 1 Expected: 2
  # GPR[19]: 1 Expected: 2
  # GPR[20]: 1 Expected: 2
  # GPR[21]: 1 Expected: 2
  # GPR[22]: 1 Expected: 2
  # GPR[23]: 1 Expected: 2
  # GPR[24]: 1 Expected: 2
  # GPR[25]: 1 Expected: 2
  # GPR[26]: 1 Expected: 2
  # GPR[27]: 1 Expected: 2
  # GPR[28]: 1 Expected: 2
  # GPR[29]: 1 Expected: 2
  # GPR[30]: 1 Expected: 2
  # GPR[31]: 1 Expected: 2
  # failure: ptrace_tm_gpr
  not ok 1 selftests: powerpc/ptrace: ptrace-tm-gpr # exit=1

[Fix]
* 031fd80f87 selftests: Skip TM tests on synthetic TM implementations

This patch has already landed on Jammy+. Only Focal will need this
patch. And it needs to be backported to skip changes on the
tm-signal-pagefault.c test, which does not exist on Focal tree.

[Test Plan]
Run the patched powerpc tests from kernel selftests:
  $ sudo make TARGETS=powerpc run_tests

Previously failing powerpc/ptrace and powerpc/tm tests will be skipped.
For example the ptrace-tm-gpr test:
  # selftests: powerpc/ptrace: ptrace-tm-gpr
  # test: ptrace_tm_gpr
  # tags: git_version:b315960-dirty
  # [SKIP] Test skipped on line 116
  # skip: ptrace_tm_gpr
  ok 2 selftests: powerpc/ptrace: ptrace-tm-gpr

[Where problems could occur]
Change limited to testing tools, and it's just skipping unsuitable
tests for specific architecture, no impact to real kernel functions.

== Original Bug Report ==
First time seen on cycle 2023.08.10 because it was the first time we tested this instance.
Tried previous focal version (5.4.09-156) and it seems it's happened before.

The following tests are failing:
 * powerpc/ptrace:ptrace-tm-gpr FAIL
 * powerpc/ptrace:ptrace-tm-spd-gpr FAIL
 * powerpc/ptrace:ptrace-tm-tar timeout
 * powerpc/ptrace:ptrace-tm-spd-tar timeout
 * powerpc/ptrace:ptrace-tm-vsx timeout
 * powerpc/ptrace:ptrace-tm-spd-vsx timeout
 * powerpc/ptrace:ptrace-tm-spr timeout

tags: added: sru-20230807
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

The jenkins job will hang, and a manual inspection shows this is because some processes are still running:
 * ptrace-tm-tar
 * ptrace-tm-spd-tar
 * ptrace-tm-vsx
 * ptrace-tm-spd-vsx
 * ptrace-tm-spr

And this is why these test failed with timeout.

description: updated
tags: added: 5.4 focal ubuntu-kernel-selftests
tags: added: sru-20230904
Po-Hsu Lin (cypressyew)
Changed in ubuntu-kernel-tests:
assignee: nobody → Po-Hsu Lin (cypressyew)
status: New → In Progress
Po-Hsu Lin (cypressyew)
Changed in linux (Ubuntu Focal):
assignee: nobody → Po-Hsu Lin (cypressyew)
Changed in linux (Ubuntu):
status: New → Fix Released
Changed in linux (Ubuntu Focal):
status: New → In Progress
Po-Hsu Lin (cypressyew)
description: updated
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
description: updated
Changed in linux (Ubuntu Focal):
status: In Progress → Fix Committed
Changed in linux (Ubuntu):
status: Fix Released → Invalid
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the linux/5.4.0-171.189 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-focal-linux' to 'verification-done-focal-linux'. If the problem still exists, change the tag 'verification-needed-focal-linux' to 'verification-failed-focal-linux'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: kernel-spammed-focal-linux-v2 verification-needed-focal-linux
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

These are not failing on Focal anymore. Verified with 5.4.0-171.189

tags: added: verification-done-focal-linux
removed: verification-needed-focal-linux
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (16.4 KiB)

This bug was fixed in the package linux - 5.4.0-171.189

---------------
linux (5.4.0-171.189) focal; urgency=medium

  * focal/linux: 5.4.0-171.189 -proposed tracker (LP: #2048282)

  * Packaging resync (LP: #1786013)
    - [Packaging] remove helper scripts
    - [Packaging] update annotations scripts
    - debian/dkms-versions -- update from kernel-versions (main/2024.01.08)

  * Page fault in RDMA ODP triggers BUG_ON during MMU notifier registration
    (LP: #2046534)
    - RDMA/odp: Ensure the mm is still alive before creating an implicit child

  * Hotplugging SCSI disk in QEMU VM fails (LP: #2047382)
    - Revert "PCI: acpiphp: Reassign resources on bridge if necessary"

  * CVE-2023-6040
    - netfilter: nf_tables: Reject tables of unsupported family

  * kernel_selftests failures on kernel-P10d-LPAR10.ppc64el.10
    (LP: #2032641)
    - selftests: Skip TM tests on synthetic TM implementations

  * [Debian] autoreconstruct - Do not generate chmod -x for deleted files
    (LP: #2045562)
    - [Debian] autoreconstruct - Do not generate chmod -x for deleted files

  * CVE-2023-6931
    - perf/core: Add a new read format to get a number of lost samples
    - perf: Fix perf_event_validate_size()
    - perf: Fix perf_event_validate_size() lockdep splat

  * CVE-2023-6932
    - ipv4: igmp: fix refcnt uaf issue when receiving igmp query packet

  * CVE-2023-6606
    - smb: client: fix OOB in smbCalcSize()

  * CVE-2023-45863
    - kobject: Fix slab-out-of-bounds in fill_kobj_path()

  * Focal update: v5.4.259 upstream stable release (LP: #2043724)
    - RDMA/cxgb4: Check skb value for failure to allocate
    - lib/test_meminit: fix off-by-one error in test_pages()
    - pwm: hibvt: Explicitly set .polarity in .get_state()
    - HID: logitech-hidpp: Fix kernel crash on receiver USB disconnect
    - quota: Fix slow quotaoff
    - net: prevent address rewrite in kernel_bind()
    - drm: etvnaviv: fix bad backport leading to warning
    - drm/msm/dsi: skip the wait for video mode done if not applicable
    - ravb: Fix up dma_free_coherent() call in ravb_remove()
    - ieee802154: ca8210: Fix a potential UAF in ca8210_probe
    - mlxsw: fix mlxsw_sp2_nve_vxlan_learning_set() return type
    - xen-netback: use default TX queue size for vifs
    - drm/vmwgfx: fix typo of sizeof argument
    - ixgbe: fix crash with empty VF macvlan list
    - net: nfc: fix races in nfc_llcp_sock_get() and nfc_llcp_sock_get_sn()
    - nfc: nci: assert requested protocol is valid
    - workqueue: Override implicit ordered attribute in
      workqueue_apply_unbound_cpumask()
    - dmaengine: stm32-mdma: abort resume if no ongoing transfer
    - usb: xhci: xhci-ring: Use sysdev for mapping bounce buffer
    - net: usb: dm9601: fix uninitialized variable use in dm9601_mdio_read
    - usb: dwc3: Soft reset phy on probe for host
    - usb: musb: Get the musb_qh poniter after musb_giveback
    - usb: musb: Modify the "HWVers" register address
    - iio: pressure: bmp280: Fix NULL pointer exception
    - iio: pressure: dps310: Adjust Timeout Settings
    - iio: pressure: ms5611: ms5611_prom_is_valid false negative bug
    - mcb: remove is_added flag from mcb_device struct
   ...

Changed in linux (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the linux-oracle/5.4.0-1117.126 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-focal-linux-oracle' to 'verification-done-focal-linux-oracle'. If the problem still exists, change the tag 'verification-needed-focal-linux-oracle' to 'verification-failed-focal-linux-oracle'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the linux-gkeop/5.4.0-1085.89 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-focal-linux-gkeop' to 'verification-done-focal-linux-gkeop'. If the problem still exists, change the tag 'verification-needed-focal-linux-gkeop' to 'verification-failed-focal-linux-gkeop'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: kernel-spammed-focal-linux-oracle-v2 verification-needed-focal-linux-oracle
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the linux-raspi/5.4.0-1102.114 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-focal-linux-raspi' to 'verification-done-focal-linux-raspi'. If the problem still exists, change the tag 'verification-needed-focal-linux-raspi' to 'verification-failed-focal-linux-raspi'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: kernel-spammed-focal-linux-raspi-v2 verification-needed-focal-linux-raspi
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

No PPC for raspi and oracle.

tags: added: verification-done-focal-linux-oracle verification-done-focal-linux-raspi
removed: verification-needed-focal-linux-oracle verification-needed-focal-linux-raspi
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Hints removed, closing this bug.

Changed in ubuntu-kernel-tests:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.