Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752181AbbD0D0X (ORCPT ); Sun, 26 Apr 2015 23:26:23 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:49758 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751769AbbD0D0U (ORCPT ); Sun, 26 Apr 2015 23:26:20 -0400 Date: Sun, 26 Apr 2015 23:26:16 -0400 (EDT) Message-Id: <20150426.232616.353503560380309931.davem@davemloft.net> To: sylvain.rochet@finsecur.com Cc: paulus@samba.org, linux-ppp@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] ppp: mppe: fixes MPPE desync on links which don't guarantee packet ordering From: David Miller In-Reply-To: <1430073653-22131-1-git-send-email-sylvain.rochet@finsecur.com> References: <1430073653-22131-1-git-send-email-sylvain.rochet@finsecur.com> X-Mailer: Mew version 6.6 on Emacs 24.4 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sun, 26 Apr 2015 20:26:20 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1100 Lines: 25 From: Sylvain Rochet Date: Sun, 26 Apr 2015 20:40:51 +0200 > I am currently having an issue with PPP over L2TP (UDP) and MPPE in > stateless mode (default mode), UDP does not guarantee packet ordering so > we might get out of order packet. MPPE needs to be continuously synched > so we should drop late UDP packet. > > I added a printk on the number of time we rekeyed in MPPE decompressor, > this is what we currently have if we receive a slightly out of order UDP > packet: ... > This is obviously wrong, we missed packet 1561 and we already rekeyed 2 > times for 1562 we previously received, we can't recover the decryption > key we need for 1561, we should drop it instead of rekeying 4095 times. > > This patch series drop any packet with are not within the 4096/2 forward > window. Series applied, thanks Sylvain. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/