provenance tracking for memory regions

Open
#162 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Domain
security

Research direction

The issue does not name files, tests, or entry points. Start by locating the memory model and how it handles reads and writes, then determine how predefined regions could constrain those operations. Done means reads and writes outside permissible regions are prevented; the issue gives no test or implementation details.

Written by the indexing model from the issue text.

Description

As requested by @pennyannn , we want to be able to ensure that reads and writes in our memory model only occur from pre-defined memory regions.

This automatically ensures that the program does not read from or write to memory locations that are outside of the permissible ones.

For an example issue that was caused without such tracking, see The OpenSSL advisory on Input buffer over-read in AES-XTS implementation on 64 bit ARM

The AES-XTS cipher decryption implementation for 64 bit ARM platform will read
past the end of the ciphertext buffer if the ciphertext size is 4 mod 5 in 16
byte blocks, e.g. 144 bytes or 1024 bytes. If the memory after the ciphertext
buffer is unmapped, this will trigger a crash which results in a denial of
service.

Dominant language
Lean
Stars
128
Forks
31
Avg merge
1d 15h
Merged PRs (30d)
10

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from leanprover/LNSym

All issues in leanprover/LNSym

Similar issues

More Security issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.