some more chunk-file bounds-checks fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 patches 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | commit-graph: handle overflow in chunk_size checkscommit-graph.c | +3 | 2 replies | |
| 2/9 | midx: check consistency of fanout tablemidx.c t/ | +25 | 0 replies | |
| 3/9 | commit-graph: drop redundant call to "lite" verificationcommit-graph.c | +0 | 0 replies | |
| 4/9 | commit-graph: clarify missing-chunk error messagescommit-graph.c t/ | +8 | 0 replies | |
| 5/9 | commit-graph: abort as soon as we see a bogus chunkcommit-graph.c | +13 | 1 reply | |
| 6/9 | commit-graph: use fanout value for graph sizecommit-graph.c t/ | +6 | 4 replies | |
| 7/9 | commit-graph: check order while reading fanout chunkcommit-graph.c t/ | +14 | 0 replies | |
| 8/9 | commit-graph: drop verify_commit_graph_lite()commit-graph.c | +0 | 0 replies | |
| 9/9 | commit-graph: mark chunk error messages for translationcommit-graph.c | +9 | 0 replies |
Reviews trailers per patch
None of the 9 patches has a Reviewed-by or Acked-by.
| Patch | Jeff King |
|---|---|
| Series | Helped-by |
| 1/9 | |
| 2/9 | |
| 3/9 | |
| 4/9 | |
| 5/9 | |
| 6/9 | |
| 7/9 | |
| 8/9 | |
| 9/9 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/9] some more chunk-file bounds-checks fixes
This is a follow-up to the series from:
https://lore.kernel.org/git/[email protected]/
which was merged to master as jk/chunk-bounds. There were a few issues left open by that series and its review:
1. the midx code didn't check fanout ordering
2. whether we needed to sprinkle some more st_mult() on it
3. improving some of the error messages (translations, some consistency, maybe more details)
4. possible refactoring with a pair_chunk_expect() API (Taylor posted a series in that direction, which is currently in limbo)
The patches here fix the remaining correctness issues (points 1 and 2, along with a few other small issues I found). There's some improvement on 3, but I stopped short of adding lots more details. Partially because the series was already getting big, and partially because going further may depend on what we do with 4.
With regards to the pair_chunk_expect() thing, this series is incompatible (textually, but not conceptually) with what Taylor posted earlier, just because I'm moving some checks into the chunk-reader callbacks. Because it's fixing user-visible bugs, I think we'd want to do this first, and then (possibly) rebase Taylor's series on top. But I also think some of the things I noticed around overflow (especially patches 1 and 6) may inform how we'd want the pair_chunk_expect() API to look.
This is a continuation of the jk/chunk-bounds topic, which is new in the v2.43 cycle. But it should be OK to leave this until after the release. Nothing here is fixing a regression in the 2.43 release candidates; it's just a few bits that were incomplete. That said, I did try to float the correctness bits to the first two patches just in case. ;)
[1/9]: commit-graph: handle overflow in chunk_size checks [2/9]: midx: check consistency of fanout table
[3/9]: commit-graph: drop redundant call to "lite" verification [4/9]: commit-graph: clarify missing-chunk error messages [5/9]: commit-graph: abort as soon as we see a bogus chunk [6/9]: commit-graph: use fanout value for graph size [7/9]: commit-graph: check order while reading fanout chunk [8/9]: commit-graph: drop verify_commit_graph_lite() [9/9]: commit-graph: mark chunk error messages for translation
commit-graph.c | 94 +++++++++++++------------------------ midx.c | 20 ++++---- t/t5318-commit-graph.sh | 16 ++++--- t/t5319-multi-pack-index.sh | 14 ++++++ 4 files changed, 67 insertions(+), 77 deletions(-)
-Peff