Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1161375ybg; Tue, 2 Jun 2020 02:58:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSb61O7tZLKCj3MxcqDUf+yaOCJIFxooHpBrcGzpGfe9VhE0+itl93MrJhJFFdXEMG3MvX X-Received: by 2002:a05:6402:1217:: with SMTP id c23mr18510145edw.270.1591091889789; Tue, 02 Jun 2020 02:58:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591091889; cv=none; d=google.com; s=arc-20160816; b=WFCnT66+Q8pmaHc+BH984lHbyFDdjeWY7PuKMWHLcjgDrzzfj+Cb5p5L7xIpwTNxkT YmXchArshZvSa0DpkpoRB4bIMXQhAn6M5i98CuL1V7nsDAE1fGf/21LvHIUHS02ZF3+M tGOtEMqD3RZvVS4TSN93Y/uSR/FKygvbM9dV9QMvzKTQ7A7TjLSs2NJqqlj+5ZPGUTDb uGQZouBJxEh5Ko+tRYgwQdqrelSYkVAed9rweZs2SzfN1ZV6Bq+kPdJhcyf2lcCjW1a8 t//IAEnM3HI1vcM1joEHuDhmjcnsMI+Aqw9hDeBUnHDCRFV2N0nhlnfLmfbI0lvdI7/W ROIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=+2qftdfGzvqFPSmH85T6+Wlrzo4v4AkH7We72qGJ2eU=; b=UijqbPDdsd0iZWs0cyhhWODvjw2oFqVQPeMtIaRBSlDghsc1WF7WgLr3YKkbAV7FL3 8Le70wsY9wiL/hVSMGHv6EanvgAvexZQ3wgS+zpHcwBBu/ogI+F/O6KQg4WD/+2K2bxI yn3txq2W2hVEOXIhQn42f2rADb3rU84LIEUNCQSHtXsmqW2BlIBEDxmIHUfzjyl1qE5w jd/MeHHbaqA/nIwY0I2kKFurRgnaOCKyLlHZfG+TX9vH5wcLn0gudLQC63AQsfB0G9Ji OVegw3lHAdpTLIvsnIaNeb1PQdheQ3OknOrQwGp4jbJwCT0VUEM2RH1N5+kinNM09so+ mjrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@6wind.com header.s=google header.b=L5EPPNuH; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p6si1172262ejb.575.2020.06.02.02.57.46; Tue, 02 Jun 2020 02:58:09 -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=@6wind.com header.s=google header.b=L5EPPNuH; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726693AbgFBJzj (ORCPT + 99 others); Tue, 2 Jun 2020 05:55:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726012AbgFBJzi (ORCPT ); Tue, 2 Jun 2020 05:55:38 -0400 Received: from mail-io1-xd41.google.com (mail-io1-xd41.google.com [IPv6:2607:f8b0:4864:20::d41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59C6DC061A0E for ; Tue, 2 Jun 2020 02:55:38 -0700 (PDT) Received: by mail-io1-xd41.google.com with SMTP id k18so10220596ion.0 for ; Tue, 02 Jun 2020 02:55:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=+2qftdfGzvqFPSmH85T6+Wlrzo4v4AkH7We72qGJ2eU=; b=L5EPPNuHxm+R/ngrL7D/bDzm3jmI1xC3ugAs/xTro4ziY/ln+VksSDvLj07BXsJlPJ QEPbyHM3n/O7ty52fObri7ykLRUuozKTCN2tl3yO4uZXR/S3OS16z+oO87Ys3UhtbHJv q8X53AR1So3Vcqr+asssBUYXNUWKyMj3vQlW/dK8FVb2LCqkWPeQrz4wO7Ud0OZAM7c/ JZm8lcJyKmuc0ju4+p6+XUM6xvs6Vz2GtkJ7LBtrx1O7OHxXvDSR5fHTLswMM1bfOur8 a6zCCwTJ5yfY6h6E687BMFRK8iXGpQwVU7m3D+Bc1LG77pfGtHCIr0Z0MCctvPbLng4z jr1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=+2qftdfGzvqFPSmH85T6+Wlrzo4v4AkH7We72qGJ2eU=; b=I8UI81kbOwInmQ11A4EVFUommx9AqFITYe3taPy9cdl9YTWg3j5WEjznLJRYEzO03j T4CtxmfUf0Qh1ERq8bqeBhMtXWdRdRLCqI00HuaB9hRPAo9aZ9LNNpEFpUFSddjExGAe ZJIzlgXk4SMG7MATwdALPKO62qYdBn7QIjQgKdi+QV0+xdjIQMY7yUuVHvhsZQHM0SQv lUoyakIo39ov+OhMGZYNoemsvOAllupBjTwqfpil+fq8Bkh6zWZaahaCvEMsgCkI+VpI nSLV1rV3C3x8xxbBdYmlKD090uoklg2PMYa3GVBVLG+PGVsEYVNk/UFvpINJW3EUU0TL 70ng== X-Gm-Message-State: AOAM531vqOy5aDMECa7+thCrecUq0VtlENKZwMWIUj1QgyRObCW76C+6 4FMf8iGZ5qbCw4S589VJ66J/94PwqaDrxIAcAPkzMw== X-Received: by 2002:a05:6638:209:: with SMTP id e9mr25205965jaq.48.1591091737258; Tue, 02 Jun 2020 02:55:37 -0700 (PDT) MIME-Version: 1.0 References: <20200525154633.GB22403@atlantis> <20200530123912.GA7476@arkam> In-Reply-To: <20200530123912.GA7476@arkam> From: Christophe Gouault Date: Tue, 2 Jun 2020 11:55:26 +0200 Message-ID: Subject: Re: [PATCH net-next v2] xfrm: introduce oseq-may-wrap flag To: =?UTF-8?Q?Petr_Van=C4=9Bk?= Cc: Steffen Klassert , Herbert Xu , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le sam. 30 mai 2020 =C3=A0 14:39, Petr Van=C4=9Bk a =C3=A9c= rit : > > RFC 4303 in section 3.3.3 suggests to disable anti-replay for manually > distributed ICVs in which case the sender does not need to monitor or > reset the counter. However, the sender still increments the counter and > when it reaches the maximum value, the counter rolls over back to zero. > > This patch introduces new extra_flag XFRM_SA_XFLAG_OSEQ_MAY_WRAP which > allows sequence number to cycle in outbound packets if set. This flag is > used only in legacy and bmp code, because esn should not be negotiated > if anti-replay is disabled (see note in 3.3.3 section). > (...) Hi Petr, Thank you for taking my comment into account. This new patch looks good to me. Acked-by: Christophe Gouault Regards, Christophe