Re: [PATCH net v3 1/2] tcp: fix use-after-free in do_tcp_getsockopt(TCP_CONGESTION)

From: Breno Leitao

Date: Fri Aug 28 2026 - 10:19:45 EST


On Fri, Aug 28, 2026 at 09:02:12AM -0400, Cen Zhang (Microsoft) wrote:
> > nit: Do you need to zero this string? It will be safely overwritten
> > below, no?
>
> Thanks for catching this. That initialization is unnecessary. Would
> you prefer a new version for this, or are you okay with keeping it
> as-is? I may need a few days before I can send a new version due to an
> ongoing email account approval process.

Right, this is just a nit, as I noted above.

We could leave it for the netdev maintainers to flag, but given how
strict netdev's review process is, I wouldn't be surprised if they
still ask for it to be cleaned up.