RFC static analysis of copy_to_user()
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest4 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | expression.h: update comment to include other cast typesexpression.h | +1 | 0 replies | |
| 2/4 | move name-based analysis before linearizationsparse.c | +156 | 0 replies | |
| 3/4 | add a check for copy_to_user() address spacessparse.c validation/ | +123 | 0 replies | |
| 4/4 | check copy_to_user() sizessparse.c validation/ validation/ | +127 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC v1 0/4] static analysis of copy_to_user()
Hi all,
A while ago I talked with various people about whether some static analsys of copy_to_user() could be productive in finding infoleaks. Unfortunately, due to the various issues outlined in the patch notes, it doesn't seem like it is. Perhaps these checks are useful to put in just to future proof ourselves against these sorts of issues, though.
Anyway, here's the code. Thoughts welcome!
Tycho
Tycho Andersen (4):
expression.h: update comment to include other cast types move name-based analysis before linearization add a check for copy_to_user() address spaces check copy_to_user() sizes
expression.h | 2 +- sparse.c | 327 ++++++++++++++++++++++--- validation/copy_to_user.c | 31 +++ validation/copy_to_user_sizes.c | 53 ++++ validation/copy_to_user_sizes_inline.c | 29 +++ 5 files changed, 405 insertions(+), 37 deletions(-) create mode 100644 validation/copy_to_user.c create mode 100644 validation/copy_to_user_sizes.c create mode 100644 validation/copy_to_user_sizes_inline.c
Signature · 1 line
2.19.1