Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run kunit tests #1574

Open
Ayush1325 opened this issue Oct 24, 2024 · 0 comments
Open

Cannot run kunit tests #1574

Ayush1325 opened this issue Oct 24, 2024 · 0 comments
Labels
1. Bug Something isn't working

Comments

@Ayush1325
Copy link

Describe the bug

Currentlly, it is not possible to run Kunit tests while doing kernel development inside toolbox.

This seems to be related to /dev/shm. Here is the output when trying to run the compiled um architecture kernel:

❯ ./.kunit/linux
Core dump limits :
        soft - NONE
        hard - NONE
Checking that ptrace can change system call numbers...OK
Checking syscall emulation for ptrace...OK
Checking environment variables for a tempdir...none found
Checking if /dev/shm is on tmpfs...OK
Checking PROT_EXEC mmap in /dev/shm...Operation not permitted
/dev/shm must be not mounted noexec

Steps how to reproduce the behaviour

  1. Clone Linux kernel https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
  2. Build kunit tests:
./tools/testing/kunit/kunit.py config
./tools/testing/kunit/kunit.py exec
  1. Execute kernel executable:
./.kunit/linux

I am running the executable directly since that will show the error properly. Using kunit.py run will just show unhelpful error that KTAP output was missing.

Output of toolbox --version (v0.0.90+)
e.g., toolbox version 0.0.90

Toolbx package info (rpm -q toolbox)

toolbox version 0.0.99.6

Output of podman version
e.g.,

Client:       Podman Engine
Version:      5.2.3
API Version:  5.2.3
Go Version:   go1.22.7
Built:        Tue Sep 24 05:30:00 2024
OS/Arch:      linux/amd64

Podman package info (rpm -q podman)

podman-5.2.3-1.fc40.x86_64

Info about your OS

Fedora Sway Atomic 40

@Ayush1325 Ayush1325 added the 1. Bug Something isn't working label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant