mmap-kernel 테스트 #6
mywnajsldkf
started this conversation in
질문 모음
Replies: 0 comments
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
is_kernel_vaddr
함수 사용만으로 3번째 케이스가 통과되지 않습니다.mmap(kernel, -0x8004000000 + 0x1000, 0, handle, 0)
는kernel
가상 주소에-0x8004000000 + 0x1000
크기의 파일을 매핑하는 코드이므로 테스트에 실패하는 이유가-0x8004000000 + 0x1000
큰 값이므로 kernel address를 넘어서기 때문이라고 생각합니다.⇒ int형으로 변환하여 매핑 작업에 유효한 길이인지 확인하는 방식으로 수정함
궁금한 점
Beta Was this translation helpful? Give feedback.
All reactions