From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BB887C61DA3 for ; Sat, 4 Mar 2023 01:06:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229563AbjCDBGM (ORCPT ); Fri, 3 Mar 2023 20:06:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjCDBGL (ORCPT ); Fri, 3 Mar 2023 20:06:11 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77B0C60D71; Fri, 3 Mar 2023 17:06:10 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 15C7D6198B; Sat, 4 Mar 2023 01:06:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 386EFC433D2; Sat, 4 Mar 2023 01:06:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1677891969; bh=UXbys7Cz4LeFgY1F56ERVnCp6cgKc61f/aBxSSGYwAc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Fdr+LhsH9XQRmRXOvgQAs7uD3zHtmBzVoKYBmaYr7BSU9oUS8lCZJ8nOs7MhSmXXP watGo+4te3ESQyvhFhO+++xvIX939cUj4t0n7lAMf1r3c/anxzC8CJ+QxfDwPJh/Rd GfyCX3VffYgN8KSfU8fuv9y/fZj2oXQzb+IHNKSTwZJ7ZkcTd4gMzBD7zfrT6wj6Nw MInd4aWNlg9HEA4BxXcPwBCGejiYR6a0KXD3VhI7T74MxTICFPjO6Qa6qWaNVvLBfc vIpBckf4RgL0ZIbOJ+zjTCMvFijvJXm95EtLiEgCMPabV8yx2KARZTwisfnmBIb0dm hQ6JKPV7w8fmw== Date: Fri, 3 Mar 2023 17:06:08 -0800 From: Jakub Kicinski To: "liujian (CE)" Cc: Paolo Abeni , Greg KH , "stable@vger.kernel.org" , Network Development , Kuniyuki Iwashima Subject: Re: [Qestion] abort backport commit ("net/ulp: prevent ULP without clone op from entering the LISTEN status") in stable-4.19.x Message-ID: <20230303170608.5ffe9181@kernel.org> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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.