Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp734271pxu; Fri, 23 Oct 2020 11:56:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfgxVtPSiHq4ZySwCKpLo7UjEJ6phih06Ry8755DmahOzuAVsces4DSFmk5mTaqe26DQ3s X-Received: by 2002:a17:906:11d5:: with SMTP id o21mr3472314eja.401.1603479406180; Fri, 23 Oct 2020 11:56:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603479406; cv=none; d=google.com; s=arc-20160816; b=QoL+HYi5zu5Mt0zAt9pPkGVSE4gqVyX95DotUucgypD8zSNNzhT/bPnHRFjpq0AUxW ePXrVPAzxV4tAsZbH5Gp2JLVwG7Jg+z5NZo2noYsQCe2Lnir2PIbFBSYEBJuoQF2IP6v MnZkUFI6pfbAXEQQfpX5uq76JXMi0XP7XBu6tFIuROgbXzRSAe3Z9jnGjCY9v+u+xEYC d8hI1wbh0RTpUsx88+2w4R6WGrewoejbTiCxjSS46j917QIMEBDLTh88Fgc5xbug/xjU OH5hX/9KVKfWcmbmIsjEL+nFY7sWWRzt/Hxux4jghd1mhPVJyNbOy/LVJFJQhUgGpclf aYUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=K/qAKVNNr7wl3mXeW+C/WxE4lTp0V1uMbin6dmRbxag=; b=husRwPBspiIXpTkTk+2jpgQezV6/S8zFZSgYKdULGlUOEusd2RwVLmGbO2/bpyxjBE 55t7jhVOq2k4Nr2ye7sRRTpF4r9HCMy3fbvgxgmprrCBfBjPfQoSnsVnIe10Ukk0Nu+H 7GJFye/oY0jNpINx4KjJZfbVkedGt0EM10tYCTHf+is8bWiY3N8J/nvm9wg8mt+xZatC PjjQT/AqY9zRlPosyd+6kSw7TBSaQL9SghjOUAQFCj6XUZb6abj+Op9fVjJxnyOapcpQ nYtrDnsmWcWlwzombaC9pathnqgFv/j9N7i5sjLVJ7+XLprIhBixMtThUkDhPsFsTBsi jUIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@memsql.com header.s=google header.b=XouObT07; 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 r10si1470323ejr.168.2020.10.23.11.56.23; Fri, 23 Oct 2020 11:56:46 -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=@memsql.com header.s=google header.b=XouObT07; 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 S1752937AbgJWQyo (ORCPT + 99 others); Fri, 23 Oct 2020 12:54:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S461382AbgJWQyk (ORCPT ); Fri, 23 Oct 2020 12:54:40 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11D29C0613CE for ; Fri, 23 Oct 2020 09:54:39 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id l20so937896wme.0 for ; Fri, 23 Oct 2020 09:54:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=memsql.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=K/qAKVNNr7wl3mXeW+C/WxE4lTp0V1uMbin6dmRbxag=; b=XouObT07eojqBuUiHvYdvMokjC72+Z+smBHV6j4LW5+m7y/km3e8ZUPzd7IDCXwXnh G8U2HJ/l+KsuHo2YciqnELix1fTIGXembfvZHz1B3klCGnR4oUWM9UBhKA1gcE7p2Lhg VaMrH7UYS8nDV5HwdKpjEx/tc0XdM2CKKVWiM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=K/qAKVNNr7wl3mXeW+C/WxE4lTp0V1uMbin6dmRbxag=; b=LnnkdjxZ3L+0K6BvUpqbQF0zNmggZYWdWBbbSDEba9yF4FcB7x61pURS7iin8bV2om +/CGceahDOeBredRothbl5OpvPf22oGL3tKbmlwgqnA++q4crMbGGs7sp3b+cX4B13jY S4+NfgBkaqmXSDm8A9TF33RSOS0tiMSGpfM74rndA71Lx2NC03kV9m0TU8ahnbBHtGxb 5l6VNVq7NX5ldYm2DESDi7ZCUraAeepol6Bg/iSHi+2cAljAtEmAwcjF/054Lljy+6iI 4AkuvtBsHnodZQ8vfig1TbhaHcKS5LTPSyteYmYVVHridD60cjd15RO5VUWJ5mR1ECL2 Ne6Q== X-Gm-Message-State: AOAM531Wjb1zvs2ZCQEiUF4Xwl4jekrolcvW+FeOFzhEcFahpcKgIyUd 0v+814BL6V+XmcoQR38CAOO15Q== X-Received: by 2002:a7b:c349:: with SMTP id l9mr3235560wmj.148.1603472077767; Fri, 23 Oct 2020 09:54:37 -0700 (PDT) Received: from rdias-suse-pc.lan (bl13-26-148.dsl.telepac.pt. [85.246.26.148]) by smtp.gmail.com with ESMTPSA id c18sm4063228wmk.36.2020.10.23.09.54.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Oct 2020 09:54:37 -0700 (PDT) Date: Fri, 23 Oct 2020 17:54:35 +0100 From: Ricardo Dias To: Eric Dumazet Cc: David Miller , Jakub Kicinski , Alexey Kuznetsov , Hideaki YOSHIFUJI , netdev , LKML Subject: Re: [PATCH] tcp: fix race condition when creating child sockets from syncookies Message-ID: <20201023165435.GA322147@rdias-suse-pc.lan> References: <20201023111352.GA289522@rdias-suse-pc.lan> <20201023155145.GA316015@rdias-suse-pc.lan> <20201023160628.GA316690@rdias-suse-pc.lan> <20201023164825.GA321826@rdias-suse-pc.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 23, 2020 at 06:51:05PM +0200, Eric Dumazet wrote: > On Fri, Oct 23, 2020 at 6:48 PM Ricardo Dias wrote: > > > > > In that case, I can change the patch to only iterate the ehash bucket > > only when the listening socket is using the loopback interface, correct? > > No, the fix should be generic. > > We could still have bad NIC, or bad configuration, spreading packets > on random cpus ;) Ah, got it!