read syscall의 경우 왜 page fault가 발생하지 않나요? #4
YoonpyoHong
started this conversation in
질문 모음
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
위의 코드는 pt-write-code2라는 test code인데, 여기서 read syscall을 이용하여 code segment영역에 접근합니다. 위의 test의 경우, 저희는 read system call에서 예외처리를 해줌으로써, code 영역에 쓰지 못하게 했습니다.
위의 코드는 pt-write-code의 test case인데 여기서는 page fault가 발생하여 page-fault handler에서 이 내용을 control할 수 있었습니다. 이 지점이 제가 이해하지 못한 부분인데, 여기서 read syscall이 발생하여 test_main에 쓰기 작업을 시도하면 2번째 test case처럼 page-fault를 발생시켜야 할 것이라고 생각했는데 왜 발생하지 않는 것인지 이해가 되지 않습니다.
Beta Was this translation helpful? Give feedback.
All reactions