-1

Can a process intentionally / unintentionally read/rewrite the memory used by another process? How could this be achieved?

Eduard6421
  • 295
  • 1
  • 11
  • 1
    Not usually - unless process A allows process B to share it's memory using something like memory mapped files - see https://stackoverflow.com/questions/1200998/sharing-memory-between-two-processes-c-windows – auburg Feb 05 '18 at 11:20
  • This will be a serious security problem. – Tony Tannous Feb 05 '18 at 13:13

1 Answers1

0

Some operating systems allow privileged processes to schedule software interrupts for another process. You allocate a block of memory in the system space, write your code to modify the other process into the block of memory (ensuring the block gets freed), then schedule the software interrupt for the other process to execute this block of code.

user3344003
  • 20,574
  • 3
  • 26
  • 62