Changeset 84988 in vbox for trunk/src/VBox/Debugger
- Timestamp:
- Jun 29, 2020 10:51:37 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Debugger/DBGPlugInLinux.cpp
r84982 r84988 2825 2825 * @param pThis The Linux digger data. 2826 2826 * @param pUVM The user mode VM handle. 2827 * @param uAddrKernelStart The first address the kernel is expected at. 2828 */ 2829 static bool dbgDiggerLinuxProbeKaslr(PDBGDIGGERLINUX pThis, PUVM pUVM, RTGCUINTPTR uAddrKernelStart) 2827 */ 2828 static bool dbgDiggerLinuxProbeKaslr(PDBGDIGGERLINUX pThis, PUVM pUVM) 2830 2829 { 2831 2830 /** … … 2854 2853 * So the highest offset the kernel can start is 0x40000000 which is 1GB (plus the maximum kernel size we defined). 2855 2854 */ 2856 if (dbgDiggerLinuxProbeWithAddr(pThis, pUVM, uAddrKernelStart, _1G + LNX_MAX_KERNEL_SIZE)) 2855 if (dbgDiggerLinuxProbeWithAddr(pThis, pUVM, LNX64_KERNEL_ADDRESS_START, _1G + LNX_MAX_KERNEL_SIZE)) 2856 return true; 2857 2858 /* 2859 * 32bit variant, makes sure we don't exceed the 4GB address space or DBGFR3MemScan() returns VERR_DBGF_MEM_NOT_FOUND immediately 2860 * without searching the remainder of the address space. 2861 * 2862 * The default split is 3GB userspace and 1GB kernel, so we just search the entire upper 1GB kernel space. 2863 */ 2864 if (dbgDiggerLinuxProbeWithAddr(pThis, pUVM, LNX32_KERNEL_ADDRESS_START, _4G - LNX32_KERNEL_ADDRESS_START)) 2857 2865 return true; 2858 2866 … … 2918 2926 2919 2927 /* Maybe the kernel uses KASLR. */ 2920 if (dbgDiggerLinuxProbeKaslr(pThis, pUVM, LNX32_KERNEL_ADDRESS_START)) 2921 return true; 2922 2923 if (dbgDiggerLinuxProbeKaslr(pThis, pUVM, LNX64_KERNEL_ADDRESS_START)) 2928 if (dbgDiggerLinuxProbeKaslr(pThis, pUVM)) 2924 2929 return true; 2925 2930
Note:
See TracChangeset
for help on using the changeset viewer.