PCR 12797 - Ensure memory consistency between writeProcessMemory() and resumeSuspended()
Summary: Ensure memory consistency between writeProcessMemory() and resumeSuspended()
Status: ASSIGNED
Alias: None
Product: Kernel
Classification: Deos
Component: Kernel (show other PCRs)
Version: experimental
Hardware: All Deos
: Any Upcoming
: Enhancement
Target Milestone: mainline
Assignee: .Kernel
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2020-08-20 14:50 MST by alarson
Modified: 2024-08-30 06:55 MST (History)
1 user (show)

See Also:
Impact Assessment: Medium
Organization: DDC-I, Inc.
alarson: Requirements?
alarson: Code?
alarson: TestCases?
alarson: TestProcedures?
alarson: Other?


Attachments

Note You need to log in before you can comment on or make changes to this PCR.
Description alarson 2020-08-20 14:50:37 MST
Currently memory written by writeProcessMemory() is not followed by a
memory barrier, which is clearly documented in writeProcessMemory.
However the consequence is that a thread on a different core may see
inconsistent memory.  It would simplify/optimize the debugger if at
least resumeSuspended() or resumeSuspendedThread() issued an acquire
fence and writeProcessMemory() issued a release fence to ensure that
resumed threads saw consistent memory.

Currently there is no known way of ensuring consistent memory for other
threads without introducing a memory barrier in the thread context
switch code.
Comment 1 deosbugs.ccb 2020-11-04 10:09:53 MST
CCB visited this PCR on 2020-11-04-53546
Comment 2 deosbugs.ccb 2021-03-12 13:52:42 MST
CCB visited this PCR on 2021-03-12-72934
Comment 3 deosbugs.ccb 2021-03-26 09:34:02 MST
CCB visited this PCR on 2021-03-26-57787
Comment 4 deosbugs.ccb 2021-03-26 11:17:24 MST
PCR being placed on HOLD as this enhancement has development-only impact.
Comment 5 deosbugs.ccb 2023-08-14 11:04:46 MST
CCB visited this PCR on 2023-08-14-64795
Comment 6 deosbugs.ccb 2023-08-18 09:44:20 MST
PCR being taken off HOLD for kismet, to be considered if time permits.
Comment 7 deosbugs.ccb 2024-04-04 13:19:29 MST
CCB visited this PCR on 2024-04-04-71881
Comment 8 deosbugs.ccb 2024-08-30 06:55:42 MST
CCB visited this PCR on 2024-08-30-49739