summaryrefslogtreecommitdiffhomepage
path: root/control/controlhttp/controlhttpserver
diff options
context:
space:
mode:
authorJoe Tsai <joetsai@digital-static.net>2026-01-28 18:28:25 -0800
committerGitHub <noreply@github.com>2026-01-28 18:28:25 -0800
commit6f55309f348bc545b80ddf036a5cb1cac86a719b (patch)
tree141146abb4b8b4f967bfe986ead67685c22ee1cb /control/controlhttp/controlhttpserver
parent9e7f536a7c145fd54a36e508b272d0312c8b7dad (diff)
downloadtailscale-6f55309f348bc545b80ddf036a5cb1cac86a719b.tar.xz
tailscale-6f55309f348bc545b80ddf036a5cb1cac86a719b.zip
logtail/filch: fix panic in concurrent file access (#18555)
In the event of multiple Filch intances being backed by the same file, it is possible that concurrent rotateLocked calls occur. One operation might clear the file, resulting in another skipping the call to resetReadBuffer, resulting in a later panic because the read index is invalid. To at least avoid the panic, always call resetReadBuffer. Note that the behavior of Filch is undefined when using the same file. While this avoids the panic, we may still experience data corruption or less. Fixes #18552 Signed-off-by: Joe Tsai <joetsai@digital-static.net>
Diffstat (limited to 'control/controlhttp/controlhttpserver')
0 files changed, 0 insertions, 0 deletions