JakeChampion opened a new pull request, #14156: URL: https://github.com/apache/trafficserver/pull/14156
A cache directory read from disk was checked for magic, version, and segment links only. The shared memory restart path also checks that the positions are in the stripe. `dir_valid()` has no upper bound for an out of phase entry. A corrupt entry with an offset past the stripe thus passes the probe, and `CacheVC::handleRead()` computes a negative read length from it. `handle_dir_read` now: - clears the stripe if `write_pos`, `last_write_pos`, or `agg_pos` is outside the stripe; - clears each segment that has an entry offset past the stripe, together with the existing link check. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
