Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3371308pxk; Mon, 21 Sep 2020 11:51:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7B7uFPnbshcwA8G9/Birjm69ST1n/jd3xNOwjFGG1W/jO5BTzDIxJXDK9BZsVP8/OMcyo X-Received: by 2002:a17:906:14c9:: with SMTP id y9mr875230ejc.523.1600714301154; Mon, 21 Sep 2020 11:51:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600714301; cv=none; d=google.com; s=arc-20160816; b=YyG+MGzDrixyzoZhTWepnHBP6eNgx00hwwjZMSnvpmuXrNyBnuVRJrMhpL+BDq2GKF +0ah9/xyYAKDcvVM9Yr2lqP3VVk8C7ESgd7OpYWo1hc2Rk2QyUGJvWYuJIX30j72FUHM aq94bFkYouvq8ZxBwJC4hea5F1Li4pkEmsRTc/dwKsfMI9NVmHEJmfZj6TlZmJdTBrsc sE3bzQZey3sPagqx1t/N+owDeboa5tGck3UHI/WE2ziq67mdiuC0XJNyD8huVaLnrVuw w3CZw+mgnyOs4Dmhe2odWqycfAPoZx13cdP7dpN1yReMHLEDufOkzMAyDKWa1t0JU2wl 4tXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:dkim-signature:dkim-filter; bh=GVyop2Bxa1u83OR49HR6MQZ3Oln7khuYox267XJGLIA=; b=C0H+Jpkp5AarHlskYM58tJojQcRCQB0UgjX7SD3AkN/wOt3bymgPkzoGnKHVv/iJF1 aBvAX8IUNNHg4N2+caPXCp60PbLERTw787BSSyT9pZpsFZc1JfqzJWZAJVVgZ2m46YOz TqIfhYcHukdRpiDKjs7onHvt6xEj7vy6/N6RlPWzElHzXNjB03oYTYxZuIn7u8e8xmsx Y4oxyW42mBAy9utGlWymF16t+ftAu3NEMvNyXOFZlYoZKgTczwMs0N+wdXU2q0oWylUY 5iH+m3+0/ODBX2B/hJCKX1WkWEF8C0xQ4an4rp7QBTsfhXX1cTxsXjQFrU6enhITOlYl bazQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=CuiHiBDs; 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=efficios.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s3si8720217edq.248.2020.09.21.11.51.17; Mon, 21 Sep 2020 11:51:41 -0700 (PDT) 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=@efficios.com header.s=default header.b=CuiHiBDs; 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=efficios.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727870AbgIUSuE (ORCPT + 99 others); Mon, 21 Sep 2020 14:50:04 -0400 Received: from mail.efficios.com ([167.114.26.124]:39944 "EHLO mail.efficios.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727059AbgIUSuE (ORCPT ); Mon, 21 Sep 2020 14:50:04 -0400 X-Greylist: delayed 323 seconds by postgrey-1.27 at vger.kernel.org; Mon, 21 Sep 2020 14:50:03 EDT Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id A31F52CDD80; Mon, 21 Sep 2020 14:44:39 -0400 (EDT) Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id WBvPMP2SvqHB; Mon, 21 Sep 2020 14:44:39 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 5A6D22CD77F; Mon, 21 Sep 2020 14:44:39 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com 5A6D22CD77F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1600713879; bh=GVyop2Bxa1u83OR49HR6MQZ3Oln7khuYox267XJGLIA=; h=Date:From:To:Message-ID:MIME-Version; b=CuiHiBDsd1vmweBJ35jYBnwQqbUBu+d/tFcHJO2+uynaIBn0rMDTcLoaQwzGrFe/b 3P9HZka8NsGT6H67f0sEjOwxVnjSmShJjYLSvqTgcw8cyrl8vfwB8sv1Py5qtqT0Ao +lfXcGrSIgFItqMmmWTODM+9sl1tG5FK/rvw0J0oGiOsTXNHPifkCEd1UGm/6dha9g VlTV4d6H646/NMPno6plOftOskb+4DHNY6iJ/xiMEyC1t2+rlLV6O+hwNC0OH37p+d FXSUaRKveGMZ3ruHuRh1g5GzwyoXj9diL7WLSef0Lz+3+mYXe7Cpag4OYjbh00utQ4 6B5zJMMueoiYg== X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id qJk3hvE_jpDr; Mon, 21 Sep 2020 14:44:39 -0400 (EDT) Received: from mail03.efficios.com (mail03.efficios.com [167.114.26.124]) by mail.efficios.com (Postfix) with ESMTP id 50B642CD77E; Mon, 21 Sep 2020 14:44:39 -0400 (EDT) Date: Mon, 21 Sep 2020 14:44:39 -0400 (EDT) From: Mathieu Desnoyers To: David Ahern Cc: "David S. Miller" , netdev , linux-kernel Message-ID: <1453768496.36855.1600713879236.JavaMail.zimbra@efficios.com> In-Reply-To: <390b230b-629b-7f96-e7c9-b28f8b592102@gmail.com> References: <20200918181801.2571-1-mathieu.desnoyers@efficios.com> <390b230b-629b-7f96-e7c9-b28f8b592102@gmail.com> Subject: Re: [RFC PATCH v2 0/3] l3mdev icmp error route lookup fixes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [167.114.26.124] X-Mailer: Zimbra 8.8.15_GA_3965 (ZimbraWebClient - FF80 (Linux)/8.8.15_GA_3963) Thread-Topic: l3mdev icmp error route lookup fixes Thread-Index: 0yf8zWzCKvQf9eZ37AP1IEyfvMk3gQ== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- On Sep 21, 2020, at 2:36 PM, David Ahern dsahern@gmail.com wrote: > On 9/18/20 12:17 PM, Mathieu Desnoyers wrote: >> Hi, >> >> Here is an updated series of fixes for ipv4 and ipv6 which which ensure >> the route lookup is performed on the right routing table in VRF >> configurations when sending TTL expired icmp errors (useful for >> traceroute). >> >> It includes tests for both ipv4 and ipv6. >> >> These fixes address specifically address the code paths involved in >> sending TTL expired icmp errors. As detailed in the individual commit >> messages, those fixes do not address similar issues related to network >> namespaces and unreachable / fragmentation needed messages, which appear >> to use different code paths. >> > > New selftests are failing: > TEST: Ping received ICMP frag needed [FAIL] > > Both IPv4 and IPv6 versions are failing. Indeed, this situation is discussed in each patch commit message: ipv4: [ It has also been pointed out that a similar issue exists with unreachable / fragmentation needed messages, which can be triggered by changing the MTU of eth1 in r1 to 1400 and running: ip netns exec h1 ping -s 1450 -Mdo -c1 172.16.2.2 Some investigation points to raw_icmp_error() and raw_err() as being involved in this last scenario. The focus of this patch is TTL expired ICMP messages, which go through icmp_route_lookup. Investigation of failure modes related to raw_icmp_error() is beyond this investigation's scope. ] ipv6: [ Testing shows that similar issues exist with ipv6 unreachable / fragmentation needed messages. However, investigation of this additional failure mode is beyond this investigation's scope. ] I do not have the time to investigate further unfortunately, so I thought it best to post what I have. Note that network namespaces also probably have the same problem, but those are not covered by the test cases. Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com