Answers

  1. Expected output:
# ./long-over-pipe-riscv
received 42
# ./long-over-pipe-cheri
received 42
  1. Expected output:
# ./ptr-over-pipe-riscv
received Hello world!
# ./ptr-over-pipe-cheri
In-address space security exception (core dumped)
  1. Because the tag is stripped when sent via message-passing IPC, leading to a tag violation on dereference.