Re: [PATCH net-next v2] sock: Correct error checking condition for (assign|release)_proto_idx()

From: Eric Dumazet
Date: Thu Apr 10 2025 - 04:05:08 EST


On Thu, Apr 10, 2025 at 5:53 AM Kuniyuki Iwashima <kuniyu@xxxxxxxxxx> wrote:
>
> > [PATCH net-next v2] sock: Correct error checking condition for (assign|release)_proto_idx()
>
> Maybe net instead of net-next ?
>

I think this is a minor change, I would not add a Fixes: tag and risk
another CVE for such a case that is never reached.

We do not have 63 protocols, getting to 64 limit is moot.

As a matter of fact, release_proto_idx(struct proto *prot) should
never hit the condition.