Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3115824rwb; Mon, 15 Aug 2022 18:30:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR6RetG0PrDmt5ovNNd+Q62cVSTMuHCF8VYo2j4uAmM4MiQmNEUXwXstFwiLU7B0N8SC7oJm X-Received: by 2002:a05:6402:538f:b0:444:c17b:1665 with SMTP id ew15-20020a056402538f00b00444c17b1665mr564204edb.98.1660613408538; Mon, 15 Aug 2022 18:30:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660613408; cv=none; d=google.com; s=arc-20160816; b=HEUztv1XekGJZP8QzRjJh2MCd9Hf1fXJkxSPHBVZhQBPl6Sk8SM0VEDatnk6t1DaQE EDowvwxIDLQKwCpMERjJT06fJ/2EInIiARgRRt6n/SHfaSuIpMv4Ch7m0KX0pIJ580+2 xKz+OOCsu8zzKk6IJ5FsHh9ivK1NJ6JXtZajOKo3ZQDIoOARZE1kJ7udVsS5AnZz7EBv uApqxwb4U6NhUQJQtxr7xqDNPlx4H6Aj63Bzo0Xrkor1QLjGVDWv4VLS8/C5ktuXaO4X SLXi3ZlUhtwsdDK9UQ6/PPZYf4gX7b94sntY0JhF0Cx0onQ5ydIbYIkFD+qZYwCAbsjw kngA== 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=WfMYXccn3GhGjF/8QOPHltlSjWLt73xqon/OKOFDZIj34WSjL4KZZJQ8fMnrl9dRnk FZ79wCoa9L+5rree6xe7Jny+js3jouyy046SV9TU3R9XfIK+L4xG3zHYp2JEdmHx4eaQ 9P/KQfRM5YT7goiGnOzrorwzq+zccbSfr6rIyXJx+JzPfq+XRn4ibkplmNB/TvT2Sf5f j/PHp1gXPg91zuImJFi7f9qXpuJdevH5uM7RULg86En3uc3BjcjKRDfxYdxZJtqPxJtg WLry/ckm0B1aEvdJyz/hcmSuVlPE4xB6uf4SPXaXdaLjNRQEIGVjUAyXJd1c+GObLeaG qClA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=u64gb0jR; 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 cr10-20020a056402222a00b0043cc4d599f8si7486979edb.161.2022.08.15.18.29.43; Mon, 15 Aug 2022 18:30:08 -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=u64gb0jR; 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 S1354064AbiHOXoo (ORCPT + 99 others); Mon, 15 Aug 2022 19:44:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354188AbiHOXlg (ORCPT ); Mon, 15 Aug 2022 19:41:36 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7052B83F33; Mon, 15 Aug 2022 13:11:05 -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 ams.source.kernel.org (Postfix) with ESMTPS id 2016EB80EA9; Mon, 15 Aug 2022 20:11:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6CC8FC433C1; Mon, 15 Aug 2022 20:11:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660594262; bh=iYfeC75j6U9orOtsHn0ahFpgAnuaEkZWkuIbvo+iqNg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u64gb0jRgJoe0w7lPzZ388S6+U4QUaZQ/R13i9ixk+lIGyFmnPOFuPWGAW2EfgZeV yUczRPdpnMT3+rhCfZkmC8styx/pFF8AMrwjllGsmXKFGlYkOZ1CAKCFYzwwTHeSGL QDEz00Vd4R8p27pwkEpW0Tlo3EMBUAG00mYmRLx4= 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.18 1080/1095] raw: fix a typo in raw_icmp_error() Date: Mon, 15 Aug 2022 20:07:59 +0200 Message-Id: <20220815180513.710889691@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@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); }