seccomp test suite failed to build on s390x zKVM

Bug #1715581 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Medium
Po-Hsu Lin

Bug Description

Maybe we should find a new repo, the one we use wasn't updated for two years.

Source: git clone https://github.com/redpig/seccomp.git

$ make
cc resumption.c test_harness.h -o resumption -Wall -ggdb3
resumption.c: In function ‘TRAP_action’:
resumption.c:156:42: error: ‘REG_ARG0’ undeclared (first use in this function)
    (unsigned long)ctx->uc_mcontext.gregs[REG_ARG0],
                                          ^
resumption.c:156:42: note: each undeclared identifier is reported only once for each function it appears in
resumption.c:157:42: error: ‘REG_ARG1’ undeclared (first use in this function)
    (unsigned long)ctx->uc_mcontext.gregs[REG_ARG1],
                                          ^
resumption.c:158:42: error: ‘REG_ARG2’ undeclared (first use in this function)
    (unsigned long)ctx->uc_mcontext.gregs[REG_ARG2],
                                          ^
resumption.c:159:42: error: ‘REG_ARG3’ undeclared (first use in this function)
    (unsigned long)ctx->uc_mcontext.gregs[REG_ARG3],
                                          ^
resumption.c:160:42: error: ‘REG_ARG4’ undeclared (first use in this function)
    (unsigned long)ctx->uc_mcontext.gregs[REG_ARG4],
                                          ^
resumption.c:161:42: error: ‘REG_ARG5’ undeclared (first use in this function)
    (unsigned long)ctx->uc_mcontext.gregs[REG_ARG5]);
                                          ^
resumption.c:164:29: error: ‘REG_IP’ undeclared (first use in this function)
  if (ctx->uc_mcontext.gregs[REG_IP] >= 0xffffffffff600000ULL &&
                             ^
resumption.c:169:26: error: ‘REG_SP’ undeclared (first use in this function)
   ctx->uc_mcontext.gregs[REG_SP] -= sizeof(unsigned long);
                          ^
Makefile:13: recipe for target 'resumption' failed
make: *** [resumption] Error 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 1715581

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 :

Identical bug 1629994, for Trusty ARM64

Changed in linux (Ubuntu):
importance: Undecided → Medium
tags: added: kernel-da-key
Changed in linux (Ubuntu):
status: Incomplete → Triaged
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

The seccomp test suite has been merged into linux kernel tree.
tools/testing/selftests/seccomp

And the version from upstream can fix this build issue.
I will change this in our autotest-client-test repo.

Changed in linux (Ubuntu):
assignee: nobody → Po-Hsu Lin (cypressyew)
status: Triaged → In Progress
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

seccomp test will now be tested in ubuntu_kernel_selftests test suite.
The old ubuntu_seccomp test will be only tested on Trusty (which does not have the seccomp in selftest)

Changed in linux (Ubuntu):
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.