memory-hotplug test from ubuntu_kernel_selftests failed on X-4.4 / X-4.15 / B-4.15 / F-5.4 ARM64 (execution permission issue)

Bug #1892816 reported by Po-Hsu Lin
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
New
Undecided
Unassigned
linux (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

Issue found on 4.15.0-114.115~16.04.1, test failed with:

  ./mem-on-off-test.sh -r 2 && echo "selftests: memory-hotplug [PASS]" || echo "selftests: memory-hotplug [FAIL]"
  /bin/sh: 1: ./mem-on-off-test.sh: Permission denied
  selftests: memory-hotplug [FAIL]

Note that this test was marked as passed (test skipped) with 4.15.0-112.113~16.04.1 on both ThunderX and Moonshot node:

skip all tests: memory hotplug is not supported
selftests: memory-hotplug [PASS]

Po-Hsu Lin (cypressyew)
tags: added: 4.15 kqa-blocker sru-20200810 ubuntu-kernel-selftests xenial
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Looks like the cause is the test script become non-executable:
$ ll mem-on-off-test.sh
-rw-r--r-- 1 root root 6120 Jan 28 2018 mem-on-off-test.sh

There is no config change between 4.15.0-114-generic #115~16.04.1 and 4.15.0-112.113~16.04.1

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 1892816

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
Revision history for this message
Po-Hsu Lin (cypressyew) wrote : Re: memory-hotplug test from ubuntu_kernel_selftests failed on X-4.15 / B-4.15 ARM64

As this issue does not exist in 4.15.0-112, I will call this a potential regression.

summary: - memory-hotplug test from ubuntu_kernel_selftests failed on X-4.15 ARM64
+ memory-hotplug test from ubuntu_kernel_selftests failed on X-4.15 /
+ B-4.15 ARM64
tags: added: bionic
summary: - memory-hotplug test from ubuntu_kernel_selftests failed on X-4.15 /
- B-4.15 ARM64
+ [Potential Regression] memory-hotplug test from ubuntu_kernel_selftests
+ failed on X-4.15 / B-4.15 ARM64
Revision history for this message
Po-Hsu Lin (cypressyew) wrote : Re: [Potential Regression] memory-hotplug test from ubuntu_kernel_selftests failed on X-4.15 / B-4.15 / F-5.4 ARM64

Issue spotted on F-5.4 ARM64 (there is no such issue on amd64 / PowerPC /s390x)

summary: [Potential Regression] memory-hotplug test from ubuntu_kernel_selftests
- failed on X-4.15 / B-4.15 ARM64
+ failed on X-4.15 / B-4.15 / F-5.4 ARM64
tags: added: 5.4 focal
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

On 5.4 the error message is a bit different:
 # selftests: memory-hotplug: mem-on-off-test.sh
 # Warning: file mem-on-off-test.sh is not executable, correct this.
 not ok 1 selftests: memory-hotplug: mem-on-off-test.sh

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

For AWS ARM64, this issue can be found on B and F as well.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Test script was executable on the git tree, but not when running the test.

The test uses apt-get source command to get the tree, we used to have this issue on X https://bugs.launchpad.net/bugs/1861973 but this one here seems different as it's not affecting all the other arches.

Po-Hsu Lin (cypressyew)
tags: added: sru-20200831
tags: added: sru-20200921
Revision history for this message
Kelsey Steele (kelsey-steele) wrote :

Failed on Bionic/oracle : 5.4.0-1026.26~18.04.1 : amd64

60. 09/28 06:41:28 DEBUG| utils:0153| [stdout] # ./mem-on-off-test.sh: line 78: echo: write error: Device or resource busy
61. 09/28 06:41:28 DEBUG| utils:0153| [stdout] # offline_memory_expect_success 377: unexpected fail
62. 09/28 06:41:49 DEBUG| utils:0153| [stdout] #
63. 09/28 06:41:49 DEBUG| utils:0153| [stdout] not ok 1 selftests: memory-hotplug: mem-on-off-test.sh # TIMEOUT
64. 09/28 06:41:49 DEBUG| utils:0153| [stdout] make[1]: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/memory-hotplug'
65. 09/28 06:41:49 DEBUG| utils:0153| [stdout] make: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests'
66. 09/28 06:41:49 INFO |ubuntu_ker:0248| ========== Summary ===========
67. 09/28 06:41:49 INFO |ubuntu_ker:0076| Sub test case: mem-on-off-test.sh failed.

tags: added: amd64 arm64 oracle
Po-Hsu Lin (cypressyew)
summary: - [Potential Regression] memory-hotplug test from ubuntu_kernel_selftests
- failed on X-4.15 / B-4.15 / F-5.4 ARM64
+ memory-hotplug test from ubuntu_kernel_selftests failed on X-4.15 /
+ B-4.15 / F-5.4 ARM64 (execution permission issue)
Po-Hsu Lin (cypressyew)
tags: added: sru-20201130
summary: - memory-hotplug test from ubuntu_kernel_selftests failed on X-4.15 /
- B-4.15 / F-5.4 ARM64 (execution permission issue)
+ memory-hotplug test from ubuntu_kernel_selftests failed on X4.4 / X-4.15
+ / B-4.15 / F-5.4 ARM64 (execution permission issue)
summary: - memory-hotplug test from ubuntu_kernel_selftests failed on X4.4 / X-4.15
- / B-4.15 / F-5.4 ARM64 (execution permission issue)
+ memory-hotplug test from ubuntu_kernel_selftests failed on X-4.4 /
+ X-4.15 / B-4.15 / F-5.4 ARM64 (execution permission issue)
tags: added: 4.4
Revision history for this message
Kelsey Steele (kelsey-steele) wrote :

Found on Bionic 4.15.0-141.145 arm64 this cycle (sru-20210315)

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

This is disabled intentionally:
https://kernel.ubuntu.com/git/ubuntu/autotest-client-tests.git/commit/?id=e24a4b63b

I think we can SKIP this test so it won't complain about this anymore.

tags: removed: amd64 oracle
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.