OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Apr 19, 2024 9:36 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: The Linux kernel high mapping is not safe enough?
PostPosted: Mon Jun 22, 2020 4:02 am 
Offline

Joined: Tue Jul 30, 2019 11:53 pm
Posts: 3
In the source codes of Linux kernel 3.10.0, I have noticed that the virtual address range [__START_KERNEL_map, __START_KERNEL_map+size] is mapped to the physical address range [phys_base, phys_base+size], where size = _end-_text is the size of the kernel image, and phys_base is the delta between the address kernel is actually running at and the address kernel is compiled to run at. But from "arch/x86/kernel/vmlinux.lds.S", the virtual address range compiled for the kernel image is [__START_KERNEL, __START_KERNEL+size], where __START_KERNEL = __START_KERNEL_map + __PHYSICAL_START, so when we want to access symbols within the virtual address range (__START_KERNEL_map+size, __START_KERNEL+size], it would break because there is no page table entries for this?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 161 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group