Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3539326imu; Mon, 7 Jan 2019 05:18:35 -0800 (PST) X-Google-Smtp-Source: ALg8bN7D26vjXWxwz195tDu7XXYoay0Qbr+ZX8LAvEIktJ55cowcIdTaaIih4MliPMy2Lxo7ni5s X-Received: by 2002:a17:902:a5c3:: with SMTP id t3mr60490307plq.117.1546867115223; Mon, 07 Jan 2019 05:18:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546867115; cv=none; d=google.com; s=arc-20160816; b=E1GNvhOkOTCiXdwtNS1fxd1KFmXKli1F95kJLNyrRP9KLozVKfB0X4imphpBXFg5Di eQ3IKRUVJEm/oCkTsBgeNbv2P5/HHpMTEcN23vQ3XBeVCN53UI5KygPBbKf5dek08bQF ibBFajPyyLo+uww8fNunI9b1kJINcG7S6k1ebiyN+cMrgHZrbbDn+7lD45VA6Pk/nSRC icH6c68kRg5CUUUJprptREaou0gjIirP4Un7slEVelcbU436FzO0yptTbBq5zX3R8q7H q/bVXPbpb6A/WFBMg0RsomulUz+LJYcLcaYEKjo6SEzAZoTDxtIVgZYytEk69v3bJoRo idSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=UMeGmBKVy4vz1gHoPShZ2eIW5rNbg97867VuHwK8nyw=; b=VnaZZaFeXwHR8c2qBs1F3koqQ9etPXlt8aeyzbUAUUwhDQ2c9927auP+sIU/h6N8Ui kqRmKnBK3B8O6xjnIYX79OXABQ3D4myqZiHr162Ye1Kaq13ic/B5Iw77y7AtnkPGlnE3 pEFXean3ljCn35KI5kbYkL0+DuZYKSjjikWt6H7VB4cMKP9oB5/EfMQP4xCnk3QuxYWQ LdpHIcgq+Id4lBG6nSY5IXODiU8NwoM5rxSMQp9bDubFP8EVRsGRCxRBZvOJef5MCF97 PiT7LxLgkTASdA1tECo7ckV0ntYveoiWAeQyrOxsaWGHTrRXhMNQgPmwpBG0ww1Hw1qQ 0ZLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=B1Wgp2wE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 69si9825823pla.75.2019.01.07.05.18.20; Mon, 07 Jan 2019 05:18:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=B1Wgp2wE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730212AbfAGNAh (ORCPT + 99 others); Mon, 7 Jan 2019 08:00:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:48070 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729992AbfAGNAe (ORCPT ); Mon, 7 Jan 2019 08:00:34 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 55CE62089F; Mon, 7 Jan 2019 13:00:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1546866033; bh=nMuzbzMe/17TEeFCXRc/9oNbvVHa7eDdHRIB9ar5BYE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B1Wgp2wEx/m6Cr94YZz2fE2MPyIMy+1YRrqHXXd9gglye2fzQ/ZpE/fYMfuzin1r3 0wN8JMK5HiUPsoGEZAVUCLzqBttubf2X15UWKRHldczqYWfwkIQuuHTbonRnTQtA3M qpEZgIBPpmvPqy1+0PJfOENTYW86BDeMj7taAsFs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ying Xue , Jon Maloy , Cong Wang , "David S. Miller" , syzbot+eae585ba2cc2752d3704@syzkaller.appspotmail.com Subject: [PATCH 4.14 023/101] tipc: fix a double kfree_skb() Date: Mon, 7 Jan 2019 13:32:11 +0100 Message-Id: <20190107105334.213273968@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190107105330.372621917@linuxfoundation.org> References: <20190107105330.372621917@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Cong Wang [ Upstream commit acb4a33e9856d5fa3384b87d3d8369229be06d31 ] tipc_udp_xmit() drops the packet on error, there is no need to drop it again. Fixes: ef20cd4dd163 ("tipc: introduce UDP replicast") Reported-and-tested-by: syzbot+eae585ba2cc2752d3704@syzkaller.appspotmail.com Cc: Ying Xue Cc: Jon Maloy Signed-off-by: Cong Wang Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/tipc/udp_media.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/net/tipc/udp_media.c +++ b/net/tipc/udp_media.c @@ -243,10 +243,8 @@ static int tipc_udp_send_msg(struct net } err = tipc_udp_xmit(net, _skb, ub, src, &rcast->addr); - if (err) { - kfree_skb(_skb); + if (err) goto out; - } } err = 0; out: