eeh-basic.sh from powerpc in ubuntu_kernel_selftests failed with unexpected operator on F-5.8

Bug #1909428 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Fix Released
Undecided
Po-Hsu Lin
linux (Ubuntu)
Fix Released
Undecided
Po-Hsu Lin
Focal
Fix Released
Undecided
Po-Hsu Lin
Groovy
Fix Released
Undecided
Po-Hsu Lin
Hirsute
Fix Released
Undecided
Po-Hsu Lin

Bug Description

[Impact]
The fail check in the end of powerpc/eeh/eeh-basic.sh script will complain about "unexpected operator"

This is caused by the following line in the script:
  $ test "$failed" == 0
  /bin/sh: 4: test: 0: unexpected operator

[Fix]
* 3db380570af705 ("selftests/powerpc: Make the test check in eeh-basic.sh posix compliant")

This is affecting F/G/H and can be cherry-picked for all of them.

[Test case]
Run the eeh-basic.sh script in tools/testing/selftests/powerpc/eeh/
This error message should be gone.

[Where problems could occur]
This fix is limited to PowerPC testing tool, it's unlike to cause any issue.

Po-Hsu Lin (cypressyew)
tags: added: 5.8 focal groovy sru-20201130 ubuntu-kernel-selftests
Changed in ubuntu-kernel-tests:
assignee: nobody → Po-Hsu Lin (cypressyew)
status: New → In Progress
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

https://lore<email address hidden>/T/#u

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

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1909428

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Changed in linux (Ubuntu Focal):
status: New → Incomplete
Changed in linux (Ubuntu Groovy):
status: New → Incomplete
Po-Hsu Lin (cypressyew)
description: updated
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Changed in linux (Ubuntu Focal):
status: Incomplete → In Progress
Changed in linux (Ubuntu Groovy):
status: Incomplete → Triaged
status: Triaged → In Progress
Changed in linux (Ubuntu Hirsute):
assignee: nobody → Po-Hsu Lin (cypressyew)
Changed in linux (Ubuntu Groovy):
assignee: nobody → Po-Hsu Lin (cypressyew)
Changed in linux (Ubuntu Hirsute):
status: Incomplete → In Progress
Changed in linux (Ubuntu Focal):
assignee: nobody → Po-Hsu Lin (cypressyew)
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Tim Gardner (timg-tpi)
Changed in linux (Ubuntu Focal):
status: In Progress → Fix Committed
Changed in linux (Ubuntu Groovy):
status: In Progress → Fix Committed
Changed in linux (Ubuntu Hirsute):
status: In Progress → Fix Committed
tags: added: hwe sru-20210315
tags: added: 5.4
tags: added: bionic hwe-5.4
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the 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' to 'verification-done-focal'. If the problem still exists, change the tag 'verification-needed-focal' to 'verification-failed-focal'.

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: verification-needed-focal
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the 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-groovy' to 'verification-done-groovy'. If the problem still exists, change the tag 'verification-needed-groovy' to 'verification-failed-groovy'.

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: verification-needed-groovy
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Test OK on Groovy 5.8 PowerPC node entei:
 # selftests: powerpc/eeh: eeh-basic.sh
 # 0000:00:00.0, Skipped: bridge
 # 0001:00:00.0, Skipped: bridge
 # 0020:00:00.0, Skipped: bridge
 # 0021:00:00.0, Skipped: bridge
 # 0021:01:00.0, Skipped: bridge
 # 0021:02:01.0, Skipped: bridge
 # 0021:02:08.0, Skipped: bridge
 # 0021:02:09.0, Skipped: bridge
 # 0021:02:0a.0, Skipped: bridge
 # 0021:02:0b.0, Skipped: bridge
 # 0021:02:0c.0, Skipped: bridge
 # 0021:0d:00.0, Added
 # 0021:0e:00.0, Skipped: ahci doesn't support recovery
 # 0021:0f:00.0, Skipped: bridge
 # 0021:10:00.0, Added
 # 0022:00:00.0, Skipped: bridge
 # 0022:01:00.0, Added
 # Found 3 breakable devices...
 # Breaking 0021:0d:00.0...
 # 0021:0d:00.0, waited 0/60
 # 0021:0d:00.0, waited 1/60
 # 0021:0d:00.0, waited 2/60
 # 0021:0d:00.0, waited 3/60
 # 0021:0d:00.0, waited 4/60
 # 0021:0d:00.0, waited 5/60
 # 0021:0d:00.0, waited 6/60
 # 0021:0d:00.0, waited 7/60
 # 0021:0d:00.0, waited 8/60
 # 0021:0d:00.0, Recovered after 9 seconds
 # Breaking 0021:10:00.0...
 # 0021:10:00.0, Recovered after 0 seconds
 # Breaking 0022:01:00.0...
 # 0022:01:00.0, waited 0/60
 # 0022:01:00.0, waited 1/60
 # 0022:01:00.0, waited 2/60
 # 0022:01:00.0, waited 3/60
 # 0022:01:00.0, waited 4/60
 # 0022:01:00.0, Recovered after 5 seconds
 # 0 devices failed to recover (3 tested)
 ok 1 selftests: powerpc/eeh: eeh-basic.sh

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

Test OK with 5.4 Focal (5.4.0-73.82) on node entei:
 # selftests: powerpc/eeh: eeh-basic.sh
 # 0000:00:00.0, Skipped: bridge
 # 0001:00:00.0, Skipped: bridge
 # 0020:00:00.0, Skipped: bridge
 # 0021:00:00.0, Skipped: bridge
 # 0021:01:00.0, Skipped: bridge
 # 0021:02:01.0, Skipped: bridge
 # 0021:02:08.0, Skipped: bridge
 # 0021:02:09.0, Skipped: bridge
 # 0021:02:0a.0, Skipped: bridge
 # 0021:02:0b.0, Skipped: bridge
 # 0021:02:0c.0, Skipped: bridge
 # 0021:0d:00.0, Added
 # 0021:0e:00.0, Skipped: ahci doesn't support recovery
 # 0021:0f:00.0, Skipped: bridge
 # 0021:10:00.0, Added
 # 0022:00:00.0, Skipped: bridge
 # 0022:01:00.0, Added
 # Found 3 breakable devices...
 # Breaking 0021:0d:00.0...
 # 0021:0d:00.0, waited 0/60
 # 0021:0d:00.0, waited 1/60
 # 0021:0d:00.0, waited 2/60
 # 0021:0d:00.0, waited 3/60
 # 0021:0d:00.0, waited 4/60
 # 0021:0d:00.0, waited 5/60
 # 0021:0d:00.0, waited 6/60
 # 0021:0d:00.0, waited 7/60
 # 0021:0d:00.0, waited 8/60
 # 0021:0d:00.0, Recovered after 9 seconds
 # Breaking 0021:10:00.0...
 # 0021:10:00.0, Recovered after 0 seconds
 # Breaking 0022:01:00.0...
 # 0022:01:00.0, waited 0/60
 # 0022:01:00.0, waited 1/60
 # 0022:01:00.0, waited 2/60
 # 0022:01:00.0, waited 3/60
 # 0022:01:00.0, waited 4/60
 # 0022:01:00.0, Recovered after 5 seconds
 # 0 devices failed to recover (3 tested)
 ok 1 selftests: powerpc/eeh: eeh-basic.sh

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

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

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

  * focal/linux: 5.4.0-73.82 -proposed tracker (LP: #1923781)

  * Packaging resync (LP: #1786013)
    - update dkms package versions

  * CIFS DFS entries not accessible with 5.4.0-71.74-generic (LP: #1923670)
    - Revert "cifs: Set CIFS_MOUNT_USE_PREFIX_PATH flag on setting
      cifs_sb->prepath."

  * CVE-2021-29650
    - Revert "netfilter: x_tables: Update remaining dereference to RCU"
    - Revert "netfilter: x_tables: Switch synchronization to RCU"
    - netfilter: x_tables: Use correct memory barriers.

  * LRMv4: switch to signing nvidia modules via the Ubuntu Modules signing key
    (LP: #1918134)
    - [Packaging] dkms-build{,--nvidia-N} sync back from LRMv4

  * 5.4 kernel: when iommu is on crashdump fails (LP: #1922738)
    - iommu/vt-d: Refactor find_domain() helper
    - iommu/vt-d: Add attach_deferred() helper
    - iommu/vt-d: Move deferred device attachment into helper function
    - iommu/vt-d: Do deferred attachment in iommu_need_mapping()
    - iommu/vt-d: Remove deferred_attach_domain()
    - iommu/vt-d: Simplify check in identity_mapping()

  * Backport mlx5e fix for tunnel offload (LP: #1921769)
    - net/mlx5e: Check tunnel offload is required before setting SWP

  * Bcache bypasse writeback on caching device with fragmentation (LP: #1900438)
    - bcache: consider the fragmentation when update the writeback rate

  * Fix implicit declaration warnings for kselftests/memfd test on newer
    releases (LP: #1910323)
    - selftests/memfd: Fix implicit declaration warnings

  * net/mlx5e: Add missing capability check for uplink follow (LP: #1921104)
    - net/mlx5e: Add missing capability check for uplink follow

  * [UBUNUT 21.04] s390/vtime: fix increased steal time accounting
    (LP: #1921498)
    - s390/vtime: fix increased steal time accounting

  * Mute/Mic-mute LEDs are not work on HP 850/840/440 G8 Laptops (LP: #1920030)
    - ALSA: hda/realtek: fix mute/micmute LEDs for HP 840 G8
    - ALSA: hda/realtek: fix mute/micmute LEDs for HP 440 G8
    - ALSA: hda/realtek: fix mute/micmute LEDs for HP 850 G8

  * Focal update: v5.4.106 upstream stable release (LP: #1920246)
    - uapi: nfnetlink_cthelper.h: fix userspace compilation error
    - powerpc/pseries: Don't enforce MSI affinity with kdump
    - ath9k: fix transmitting to stations in dynamic SMPS mode
    - net: Fix gro aggregation for udp encaps with zero csum
    - net: check if protocol extracted by virtio_net_hdr_set_proto is correct
    - net: avoid infinite loop in mpls_gso_segment when mpls_hlen == 0
    - sh_eth: fix TRSCER mask for SH771x
    - can: skb: can_skb_set_owner(): fix ref counting if socket was closed before
      setting skb ownership
    - can: flexcan: assert FRZ bit in flexcan_chip_freeze()
    - can: flexcan: enable RX FIFO after FRZ/HALT valid
    - can: flexcan: invoke flexcan_chip_freeze() to enter freeze mode
    - can: tcan4x5x: tcan4x5x_init(): fix initialization - clear MRAM before
      entering Normal Mode
    - tcp: add sanity tests to TCP_QUEUE_SEQ
    - netfilter: nf_nat: undo erroneous tcp edemux lookup
    - ne...

Changed in linux (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux - 5.8.0-53.60

---------------
linux (5.8.0-53.60) groovy; urgency=medium

  * CVE-2021-3491
    - io_uring: fix provide_buffers sign extension
    - io_uring: fix overflows checks in provide buffers
    - SAUCE: proc: Avoid mixing integer types in mem_rw()
    - SAUCE: io_uring: truncate lengths larger than MAX_RW_COUNT on provide
      buffers

  * CVE-2021-3490
    - bpf: Fix a verifier failure with xor
    - SAUCE: bpf: verifier: fix ALU32 bounds tracking with bitwise ops

  * CVE-2021-3489
    - SAUCE: bpf: ringbuf: deny reserve of buffers larger than ringbuf
    - SAUCE: bpf: prevent writable memory-mapping of read-only ringbuf pages

 -- Stefan Bader <email address hidden> Thu, 06 May 2021 07:43:20 +0200

Changed in linux (Ubuntu Groovy):
status: Fix Committed → Fix Released
Po-Hsu Lin (cypressyew)
Changed in linux (Ubuntu):
status: Fix Committed → Fix Released
Changed in linux (Ubuntu Hirsute):
status: Fix Committed → Fix Released
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.