Opened 3 hours ago

Last modified 3 hours ago

#19438 new bug

ramfs: mmaped file last partial page not cleared

Reported by: korli Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: File Systems/RAMFS Version: R1/beta5
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

I built the mmap tests from https://github.com/google/gvisor/blob/master/test/syscalls/linux/mmap.cc

Two tests are failing when run on /var/shared_memory. Reproduce on x86_64 with the provided binary and:

export TEST_TMPDIR=/var/shared_memory/
./mmap_test --gtest_filter=MMapFileTest*SharedTruncatePartialPage

note: the binary needs devel:libgtest devel:libgmock devel:libabsl_strings

Attachments (1)

mmap_test (2.1 MB ) - added by korli 3 hours ago.

Change History (2)

by korli, 3 hours ago

Attachment: mmap_test added

comment:1 by korli, 3 hours ago

I tried a fix, but it could be completely wrong: https://review.haiku-os.org/c/haiku/+/9060

Note: See TracTickets for help on using tickets.