#23 Disable write-only mmap test case for RISC-V
Closed by xctan. Opened by xctan.
xctan/libaio fix-mmap-test  into  master

Download 23.patch

As of June 28th, 2022, the RISC-V spec1 reserves the PTE permission bit
combination of "write+!read", and the kernel would have incoherent behavior in
the last test case of "harness/cases/5.t". Since it leads to undefined behavior,
until further spec update, this test case should be disabled for RISC-V.

A patch to disallow such permission in mmap() can be found here2.

PROT_WRITE implies PROT_READ on RISC-V and other architectures that don't support write-only memory. The proposed kernel change was removed in https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9e2e6042a7ec6504fe8e366717afa2f40cf16488

So this pull request can be closed.

Pull-Request has been closed by xctan

Metadata