Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp12310pxb; Fri, 15 Jan 2021 04:39:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJwyJaphDWvrBCqV/Kj0JlcEEKODcA7OabFw1q0Xy53sbs7QXTTcbhnujOniag7a3hkNBJJz X-Received: by 2002:a17:906:134b:: with SMTP id x11mr3130531ejb.327.1610714363636; Fri, 15 Jan 2021 04:39:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610714363; cv=none; d=google.com; s=arc-20160816; b=Dvd5guyALw/lh5RUBVI9oMbxd5Ed18waeV+Y2xyCgd8t8xipz0+OkKpRykKxEez22Z vHnefYYsXSFY2006m/5RpQ1AMwAfTbRWuvHXB961TAxcoZgGAgiXPCycT2H1nNiS9Qe9 BrweAx3uasWkOpynJ3NrJX1Kmcw8dRy1wheE2IZCAPk6RpARX9vNBtJcmZi9J6fnsvcS ccNEmVBfZ9gCQ1hnSbBTT2lUAbl/mMs9+zBVjUjRinJuKvLN2ow52w2vGEPz5ttzcMhn 3GCsfDeM83a23jLeYpuLFsM7gUzAVRT+effHRQOVbhl90BkCdt09oJts4w9vbjl/qUBb uecA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Ofa/Kg7at5Po2dHQx+h2TjkJGZAh1eJ43Tdr4Zd574I=; b=IsEeHRx2PZ0ySYdviCX5q1dgO5jgjIkYxNT4A7j1z1WCzdFeQ95RXI3HkapATJX/ep HfcFyeJxQeIq9j62IkCG58k4XC7m5lfX5kXLJ0yLJjupE9GAkr4L4nxMsmrlCMavEtbm M0srid2csTo/ZwFlSlBL5SJvYF52zhSRd7VKH9Zp4PrgVuR4D/uF5sNJrlN/QqWsZWin HqoeHTyJflKAP2C1/Y9hT3thhKcBdNQ757dyz+9vB8TW5xRCmRASKOVw3zBmP3GW663H V7WtCnZD112Q1kYuzv898dJ7QlubGiq4Ue3gaa0RfAaw+UxFanbKw0zZxbFv3g7Zf3W+ cOAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iungp3SU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q3si3696295ejb.483.2021.01.15.04.39.00; Fri, 15 Jan 2021 04:39:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iungp3SU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732348AbhAOMfD (ORCPT + 99 others); Fri, 15 Jan 2021 07:35:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:41782 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387525AbhAOMeq (ORCPT ); Fri, 15 Jan 2021 07:34:46 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5400923884; Fri, 15 Jan 2021 12:34:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610714045; bh=ePc4RHuz3oSByRJOaZyYHMVIKa+viM/GlSRP+QYhTUU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iungp3SUUxLkT7iseH52AnyUZUOAm6sxbLlWD+xRqSNYinjg/yOoHlPVSgZ0NFvUK CtWLToE9qrZDhwjN2K7AMjpAlWmTPZgNGU5fTH19QAkPF3PQhEbgvQAlAnbMaM6Nfa xmjPE5PmZtlN1yaAjvjdACb0nxnTLaXWb9wAMWm4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Rohit Maheshwari , Ayush Sawal , Jakub Kicinski Subject: [PATCH 5.4 22/62] chtls: Remove invalid set_tcb call Date: Fri, 15 Jan 2021 13:27:44 +0100 Message-Id: <20210115121959.484272920@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210115121958.391610178@linuxfoundation.org> References: <20210115121958.391610178@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ayush Sawal [ Upstream commit 827d329105bfde6701f0077e34a09c4a86e27145 ] At the time of SYN_RECV, connection information is not initialized at FW, updating tcb flag over uninitialized connection causes adapter crash. We don't need to update the flag during SYN_RECV state, so avoid this. Fixes: cc35c88ae4db ("crypto : chtls - CPL handler definition") Signed-off-by: Rohit Maheshwari Signed-off-by: Ayush Sawal Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/crypto/chelsio/chtls/chtls_cm.c | 3 --- 1 file changed, 3 deletions(-) --- a/drivers/crypto/chelsio/chtls/chtls_cm.c +++ b/drivers/crypto/chelsio/chtls/chtls_cm.c @@ -1941,9 +1941,6 @@ static void chtls_abort_req_rss(struct s int queue = csk->txq_idx; if (is_neg_adv(req->status)) { - if (sk->sk_state == TCP_SYN_RECV) - chtls_set_tcb_tflag(sk, 0, 0); - kfree_skb(skb); return; }