Message ID | ZjfIwdWYJTjCt+AB@moon.secunet.de (mailing list archive) |
---|---|
State | New |
Headers | show
Received: from a.mx.secunet.com (a.mx.secunet.com [62.96.220.36]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A923E66B5E; Sun, 5 May 2024 17:58:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.96.220.36 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714931917; cv=none; b=Lqyhn/1btgRoSg4HGIIz0rnCXhAMWH7acugnXgZnl97zi0WvyYvpbvo0TIpOvRHwAnWns93YQK1E1PGcfIm1wy1BVXH2WssdDJqlvoHZWBiilu7vhMLVHlb07wRM4czM6FoDc/LnMLoYoxDzRfGcGCogXPOwH2GO+6f9Bf2hSiQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714931917; c=relaxed/simple; bh=mggA7OS7sKbTIvNFfbbnIDWP1Sm7tY+HZ01K03UVU+c=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=AeuSu4jhupUeTTHNoJ/dA3voju8IxUu9BR57ca4D1WragLhEuuaMot+kvzpgihf+dsHBbrIdkUIL9gL+ThtgQ8kItoF5iDSH4xiIo/qxkRlxJRtNU0oGMP1o8c24f7b5f/T6f7P87E1K6Qu+/4ryTuS6bQrs64wsxK0c5GHxO2Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=secunet.com; spf=pass smtp.mailfrom=secunet.com; dkim=pass (2048-bit key) header.d=secunet.com header.i=@secunet.com header.b=wAaaJbos; arc=none smtp.client-ip=62.96.220.36 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=secunet.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=secunet.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=secunet.com header.i=@secunet.com header.b="wAaaJbos" Received: from localhost (localhost [127.0.0.1]) by a.mx.secunet.com (Postfix) with ESMTP id 19196205E5; Sun, 5 May 2024 19:58:33 +0200 (CEST) X-Virus-Scanned: by secunet Received: from a.mx.secunet.com ([127.0.0.1]) by localhost (a.mx.secunet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eZiRaueaSu1h; Sun, 5 May 2024 19:58:32 +0200 (CEST) Received: from mailout2.secunet.com (mailout2.secunet.com [62.96.220.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by a.mx.secunet.com (Postfix) with ESMTPS id 3BA3420561; Sun, 5 May 2024 19:58:32 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 a.mx.secunet.com 3BA3420561 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secunet.com; s=202301; t=1714931912; bh=lSEHGladzuqmKPIEerNtXlNa4toMQIllV18os6y7qLI=; h=Date:From:To:CC:Subject:Reply-To:References:In-Reply-To:From; b=wAaaJbosf+VHf9S/ooUL2HqK5uX0oxtJF0mzPyFncEEBzNs2IS444h8d0514JsVr5 UYJQeuJrRTpV9BovEA6hj8VWMc8ikr6S3H/SKLVyAuBCOLE0kB0tU4ZtlwSLKB+uUV FKUQk+7k02SFbY2+EhKf4cbvMNXYQA0fLGyCaZt1A+of9hsMJtfpb8B8TR/q54qOcS HNzGv0pX4I+4Ag2X7+cZhGZfCPaPCcz+IkGdxhwRdtQ1ZFsp+ZAssOm08X1eP55m+q xGwcYKMFFiDQXVPsL4WlyhqRK38x9277LipBqAli8BhhILddWDV0W70XORTzcoYRa7 E2mWFl25za2zA== Received: from cas-essen-02.secunet.de (unknown [10.53.40.202]) by mailout2.secunet.com (Postfix) with ESMTP id 2FE2780004A; Sun, 5 May 2024 19:58:32 +0200 (CEST) Received: from mbx-essen-01.secunet.de (10.53.40.197) by cas-essen-02.secunet.de (10.53.40.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Sun, 5 May 2024 19:58:32 +0200 Received: from moon.secunet.de (172.18.149.1) by mbx-essen-01.secunet.de (10.53.40.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Sun, 5 May 2024 19:58:31 +0200 Date: Sun, 5 May 2024 19:58:25 +0200 From: Antony Antony <antony.antony@secunet.com> To: Jakub Kicinski <kuba@kernel.org>, Steffen Klassert <steffen.klassert@secunet.com>, <netdev@vger.kernel.org>, <linux-kselftest@vger.kernel.org> CC: "David S. Miller" <davem@davemloft.net>, David Ahern <dsahern@kernel.org>, Eric Dumazet <edumazet@google.com>, Paolo Abeni <pabeni@redhat.com>, "Herbert Xu" <herbert@gondor.apana.org.au>, Antony Antony <antony.antony@secunet.com>, <devel@linux-ipsec.org> Subject: [PATCH net-next v2 1/2] xfrm: fix source address in icmp error generation from IPsec gateway Message-ID: <ZjfIwdWYJTjCt+AB@moon.secunet.de> Reply-To: <antony.antony@secunet.com> References: <cover.1714931276.git.antony.antony@secunet.com> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: <linux-kselftest.vger.kernel.org> List-Subscribe: <mailto:linux-kselftest+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kselftest+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <cover.1714931276.git.antony.antony@secunet.com> Precedence: first-class Priority: normal Organization: secunet X-ClientProxiedBy: cas-essen-02.secunet.de (10.53.40.202) To mbx-essen-01.secunet.de (10.53.40.197) X-EXCLAIMER-MD-CONFIG: 2c86f778-e09b-4440-8b15-867914633a10 |
Series |
Fix icmp error source address over xfrm tunnel
|
expand
|
diff --git a/net/ipv4/icmp.c b/net/ipv4/icmp.c index 207482d30dc7..317ad5165408 100644 --- a/net/ipv4/icmp.c +++ b/net/ipv4/icmp.c @@ -558,7 +558,6 @@ static struct rtable *icmp_route_lookup(struct net *net, rt2 = dst_rtable(dst2); if (!IS_ERR(dst2)) { dst_release(&rt->dst); - memcpy(fl4, &fl4_dec, sizeof(*fl4)); rt = rt2; } else if (PTR_ERR(dst2) == -EPERM) { if (rt)