Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3256036rwb; Mon, 15 Aug 2022 22:27:51 -0700 (PDT) X-Google-Smtp-Source: AA6agR6Np4HnXn7dtNZYFmJtwv3leqxYf3gMkGNhQ85joYzqlXvaZg5uKqXGVzq9qbJL1+WtXvPX X-Received: by 2002:a17:90a:ac0e:b0:1f3:2507:b532 with SMTP id o14-20020a17090aac0e00b001f32507b532mr22584189pjq.48.1660627670807; Mon, 15 Aug 2022 22:27:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660627670; cv=none; d=google.com; s=arc-20160816; b=x10fqlgjMIM++wsBOZPJR6bMXrWz7yR488NEbOpMZ4ow4hzeak8R1ZdQRU2qP6zUZB gU+yQQxS9K5hZH3DjqoZrN8JY+RB9cphOFoROHEBgHd5QjG1n8e8xAwpKEPIDTBKQa65 kd9XyGM2X4gVYDLAEl0ZLRec5W73lhtbQ1chlwIYWKnKol/52JdH/XSh1nKPEtAhY7to GdkdndSY3dQ1r7k8jWDo0w/3oqz5ZzSHc9Ljc+jXtnnLzfsHT1b/tnDEZ4kHb74J1Zpc oY0fvZLiBRP6Ty+DSyy/7jCRWfRa+NQXRkR1l7ZrOqVK/Q2i3GuHcb+6Ubo8Civ3lYXC uJ3A== 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=JLh8F5MQjs9lHcYnVWp52RPxrZ5Ffr01jbRXRvzcZGw=; b=GQ8QTTzh5I6mZsntsLGbr8eSO8pjXqq+aXvmcQk+P5S/fqM/5jIW1H46Pr+yfZpI2l k/fkqVetfbwYQO7kHx7MiFPJgKjhOsGl9xhPlwcAtaGmux42XtMQYaL3LnU9p1ECcjR0 9Q3LLVjJ91/zqvdti6das8/1fYPUfRp1GaUoD8YmsEqnepF9PYzDg5/i3/kf7toDB3hS 0GvxDRBbR5ztksUi5ntlLUZxs92K49SVinLk1wWxG4fd/2h03REqERdb0Urz3JvA6lyq V5A+tS4VzZBHjuREcVF7RB+ySZLIXqcbD0IIPV3i64BGfrcv8bQzDrcvO9CDYEJtvrId 4r+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SQFQGi2v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y200-20020a6264d1000000b0052b1d70991csi758pfb.242.2022.08.15.22.27.40; Mon, 15 Aug 2022 22:27:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SQFQGi2v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233562AbiHPE4r (ORCPT + 99 others); Tue, 16 Aug 2022 00:56:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233333AbiHPEzH (ORCPT ); Tue, 16 Aug 2022 00:55:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0BF9BB6A7; Mon, 15 Aug 2022 13:51:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 50E6361283; Mon, 15 Aug 2022 20:50:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E539C433C1; Mon, 15 Aug 2022 20:50:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660596638; bh=iYfeC75j6U9orOtsHn0ahFpgAnuaEkZWkuIbvo+iqNg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SQFQGi2vO8mfv1w/m5WvcxVJ7jermaWnleNTqFpFLFMamAm/aT641vqscpj/laZLd XqrsWawVT8qqxJd5/FcINHwFPCmCJwBEwBZYmBuyglAjxZCEQzI3b6bBHlrWJjxU0a gh+jm6ickYqTPgMz8d+SR52iOVicgFxfDF6xqMMM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, John Sperbeck , Eric Dumazet , Jakub Kicinski Subject: [PATCH 5.19 1143/1157] raw: fix a typo in raw_icmp_error() Date: Mon, 15 Aug 2022 20:08:19 +0200 Message-Id: <20220815180526.207784512@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Eric Dumazet commit 97a4d46b1516250d640c1ae0c9e7129d160d6a1c upstream. I accidentally broke IPv4 traceroute, by swapping iph->saddr and iph->daddr. Probably because raw_icmp_error() and raw_v4_input() use different order for iph->saddr and iph->daddr. Fixes: ba44f8182ec2 ("raw: use more conventional iterators") Reported-by: John Sperbeck Signed-off-by: Eric Dumazet Link: https://lore.kernel.org/r/20220623193540.2851799-1-edumazet@google.com Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- net/ipv4/raw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/ipv4/raw.c +++ b/net/ipv4/raw.c @@ -278,7 +278,7 @@ void raw_icmp_error(struct sk_buff *skb, hlist_nulls_for_each_entry(sk, hnode, hlist, sk_nulls_node) { iph = (const struct iphdr *)skb->data; if (!raw_v4_match(net, sk, iph->protocol, - iph->saddr, iph->daddr, dif, sdif)) + iph->daddr, iph->saddr, dif, sdif)) continue; raw_err(sk, skb, info); }