Chapter 17

Connected questions and answers

This chapter answers questions that cross the boundaries between chapters. Each answer connects several topics, such as a bounds check and an object’s lifetime, or authentication §1.6 and authorization §1.7, and shows why a mechanism that establishes one property does not establish another. To answer such a question, name the property at issue, state the assumptions under which it holds, give the reasoning and a counterexample that shows where it stops, and say what evidence would support it; only then choose a mechanism. The answers point to the entries that give complete definitions instead of repeating them.

In this chapter

  1. 17.1 A memory-safe VM without a static verifier
  2. 17.2 An overflow-safe access predicate
  3. 17.3 Why a bounds check is not a lifetime check
  4. 17.4 A helper can invalidate an instruction-time bound
  5. 17.5 Verifier soundness and safe-program rejection
  6. 17.6 The cost of interpreter versus JIT execution
  7. 17.7 Authentication does not establish safe behavior
  8. 17.8 HMAC construction and unambiguous messages
  9. 17.9 A public identity does not add secret entropy
  10. 17.10 Replay resistance requires state or a fresh challenge
  11. 17.11 Recovery and anti-rollback can conflict
  12. 17.12 Crash cuts for a two-slot update
  13. 17.13 Prepared state avoids post-commit allocation failure
  14. 17.14 Coherence requires both publication and reclamation
  15. 17.15 Deny decisions and complete mediation
  16. 17.16 Pairing and object origin are different authorities
  17. 17.17 Why Just Works is not authenticated MITM protection
  18. 17.18 Why fuzzing cannot certify universal safety
  19. 17.19 What makes an incremental validation boundary sound
  20. 17.20 A hash is not an authorization decision
  21. 17.21 Zero return and complete execution are different claims
  22. 17.22 Compare mechanisms using the same property
  23. 17.23 Turn a research claim into a falsifiable question