Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp520477pxb; Mon, 25 Apr 2022 15:28:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/Z9VbznJPzdwlI9ilZM8NZ12z/oFOL8XRlC2c4r07PC4ZPjNMaEsUd9+O5Ij07Gau0gf9 X-Received: by 2002:a63:1b5e:0:b0:3aa:593c:9392 with SMTP id b30-20020a631b5e000000b003aa593c9392mr16968034pgm.470.1650925682062; Mon, 25 Apr 2022 15:28:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650925682; cv=none; d=google.com; s=arc-20160816; b=bYa1fRvjgle4WPtDyv9g8GohpH/qtBtN/14knE3Jkpvdbnub1UJ249AZIUl5ZwPKQ8 W5kEeFXitLPlCBOKQrTSCNKhw2yCCzZwr51sl7cHpp+Q2rY/Bwp3TKXl6h2gw6G9HFm0 AgvmMPSUObuvnebeyeB6W2qJekhrCTvGQ9jyfAXoGhdsmyo6bj18Hohh4UCrtaqVjqSU 68BzJxDovZpfpMqHHoZ8baZzx+Ua1YxGY8HeaDrmbgXfQxYeausGSNp2CAU2zXnyI0os c3KLvM3GBQa52QXqnOGmwL7VwmcslVaDD78uCPRbGExBYPqSh5cCJexGPM43nnNRFWoI NsZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=9AprGNfd3CvvgyyCMDEqKnXuLtvajkiKghGw4Z+xUJM=; b=zPM1PAmzn8UHusLqiwLBZGUMATqkOHf+WIjH8NpTLgLnzho04+xz58ruSxEsRpk4G3 JFqFAEHN7d8nO1Cl/fS8TRC0STPGmTcsrlU/t0U/7CCTbzF9qFy4dBBBaUVn+fnei1pa O99AoaOU0qVfRkJ5WCNdj5BHCpsZLr76uSCwmFRMtqbVmn9i0phIMMBbCB4ItMdTjmC9 D3Z8uw1lzSs1sE4lr2BIapyCyeFbM+L7yckB4AJc8xHLsTQ2TMiICnAc8MhESMwwBcIc 5Vq3tKAVs/yuoxyl63qMNmk3l4pHdRvay+0uRHfcqjaX0Ht60MgTTVaTkobVs4ZXJgod NNcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arista.com header.s=google header.b=TJVSWo37; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=arista.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u15-20020a170903124f00b00153b2d1653asi17947886plh.322.2022.04.25.15.27.46; Mon, 25 Apr 2022 15:28:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@arista.com header.s=google header.b=TJVSWo37; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=arista.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236920AbiDYR7N (ORCPT + 99 others); Mon, 25 Apr 2022 13:59:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241649AbiDYR7J (ORCPT ); Mon, 25 Apr 2022 13:59:09 -0400 Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27BC22458D for ; Mon, 25 Apr 2022 10:56:04 -0700 (PDT) Received: by mail-qt1-x82a.google.com with SMTP id hf18so10891037qtb.0 for ; Mon, 25 Apr 2022 10:56:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arista.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9AprGNfd3CvvgyyCMDEqKnXuLtvajkiKghGw4Z+xUJM=; b=TJVSWo37TXdK0yt14mHFsa09gbEqMQHz88JNJ7n7i5YlcJKeTrqNdGxannnCndWs0K 68A3k7lpABLns1GF3xtrxqa7qtAgY1nccTBcuAoVvViHAJl6+u2sW2wzLx7gchILQMTn bZByKd4Qde3fqXiS0iBlyssObPzchBZpQZCAkmBndDbcsxhzBb8VvQ/AO2mq80k7fzA9 ST9PamUQbKRIrmiX+UmyB3eJ9Xi52QRRrztyn5JIH1GbqnhTNwK73cbyjy21DhAOGoa9 qrakKMiQLRsIl0rloqms3TH+pFeI6jksnt9esZj/whFY81WJHcN6SaboWXx2oRt8Shqg FN4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9AprGNfd3CvvgyyCMDEqKnXuLtvajkiKghGw4Z+xUJM=; b=WGMb998WxxDrMyPH0Yq/RsGZQqul3mDw0zODbzC+/6BR9S6onOIV3Qc+EMe184LI3+ Bz2Rd0Uopdffa4ya84okhQqk1EAsMWlArbLf/eXV/LtWv9EfkTcYqMFrlN6jA1nHAC3c /jY16Ik8Cjf6j69o8aHNOLG4fe15OzP1y/GIyOGz+Bg9CfApApV69vVqMfkqw1yVaa0u k5DHjWI/JUG7z1EEEYf/EyNcFOpBcxWM12i9yocFwVDJU5KeNTJEEjYrerR5alSgFeUh vojr+QO82wMPAWNZqqTE/XPJY53y5/lncS7tkqEBnbiKTbSdMpIYSbqBb9qcNL1/GDw4 zq3Q== X-Gm-Message-State: AOAM530QgljN870NNj6FD9CHFpPL9/UEeO3/Jd6j6wB6tca8J7lD74o4 06ZsDW0ElplgBsfYS5KZoadTl7Rm5gi2vpFvVhUPmA== X-Received: by 2002:a05:622a:647:b0:2f3:6348:3105 with SMTP id a7-20020a05622a064700b002f363483105mr7237082qtb.429.1650909363326; Mon, 25 Apr 2022 10:56:03 -0700 (PDT) MIME-Version: 1.0 References: <20220421005026.686A45EC01F2@us226.sjc.aristanetworks.com> In-Reply-To: From: Francesco Ruggeri Date: Mon, 25 Apr 2022 10:55:52 -0700 Message-ID: Subject: Re: [PATCH v2 net] tcp: md5: incorrect tcp_header_len for incoming connections To: Eric Dumazet Cc: Paolo Abeni , Jakub Kicinski , David Ahern , Hideaki YOSHIFUJI , David Miller , LKML , netdev Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 24, 2022 at 12:37 PM Eric Dumazet wrote: > > Wait a minute. > > Are you sure treq->af_specific is initialized at this point ? > > I should have tested this one liner patch really :/ > > I think that for syncookies, treq->af_specific is not initialized, > because we do not go through > tcp_conn_request() helper, but instead use cookie_tcp_reqsk_alloc() > > Before your patch treq->af_specific was only used during SYNACK > generation, which does not happen in syncookie more while receiving > the third packet. > > I will test something like this patch. We could move the init after > cookie_tcp_reqsk_alloc() has been called, but I prefer using the same > construct than tcp_conn_request() > Thanks for fixing this Eric. I had not considered syncookies. Francesco