Message ID | 14c03971406de4effc9cf2ef21cf3921bd8b662d.1714982035.git.antony.antony@secunet.com (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 D7A35140E40; Mon, 6 May 2024 08:00:52 +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=1714982455; cv=none; b=svXmpL6/NU5mZ2A98QXhoVg3aSTiU+R5tq+GaGJNJEF9XBE5Nn8OZ4S5cMb/n3SM5MXpI6QCDSfQJvcys8SuVpdIBEgoZcX/WuHgicRt/B1ODLxVLe9XLewWJypCFhNbiHjBo9Ta/H5mFA1YycNapDCig5Bvv3v2HK0CjsjiYSw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714982455; c=relaxed/simple; bh=KUz72Jz3RA6f8g5ODmR/AHRMyPwA/99eRXklFzCM1AY=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RVTBZ3WwazoItNAztBt+/Q4i3qO9cmVGY0Mtdv3eBopaDkAYmzmXnTclOq6X7aQ+h+0UJv/d3zjzI+oqQkr0dvHLHuYnaH9H1w8xagyLceJoo20lpvo/24Qd62Q2fEPJ1nDDqZ+MNexPbqHiT+g/WCmCtBgRDaPWBEDuIYf8Xu8= 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=EmtqO/ZV; 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="EmtqO/ZV" Received: from localhost (localhost [127.0.0.1]) by a.mx.secunet.com (Postfix) with ESMTP id CBE2C2074A; Mon, 6 May 2024 10:00:50 +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 gBfQ50x6JiAh; Mon, 6 May 2024 10:00:47 +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 EA0C1201A0; Mon, 6 May 2024 10:00:46 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 a.mx.secunet.com EA0C1201A0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secunet.com; s=202301; t=1714982447; bh=lSEHGladzuqmKPIEerNtXlNa4toMQIllV18os6y7qLI=; h=Date:From:To:CC:Subject:Reply-To:References:In-Reply-To:From; b=EmtqO/ZVDFhXRRJ+b6bM3vLsVQxQc6CcTS+Bv6I274LYlaD7cuKJSdAlScY4e93kU RoTZLBy+n4+MeE299do3jfMEIcvPc1r7SWAtQ/zx0QgEx3IioRBI0yV4HmQwb51MvW X2U4Ff9trH1gQMZRcHvsNt4GoWLvmDVNC+vC7CWOQRLO9UDozr3xWeXxX51BkuQD9O 8rXNRvPnBfV1U72lxAmO4pu8ahVbHQJPgJuvAgYNmApWkyTWopRGLVrugXGul5Ym4I 75sGDAF+WGyQFpA0bGrtEiSq06TODf7faNgFqKtZ04RdS7FlNOMHHosF6ZllEet89L U5APMMYBtvWVg== Received: from cas-essen-02.secunet.de (unknown [10.53.40.202]) by mailout2.secunet.com (Postfix) with ESMTP id DD09C80004A; Mon, 6 May 2024 10:00:46 +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; Mon, 6 May 2024 10:00:46 +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; Mon, 6 May 2024 10:00:46 +0200 Date: Mon, 6 May 2024 10:00:40 +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>, Shuah Khan <shuah@kernel.org>, <devel@linux-ipsec.org> Subject: [PATCH net-next v3 1/2] xfrm: fix source address in icmp error generation from IPsec gateway Message-ID: <14c03971406de4effc9cf2ef21cf3921bd8b662d.1714982035.git.antony.antony@secunet.com> Reply-To: <antony.antony@secunet.com> References: <cover.1714982035.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.1714982035.git.antony.antony@secunet.com> Precedence: first-class Priority: normal Organization: secunet X-ClientProxiedBy: cas-essen-01.secunet.de (10.53.40.201) 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)