Merge ~canonical-kernel-team/+git/autotest-client-tests:myamada/ptrace-get-set-sud into ~canonical-kernel-team/+git/autotest-client-tests:master

Proposed by Masahiro Yamada
Status: Merged
Merge reported by: Po-Hsu Lin
Merged at revision: f78cd13442861a753c0a965d502cc1b0c3eb8866
Proposed branch: ~canonical-kernel-team/+git/autotest-client-tests:myamada/ptrace-get-set-sud
Merge into: ~canonical-kernel-team/+git/autotest-client-tests:master
Diff against target: 22 lines (+11/-0)
1 file modified
ubuntu_kernel_selftests/ubuntu_kernel_selftests.py (+11/-0)
Reviewer Review Type Date Requested Status
Po-Hsu Lin Approve
Review via email: mp+466101@code.launchpad.net

Commit message

I'd like to propose a solution for the following bug ticket.

https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/2044079

To post a comment you must log in.
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Thanks for the investigation and the fix!
Patch tested on an ARM64 box with Noble-6.8 and it's working as expected.

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

Applied and pushed with BugLink format amended plus test name added to the title.
Thanks!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/ubuntu_kernel_selftests/ubuntu_kernel_selftests.py b/ubuntu_kernel_selftests/ubuntu_kernel_selftests.py
2index cd29963..7a7984e 100644
3--- a/ubuntu_kernel_selftests/ubuntu_kernel_selftests.py
4+++ b/ubuntu_kernel_selftests/ubuntu_kernel_selftests.py
5@@ -136,6 +136,17 @@ class ubuntu_kernel_selftests(test.test):
6 utils.system(cmd)
7
8 #
9+ # Disable ptrace/get_set_sud on architectures without CONFIG_GENERIC_ENTRY
10+ # LP: #2044079
11+ #
12+ config_file = '/boot/config-{}'.format(platform.uname()[2])
13+ if os.path.exists(config_file) and not 'CONFIG_GENERIC_ENTRY=y' in open(config_file).read():
14+ mk = 'linux/tools/testing/selftests/ptrace/Makefile'
15+ if os.path.exists(mk):
16+ cmd = 'sed -i "s/ get_set_sud//" ' + mk
17+ utils.system(cmd)
18+
19+ #
20 # memory hotplug test will fail on arm and several cloud platforms from 5.6+
21 # as it was enabled in 5.6 but needs memory that does not
22 # have boot time pages in the regions to be offlined and

Subscribers

People subscribed via source and target branches

to all changes: