PCR 15355 - Process with relocatable executable cannot have automounted owned filesystem
Summary: Process with relocatable executable cannot have automounted owned filesystem
Status: ASSIGNED
Alias: None
Product: Kernel
Classification: Deos
Component: Kernel (show other PCRs)
Version: 10.8.0
Hardware: All Deos
: Next Release
: Limitation
Target Milestone: mainline
Assignee: .Kernel
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2023-12-20 16:59 MST by rroffelsen
Modified: 2024-12-11 13:05 MST (History)
1 user (show)

See Also:
Impact Assessment: Trivial
Organization: DDC-I, Inc.
rroffelsen: Requirements+
rroffelsen: Code+
rroffelsen: TestCases?
rroffelsen: TestProcedures?
rroffelsen: Other?


Attachments

Note You need to log in before you can comment on or make changes to this PCR.
Description rroffelsen 2023-12-20 16:59:45 MST
+++ This PCR was initially created as a clone of PCR #15353 +++

When a process has a relocatable executable and one or more automounted owned filesystems the executable will be mapped over the automounted filesystems. This will likely cause a user mode access violation when attempting to access the automounted filesystems.

If the registry defines a process instance with an none empty (i.e. not "") automountPath, objdump should be used as follows, to check if the process executable is impacted by this limitation: 

* objdump can be used to check if the executable is linked relocatable. To do this issue '<arch-prefix>-objdump -p <executableName> | grep LOAD' and look at the vaddr of the first LOAD line found, if it is 0 then the file is relocatable. e.g.:
$ arm-eabi-objdump -p foo.exe | grep LOAD
    LOAD off    0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**16
    LOAD off    0x0000145c vaddr 0x0001145c paddr 0x0001145c align 2**16
foo.exe is relocatable because vaddr is 0.

Workaround:
For process configured to have automounted filesystems, link the executables at a  fixed address.
Comment 1 rroffelsen 2023-12-21 14:55:50 MST
Committed SVNRevision 91335.

Fixed a limitation that prevented process' with relocatable executables from being able to use auto mounted file systems.
Comment 2 deosbugs.ccb 2024-01-23 15:34:36 MST
CCB visited this PCR on 2024-01-23-80895
Comment 3 deosbugs.ccb 2024-01-23 16:05:46 MST
Developer asserts updates are acceptable for release 11.1.0.
Comment 4 deosbugs.ccb 2024-02-20 13:07:38 MST
CCB visited this PCR on 2024-02-20-71717
Comment 5 deosbugs.ccb 2024-04-04 13:19:57 MST
CCB visited this PCR on 2024-04-04-71881
Comment 6 deosbugs.ccb 2024-08-30 06:56:13 MST
CCB visited this PCR on 2024-08-30-49739
Comment 7 deosbugs.ccb 2024-08-30 07:14:21 MST
Developer asserts updates are acceptable for release 11.4.0.
Comment 8 deosbugs.ccb 2024-12-11 13:05:32 MST
CCB visited this PCR on 2024-12-11-68907