Skip to content

feat: mmap + munmap#33

Open
minho-git wants to merge 3 commits intomainfrom
MH-MMAP
Open

feat: mmap + munmap#33
minho-git wants to merge 3 commits intomainfrom
MH-MMAP

Conversation

@minho-git
Copy link
Contributor

feat: mmap + munmap

free (info);

if (VM_TYPE(page->uninit.type) != VM_FILE)
free(info);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lazy_load_segmentvm_alloc_page_with_initalizer()로 생성된 UNINIT 페이지가 첫 폴트가 일어날 때만 실행이 되는데 무조건 Type은 UNINIT인 경우만 있지 않나염..?

return result;
}

static void *syscall_mmap(void *addr, size_t length, int writable, int fd, off_t offset) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

user address 범위도 체크를 하나 해야하지 않을까.. 싶어요 또한 오버플로우 체크도 해야하지 않을까...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants