From: Jakub Kicinski <kuba@kernel.org>
To: "liujian (CE)" <liujian56@huawei.com>
Cc: Paolo Abeni <pabeni@redhat.com>,
Greg KH <gregkh@linuxfoundation.org>,
"stable@vger.kernel.org" <stable@vger.kernel.org>,
Network Development <netdev@vger.kernel.org>,
Kuniyuki Iwashima <kuniyu@amazon.com>
Subject: Re: [Qestion] abort backport commit ("net/ulp: prevent ULP without clone op from entering the LISTEN status") in stable-4.19.x
Date: Fri, 3 Mar 2023 17:06:08 -0800 [thread overview]
Message-ID: <20230303170608.5ffe9181@kernel.org> (raw)
In-Reply-To: <ea1af62dfc3e43859c1cb278f39d1a6f@huawei.com>
On Fri, 3 Mar 2023 10:52:15 +0000 liujian (CE) wrote:
> When I was working on CVE-2023-0461, I found the below backport commit in stable-4.19.x maybe something wrong?
>
> 755193f2523c ("net/ulp: prevent ULP without clone op from entering the LISTEN status")
>
> 1. err = -EADDRINUSE in inet_csk_listen_start() was removed. But it
> is the error code when get_port() fails.
I think you're right, we should add setting the err back.
> 2. The change in __tcp_set_ulp() should not be discarded?
That part should be fine, all ULPs in 4.19 (i.e. TLS) should fail
the ->init() call if sk_state != ESTABLISHED.
next prev parent reply other threads:[~2023-03-04 1:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-03 10:52 [Qestion] abort backport commit ("net/ulp: prevent ULP without clone op from entering the LISTEN status") in stable-4.19.x liujian (CE)
2023-03-04 1:06 ` Jakub Kicinski [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-03-04 1:12 Iwashima, Kuniyuki
2023-03-04 2:45 ` liujian (CE)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230303170608.5ffe9181@kernel.org \
--to=kuba@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=kuniyu@amazon.com \
--cc=liujian56@huawei.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).