VirtualBox

Changes between Initial Version and Version 1 of Ticket #18945, comment 2


Ignore:
Timestamp:
Oct 8, 2019 11:38:02 AM (5 years ago)
Author:
Frank Batschulat (Oracle)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18945, comment 2

    initial v1  
    122122}}}
    123123There is no comment left in the code as to why that had been introduced.
    124 Maybe we should just disable it for the 5.4.0 kernel only though initally.
    125 Howver looking around in the code, there's is more code involved around
     124Maybe we should just disable it for the 5.4.0 kernel only though initially.
     125However looking around in the code, there's is more code involved around
    126126the executable pages. In Trunk we find:
    127127
     
    143143352     } while (0)
    144144353 #endif
    145 
     145}}}
    146146C symbol: MY_SET_PAGES_EXEC
     147{{{
    147148  File                 Function                  Line
    1481490 the-linux-kernel.h   <global>                  340 #define MY_SET_PAGES_EXEC(pPages, cPages) set_pages_x(pPages,
     
    301302
    3023031)
    303 Only on Linux we apparently have this request for executable kernel memory.
     304Only on Linux we apparently have this request for executable kernel pages?
    304305
    3053062)
     
    321322other time we do it only for kernels lower then KERNEL_VERSION(2, 4, 22).
    322323Ie. the first form does include kernel versions 2.4.21/22 and will exclude
    323 kernel versions 2.4.29 and below while
     324kernel versions 2.4.20 and below while
    324325the second form does include kernel versions 2.4.21/20 and will exclude
    325326kernel versions 2.4.22 and above.
     
    366367}}}
    367368
    368 which finally brings us to the place where we load code
    369 at such and execute it:
     369which finally brings us to one place where we load code and execute it:
    370370
    371371trunk/src/VBox/Devices/testcase/tstDevice.cpp
     
    408408
    409409Functions calling this function: RTMemExecAllocTag
    410 
     410{{{
    411411  File  Function       Line
    4124120 mem.h RTMemExecAlloc 388 #define RTMemExecAlloc(cb) RTMemExecAllocTag((cb), RTMEM_TAG)
    413 
     413}}}
    414414trunk/include/iprt/mem.h
    415415{{{
     
    453453
    454454A lot of this is obviously related to the recompiler
    455 but also to the runtime.
     455but also to the runtime itself.

© 2023 Oracle
ContactPrivacy policyTerms of Use