Skip to content

Commit

Permalink
Merge pull request #4232 from Sonicadvance1/disable_gvisor_tests
Browse files Browse the repository at this point in the history
unittests/gvisor: Disable memfd tests
  • Loading branch information
lioncash authored Jan 1, 2025
2 parents 2d66bc2 + 0fe2827 commit 8bee101
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions unittests/gvisor-tests/Disabled_Tests
Original file line number Diff line number Diff line change
Expand Up @@ -199,3 +199,17 @@ pselect_test
# On older kernels it would return -ESPIPE, on new kernels it returns 0.
# This test expects -ESPIPE behaviour.
timerfd_test

# Sub-test SealGrowPartialWriteTruncated tests some behaviour of F_SEAL_GROW that changes behaviour depending on kernel version.
# - Grows the memfd region to 1 page
# - Seals it
# - Seeks to 3/4 in to the page
# - Tries to write one page of data
# - Expects the kernel to only write 1024 bytes
# - Newer kernels return EPERM instead
# Sub-test SealWriteWithMmap tests behaviour of F_SEAL_WRITE that changes behaviour depending on kernel version
# - Seals the memfd region
# - Tries to map it with MAP_SHARED and PROT_WRITE - Expects failure
# - Tries to map it with MAP_SHARED and PROT_READ - Expects failure
# - Older Linux kernel versions accidentally allowed PROT_READ mappings through.
memfd_test

0 comments on commit 8bee101

Please sign in to comment.