VirtualBox

Changeset 98002 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Jan 5, 2023 2:08:30 PM (2 years ago)
Author:
vboxsync
Message:

Runtime/ldr/ldrELFRelocatable: Fix groking ELF binaries with DT_DEBUG dynamic sections, DT_DEBUG is filled in by the dynamic linker and 0 for raw binary images not being executed. The pointer can also be anywhere in userspace (most likely a regression from r139569)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/ldr/ldrELFRelocatable.cpp.h

    r96757 r98002  
    27582758                break;
    27592759            case DT_DEBUG:
    2760                 LOG_VALIDATE_PTR_RET("DT_DEBUG");
     2760                /*
     2761                 * DT_DEBUG is filled in by the dynamic linker to point a debugger to the head of the link map,
     2762                 * it can point anywhere in userspace. For binaries not being executed it will be 0,
     2763                 * so there is nothing we can validate here (and it is not required as we don't use
     2764                 * this dynamic section). See https://ypl.coffee/dl-resolve-full-relro/ for more information.
     2765                 */
    27612766                break;
    27622767            case DT_TEXTREL:
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette