git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] transport-helper: fix TSAN race in transfer_debug()

From
Pushkar Singh <pushkarkumarsingh1970@gmail.com>
Date
Jun 4, 2026, 10:19 UTC
Message-ID
<CALE2CrTF_HexShFLdh-Z0zJHcyeB3jOrTxLieZS++1GVqTesjg@mail.gmail.com>
In-Reply-To
<xmqqv7bzp0vc.fsf@gitster.g>
Hi Junio,
On Thu, Jun 4, 2026 at 6:39 AM Junio C Hamano <gitster@pobox.com> wrote:
Show 10 quoted lines
> Would it be possible that transfer_debug_enabled is still -1 at this
> point?  We would proceed in such a case, which is a bit different from
> what would have happened in the original.
>
> Perhaps
>
>         if (transfer_debug_enabled <= 0)
>                 return;
>
> is what you want?  I dunno.

You're right. The original code would never proceed while the value was still negative, whereas my change would.

I'll update it to use <= 0 and send a v2.

Thanks, Pushkar

Previous: Junio C HamanoNext: Pushkar Singh
Message 3 of 7 in “transport-helper: fix TSAN race in transfer_debug()”
  1. transport-helper: fix TSAN race in transfer_debug()Pushkar Singh, Jun 2, 2026
  2. Junio C HamanoJun 4, 2026
  3. Pushkar SinghJun 4, 2026
  4. transport-helper: fix TSAN race in transfer_debug()Pushkar Singh, Jun 4, 2026
  5. Jeff KingJun 9, 2026
  6. transport-helper: fix TSAN race in transfer_debug()Pushkar Singh, Jun 9, 2026
  7. Jeff KingJun 11, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.