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 X-Spam-Level: X-Spam-Status: No, score=-10.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B3087C433DF for ; Thu, 30 Jul 2020 08:20:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 87CD820809 for ; Thu, 30 Jul 2020 08:20:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596097255; bh=cMxRCydGyX6iY/l0j5vxGztJqy0l9yxBD3INY8y8qlw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=rTUazh0h4ylP/z0z0Zgda18+SLeaDpm461G3We4Azqs4sn5BoM7qSk8KNufe7fdO3 ZnsV7Tejp1oXQ6T/HKETDw63AzZRkyyjCBs7gU/5xpOwHdB7QP1tosIOhGLOqqCKZ+ DFD1WkaI/1hQvhU2AnWPn75OQ9dfwtAlpbBkA51Q= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729159AbgG3IFc (ORCPT ); Thu, 30 Jul 2020 04:05:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:42562 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729150AbgG3IF1 (ORCPT ); Thu, 30 Jul 2020 04:05:27 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 36B1920672; Thu, 30 Jul 2020 08:05:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596096326; bh=cMxRCydGyX6iY/l0j5vxGztJqy0l9yxBD3INY8y8qlw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gqNQFTcRBm9XBNpw0w6pjclGQuRZiFIFiR6JtmR3RjwbZoLwcJhEzmFDQ0BOky6WG 5J1hNtVEGwIrRf/ERUs+5KC9y4krymbBYmLgwWuL4QLKnRs008cFzILARoJRiyu4uB YSmZl9igoFxjYZPJiEAmDUqwFG554AcctZwdeaWo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Miaohe Lin , "David S. Miller" Subject: [PATCH 5.7 08/20] net: udp: Fix wrong clean up for IS_UDPLITE macro Date: Thu, 30 Jul 2020 10:03:58 +0200 Message-Id: <20200730074420.923736178@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200730074420.533211699@linuxfoundation.org> References: <20200730074420.533211699@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Miaohe Lin [ Upstream commit b0a422772fec29811e293c7c0e6f991c0fd9241d ] We can't use IS_UDPLITE to replace udp_sk->pcflag when UDPLITE_RECV_CC is checked. Fixes: b2bf1e2659b1 ("[UDP]: Clean up for IS_UDPLITE macro") Signed-off-by: Miaohe Lin Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/ipv4/udp.c | 2 +- net/ipv6/udp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c @@ -2048,7 +2048,7 @@ static int udp_queue_rcv_one_skb(struct /* * UDP-Lite specific tests, ignored on UDP sockets */ - if ((is_udplite & UDPLITE_RECV_CC) && UDP_SKB_CB(skb)->partial_cov) { + if ((up->pcflag & UDPLITE_RECV_CC) && UDP_SKB_CB(skb)->partial_cov) { /* * MIB statistics other than incrementing the error count are --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c @@ -643,7 +643,7 @@ static int udpv6_queue_rcv_one_skb(struc /* * UDP-Lite specific tests, ignored on UDP sockets (see net/ipv4/udp.c). */ - if ((is_udplite & UDPLITE_RECV_CC) && UDP_SKB_CB(skb)->partial_cov) { + if ((up->pcflag & UDPLITE_RECV_CC) && UDP_SKB_CB(skb)->partial_cov) { if (up->pcrlen == 0) { /* full coverage was set */ net_dbg_ratelimited("UDPLITE6: partial coverage %d while full coverage %d requested\n",