|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT PATCH v2 0/2] Fix wrong round_page formula
The code taken from OSv has the PAGE_MASK defined
as (PAGE_SIZE-1) whereas we have it defined as
(~((__PAGE_SIZE) - 1)). This causes end_pos to
be < new_size an such we're not allocating enough
memory for the file (new_size should always be
bigger than end_pos since're we're round upwards).
Changes from v1:
*) Created a new header, page.h, that has the round up and down
macros
*) Updated the vfscore,ramfs and vfscore code to work
with the new header.
Vlad-Andrei Badoiu (2):
include/uk: Add page.h
lib/ramfs,vfscore,ukallocbbudy: Change the macro in vfscore and
buddyalloc
include/uk/page.h | 54 ++++++++++++++++++++++++++++++
lib/ramfs/ramfs_vnops.c | 4 +--
lib/ukallocbbuddy/bbuddy.c | 4 +--
lib/vfscore/include/vfscore/prex.h | 3 +-
4 files changed, 58 insertions(+), 7 deletions(-)
create mode 100644 include/uk/page.h
--
2.20.1
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |