Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp11516pxb; Fri, 15 Jan 2021 04:37:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJymsHpQvTURotihwRJ0ILabCgvncLZSAv0hAc6YNin6mfVVunpC2SstsTcM9UcVxERy0PYs X-Received: by 2002:a17:906:b04f:: with SMTP id bj15mr8287335ejb.383.1610714273306; Fri, 15 Jan 2021 04:37:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610714273; cv=none; d=google.com; s=arc-20160816; b=E8Egb8nJShUhNhMAr5FE2mOgFt5n3A+ywTeQtlRNf38T+PksfF7r2GQSCad3WANcJG QOBGsEhFHTvyB2QxLFALfYD0tCqFN/AGZcFNkRUr7VUunx1Efa+gl72yT2fZvEViz23C y3s6yEsF8T8ShQBwXBHcZ7AaQRlPenTr+faj7SiniL4oVF2Q9PFvxsfvITwJbD69WTBu 8uoDrwySsfIdbBvQ9QFlNHpi1MdOBJvRqvrII6ouGanzGAMshFd+9BdAKBmEpsanThFu q9dtjWx8al4j0jLPTml9QjqZeU2Fnc5o7sqV1qc9uq6EveWiysWz2n69fSRf8JxR6ncn J8+A== 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=eKHl27orFk9Z3KW2Gdk/mPXU7W3iPmFo4SNlrE6XLH4=; b=TSv1+CUCkL5QTMi0NBmIS9Lgb6ydExWDyL6Rt+u5LEujUGpWfQE8y0f037l5+4Ks0F Q18Qo0OEWax23YvDADSCsH9NKK4gl/oGqADGLNy7vgPOc3N0g0h6dsQZiWVzqUxrvxbp 5ZHqcQM7tvjUYA5z+uZB3PRE7BIe8DqTSNRRbMHcZ3k5T4ZbUsG2On7EBw8tWirTcD0X YQomWuFVcL90wo/NWPlo/fsb6EiASeUuuEgYfWaOf/ardsWRjxqrqhut2/xs6lrGyWfh aXUeW/E24A2uHI29z16XetueCzmsqAIYqTKm7rfO19ppnt5/eX+5k0f3HPQkmEnRYh9M 8W1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xXrtXXgu; 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 o19si3765052eji.139.2021.01.15.04.37.29; Fri, 15 Jan 2021 04:37:53 -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=xXrtXXgu; 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 S2387599AbhAOMfH (ORCPT + 99 others); Fri, 15 Jan 2021 07:35:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:41822 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732695AbhAOMeu (ORCPT ); Fri, 15 Jan 2021 07:34:50 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id A58232371F; Fri, 15 Jan 2021 12:34:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610714050; bh=eHE+4f8yv+aIe/aLgbZCEplSOPWmDuu68fNLidD6xTg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xXrtXXgu+IFlFzJj77vnmDQhZE6TsJc1Kq8MGrt+Y7tytpmmHtg3h3sa0Ds2ZGTrN LLCf1dGC6aR3DqyVXm9x0HgWbmQ1gRhNitSDveoQ4YtkqzAEAvR9wlgZou9wlop95y pimwKXK3lJjUPx5KtbeueYq1KWbONsnP6mSYxX3I= 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 5.4 24/62] chtls: Replace skb_dequeue with skb_peek Date: Fri, 15 Jan 2021 13:27:46 +0100 Message-Id: <20210115121959.574186525@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 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 @@ -577,7 +577,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;