Commit 7e2bec4
committed
test: fix tests for newer kernels
The ubuntu-latest kernel now has a 6.2 kernel. That makes the creation
of a new userfault file descriptor to use path that creates the fd
issuing an ioctl to /dev/userfaultfd. However, in our Github action
/dev/userfaultfd is read/write only by root whereas the job is running
as the "runner" user. This causes the tests to fail, because they can't
open the device file to issue the ioctl.
This commit does two things. First it creates a test matrix so that we
run the github action both on ubuntu-latest (with a newer kerenl) and
ubuntu-20.04 that uses a 5.15 kernel. That ensures that we test both
file descriptor creation paths (/dev/userfaultfd and userfaultfd
syscall). Second, in the case of ubuntu-latest it gives to the "runner"
user access to /dev/userfaultfd file.
Signed-off-by: Babis Chalios <[email protected]>1 parent e2a9066 commit 7e2bec4
1 file changed
+31
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
13 | 20 | | |
14 | 21 | | |
15 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
16 | 34 | | |
17 | 35 | | |
18 | 36 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 37 | | |
24 | 38 | | |
25 | 39 | | |
26 | 40 | | |
| 41 | + | |
27 | 42 | | |
| 43 | + | |
28 | 44 | | |
29 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
30 | 56 | | |
31 | 57 | | |
32 | 58 | | |
| |||
0 commit comments