Commit 485a4cd
committed
userfaultfd05: allow TCONF when UFFD-WP is unsupported
On system without enable CONFIG_HAVE_ARCH_USERFAULTFD_WP kernel option,
test will fail like below:
userfaultfd05.c:95: TBROK: ioctl(3,((((2U|1U) << (((0+8)+8)+14)) |
(((0xAA)) << (0+8)) | ((((0x3F))) << 0) |
((((sizeof(struct uffdio_api)))) << ((0+8)+8)))),...)
failed: EINVAL (22)
The original test uses SAFE_IOCTL macro, which prematurely triggers
TBROK and prevents the test from verifying UFFD_FEATURE_PAGEFAULT_FLAG_WP.
Fixes: efd8e51 ("userfaultfd: Add test using UFFDIO_WRITEPROTECT")
Signed-off-by: Li Wang <liwang@redhat.com>
Cc: Christian Amann <camann@suse.com>
Cc: Ricardo Branco <rbranco@suse.com>1 parent 088c484 commit 485a4cd
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
96 | 98 | | |
97 | | - | |
98 | | - | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
0 commit comments