Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp26799pxb; Fri, 15 Jan 2021 05:03:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyS81oyPcFzgwEGpf1dXX4hk03ColG6IZGEA5TnwtY/uixVMkxHTQVxvJzdr6wnrIIf5rOT X-Received: by 2002:a17:906:174f:: with SMTP id d15mr8763575eje.52.1610715806027; Fri, 15 Jan 2021 05:03:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610715806; cv=none; d=google.com; s=arc-20160816; b=EVJ9SmtXB9FZI752dTmL0+CVPS4TzCOs/dP4GcjpbgZiafPfDPOWC5kE2flx+p6TP+ cnXPU1X0Sx/OIAKhQP8FIhkQ9QeawAh7t4dumwR4rjnqgyspQn3eZyAPCiyx5CtZ4Whl jiVGX/c16y3tjzHlLDHfbzIfMifC7nTgxHHxKhgACtrmAhW6Ud2BfFLUmGf3IKtT4d3Q Ta2MNQJB8wyBzzasBEKaBmwsTb4PHSmhZQGYBcI1q+XPLyhjxkFJsmTzY+BKsQMSzuFC Gv2xfkRnk450V7eHPHAsjxRMeNuFm85ynxOrvaoxTAvLVaevtl5cM4afzCDNtwEoyc4a 0dng== 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=QZI71HXDYs6WkOOjGB/Bcg7+slsyb5CYRaRKPwcRgAE=; b=U78vkwr+aMcPUhuh/dCW9hWT/zxcCH+0zSbpVnDD4OAvrvKqgPQjInA6lhIAzcnTjP IVw3whBD1Mn7ocMVB2b1ElJyaPllKSU2S/B0wpOYt/3p7wmIEo2xbeyGQKrRbV520Meh 3s0ZKPQiTklreeSRlmArdWf7M9xxH8Yufy7mG82YEfaMLoBE/4WYGxYASwvG0N2O8nVx fN+npUvhB9FcXXsQUhuyjhhei7pULyi7ft/gzJ3dDiY8ZBkKoZhEHegY98FDm1VQPd7r 5TjHMc2VFAJJdkCXGQYmzmxW915IeH80aSacvXkPoXqZgtX7iKfG5k7MddYoip6s3cUv mqHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sbYWS8fA; 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 e8si565150edn.494.2021.01.15.05.03.01; Fri, 15 Jan 2021 05:03:26 -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=sbYWS8fA; 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 S2387427AbhAONCP (ORCPT + 99 others); Fri, 15 Jan 2021 08:02:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:39632 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731651AbhAOMcu (ORCPT ); Fri, 15 Jan 2021 07:32:50 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 243672339D; Fri, 15 Jan 2021 12:32:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610713929; bh=vzDbLjDdpWdvu5S8k1Zf/+vqpKmaM+lttFnZlmXVDB8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sbYWS8fAvKQq4vpTHnQ3LHAPp5g7ox1Hl2AR/1hwPK1X2R6tiuiJfxSvMA+Dp9SG0 SX5ewrnRqgTp36meLS9VoyIdkqU2cA/AfZ9yzg1CTchzyu2+tJYX7rEe1zYZTCQ6k4 ep2N2we/5xFZ+Sn7kUiZ3ZbWBNrDvKsfx/lUn1Z0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vinay Kumar Yadav , Ayush Sawal , Jakub Kicinski Subject: [PATCH 4.19 13/43] chtls: Replace skb_dequeue with skb_peek Date: Fri, 15 Jan 2021 13:27:43 +0100 Message-Id: <20210115121957.686731061@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210115121957.037407908@linuxfoundation.org> References: <20210115121957.037407908@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 a84b2c0d5fa23da6d6c8c0d5f5c93184a2744d3e ] The skb is unlinked twice, one in __skb_dequeue in function chtls_reset_synq() and another in cleanup_syn_rcv_conn(). So in this patch using skb_peek() instead of __skb_dequeue(), so that unlink will be handled only in cleanup_syn_rcv_conn(). Fixes: cc35c88ae4db ("crypto : chtls - CPL handler definition") Signed-off-by: Vinay Kumar Yadav Signed-off-by: Ayush Sawal Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/crypto/chelsio/chtls/chtls_cm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/crypto/chelsio/chtls/chtls_cm.c +++ b/drivers/crypto/chelsio/chtls/chtls_cm.c @@ -581,7 +581,7 @@ static void chtls_reset_synq(struct list while (!skb_queue_empty(&listen_ctx->synq)) { struct chtls_sock *csk = - container_of((struct synq *)__skb_dequeue + container_of((struct synq *)skb_peek (&listen_ctx->synq), struct chtls_sock, synq); struct sock *child = csk->sk;