Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD033C43381 for ; Mon, 18 Mar 2019 00:02:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A0B462086A for ; Mon, 18 Mar 2019 00:02:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727595AbfCRACi (ORCPT ); Sun, 17 Mar 2019 20:02:38 -0400 Received: from laurent.telenet-ops.be ([195.130.137.89]:42914 "EHLO laurent.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726229AbfCRACi (ORCPT ); Sun, 17 Mar 2019 20:02:38 -0400 Received: from [10.2.2.197] ([141.135.125.133]) by laurent.telenet-ops.be with bizsmtp id pC2c1z00S2soW7901C2cJJ; Mon, 18 Mar 2019 01:02:37 +0100 Message-ID: <5C8EE03D.1030603@mail.wizbit.be> Date: Mon, 18 Mar 2019 01:03:09 +0100 From: Bram Yvahk User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: netdev@vger.kernel.org CC: steffen.klassert@secunet.com, herbert@gondor.apana.org.au, davem@davemloft.net Subject: [ipsec/xfrm] IPv6 fragmentation/path-mtu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org When playing a bit with IPv6 and XFRM I ran into a possible issue/edge case. In my testing I used linux 4.14.95, I was planning on testing this with latest kernel and investigating this a bit more deeply but so far I've not yet been able to do so... Only reason why I'm already submitting this message is because there is a 'Linux IPsec workshop' next week. When path-mtu between the two ipsec gateways is 1280 (i.e. minimum IPv6 mtu) and when a client in the network attempts to send a larger message then it receives a ICMPv6 PKT_TOOBIG message. The problem: mtu field in the message is set to 1198... This is lower then the minimum IPv6 mtu and the client seems to ignore it. (What I think should happen in this particular case: do not send a PKT_TOOBIG to the client but instead transmit fragmented IPv6 ESP packets to accommodate the path-mtu)