Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp878128ybl; Thu, 23 Jan 2020 09:22:14 -0800 (PST) X-Google-Smtp-Source: APXvYqw+FDD7B1mIVGcuZrOL2ED00Hd+jrqg7yTbMRkrKZT8qExl74P/xsXneGwCp0dIkNClzIzE X-Received: by 2002:a9d:dc1:: with SMTP id 59mr12138610ots.250.1579800134513; Thu, 23 Jan 2020 09:22:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579800134; cv=none; d=google.com; s=arc-20160816; b=k5mHmtnvz1YTnQAtPGppaT7cuSuRbJZ3zjKL4CbqM7FTtiq4A0ftqs/v1sz+YxadsE MbH65pK6HkNWliJzd9LxxBqrM0QctAcB2koLJO9I7HSDl1gfHkffDDjatVM/vFTA4Ga1 IHm8k2otaCMWaMjB7eKczX8sxKi+WaoEKrfkZaMVSJL7nsyFvCCmw/z6uUb21bamCikf L4WGnFldP5jRCALyzCMAm9pIOjS5PRwZa+24QutYTlgoc+aYUtFa1dM+/txp7Xf9W2G+ 1CBSpJ60CrsKxo+Nox0HYZoPTjrbCpA8Cx+gzOT9fXx85UgXVHnn4ebO0bIuahMhxWXA CtXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=XnQrSbFLZoFzkSjXwKmxPlg8vAGR4Rz7FX09nL1MowQ=; b=SSbVPYGjjJe97k/Tqv/iA1h2Z20iF4sPAFXO+evOoynIsU189RlNucHHyMOgNzOS71 WBcVtcs10Qur5gsJuoaj+7QVxsEyzveeM6ZjtZjCN0kudqrs+tJnssPzH5eDbvG0htmc R+kFsSzQDz9Ol+QdA/5yxT0pZ5upLj8PSdJXHI1wl7yiEW852GXBufpRRb2vOhfycdm+ 7WEAGwvk0gasfdVMUrUKfa5DDVtXHAbPmVmxXqVlMFc+exJG23xVW7oClynTcpg2h59p W4pFes6IeZUOfZhHzUcJGC+YFNP5AFXIPVEUdHMBdmwD5otqhYBKS0BFOFflDDmF0/YD 8a7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cloudflare.com header.s=google header.b=hc21+PSt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cloudflare.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i78si1138983oib.1.2020.01.23.09.22.02; Thu, 23 Jan 2020 09:22:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@cloudflare.com header.s=google header.b=hc21+PSt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cloudflare.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729352AbgAWRSY (ORCPT + 99 others); Thu, 23 Jan 2020 12:18:24 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:35948 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729188AbgAWRSY (ORCPT ); Thu, 23 Jan 2020 12:18:24 -0500 Received: by mail-oi1-f196.google.com with SMTP id c16so3634365oic.3 for ; Thu, 23 Jan 2020 09:18:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XnQrSbFLZoFzkSjXwKmxPlg8vAGR4Rz7FX09nL1MowQ=; b=hc21+PStvyHAkZivbzfWmA/5ihjJevnx3O/tdQzDwujLUH2jxifbQNtwgbRO76pWhB Il8sLvHmktBy4VkGrH/ej+5PuXOlCziFAsmd69uOrq3Byko2073ruAuvZCWqvGzTQMlI r4BULczhgrkpj2ln6AC+idZbtEaXPsqmIDleo= 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; bh=XnQrSbFLZoFzkSjXwKmxPlg8vAGR4Rz7FX09nL1MowQ=; b=MNkVvDFVqviBs+m2xAkFhkqrOKufr8uJkelVqM0RN7fm9933e8EZOFqocSvZpSFbyg lyPB07u69VIb+2asv2GDNOOrpQR46M5NVNpq6CBIbhlV1y4++UE4gJvjisQICViuXcu6 1WkoFzS7eQkgA4g0jqLb02QJRdR2PvER32r+3dObMsUAFnP/n57iPftp4q/Q2oc6ht0U 5SySpvaW4T48qyshUUB1JIrhJ/NMt6Ol6IYGo/184azmmB4SYP+5gluC4usFIDU1j0zR VCOxo1J4pZCYUO0yzgLK9UFT6cO6l3oZyjHInS9gis4yiaUw+RAJzX0WP9P/ahv6ZyJ2 VZNA== X-Gm-Message-State: APjAAAU/jpXs6uxsxYEouF6TtavIbp5ycgNa+HdpMKLao4kiqiSDxVYW /89ROdlpd55Iw6+Oh0TgYGV+E9SlMaOfgdVawew1iA== X-Received: by 2002:aca:b60a:: with SMTP id g10mr10878162oif.102.1579799903847; Thu, 23 Jan 2020 09:18:23 -0800 (PST) MIME-Version: 1.0 References: <20200123165934.9584-1-lmb@cloudflare.com> <20200123165934.9584-3-lmb@cloudflare.com> <20200123171612.stdwtlpqibkydz2s@kafai-mbp.dhcp.thefacebook.com> In-Reply-To: <20200123171612.stdwtlpqibkydz2s@kafai-mbp.dhcp.thefacebook.com> From: Lorenz Bauer Date: Thu, 23 Jan 2020 17:18:12 +0000 Message-ID: Subject: Re: [PATCH bpf 2/4] selftests: bpf: ignore RST packets for reuseport tests To: Martin Lau Cc: Shuah Khan , Alexei Starovoitov , Daniel Borkmann , Song Liu , Yonghong Song , Andrii Nakryiko , "linux-kselftest@vger.kernel.org" , "netdev@vger.kernel.org" , "bpf@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 23 Jan 2020 at 17:16, Martin Lau wrote: > > On Thu, Jan 23, 2020 at 04:59:31PM +0000, Lorenz Bauer wrote: > > The reuseport tests currently suffer from a race condition: RST > > packets count towards DROP_ERR_SKB_DATA, since they don't contain > > a valid struct cmd. Tests will spuriously fail depending on whether > > check_results is called before or after the RST is processed. > > > > Exit the BPF program early if FIN is set. > Make sense. > Is it a RST or FIN? The earlier commit message said RST. FIN, sorry. I'll update in a follow up. -- Lorenz Bauer | Systems Engineer 6th Floor, County Hall/The Riverside Building, SE1 7PB, UK www.cloudflare.com