Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36085573rwd; Mon, 10 Jul 2023 17:53:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlESZeb3/0XwDrk5T7GOTOGMLQ4wPGZCXDSxSDGTDmhrIlNdRG6nWmbL46VbJZH8wWp7K2fl X-Received: by 2002:a17:902:8c8d:b0:1b9:e8e4:620e with SMTP id t13-20020a1709028c8d00b001b9e8e4620emr1609834plo.47.1689036839235; Mon, 10 Jul 2023 17:53:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689036839; cv=none; d=google.com; s=arc-20160816; b=ylW0y0C6kiKKC1sEfDiLxymx+qRXVG5JuONSYgLceDjLD8qMYfsg5jpRpOtj5yUElF d0kBnHGfSmT5RJTkh8nOnPAkrvvDqdK5g4WWJr1OtbW4ah5CNmAzyBXXkRSRctoVtx6A BI7uncUUf7+eStKVeIiOUE3Ap+mMvuoq49dIzJzDYz1YJGGPdIobXgAmAge2X5TPhqqu QZav8AC0NTKXW2vtFFTvoR4JGDMUzHdYphedTZwYtxJ6iQPuwT+528BxlkXVaIB7k4Fi B/jXi/+urmyquxSrxPHLpSypjX6a3e3nB2L8kSiwKNzrlefSmT4Nyl5CUeBRJNL6Vz50 6U5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=7KzZR+3uBAAfoyD64XhpmvukCNRgSrEvKBzVHoKvA4I=; fh=hGS47OXstqCtqg+ewbVa9OUlDSBThHo8hgAneLuYvAw=; b=kErExhXnTztg0/ie8RxjzX7i4gcTRrICrTxtKZr0FQ4j3YMsSci++0kMACyxMqT1Bu leAZbm0+vihvICiaVEWS78cvVoFJNa0Ef3W49+BX21LDOgZEjFuVjwV52ES1RZzyixxW 9heIHkp3Clz96PV2Izx+0gI0+Wupefy8cFPzRl9xm9MOLKcqQLi/989ZWc69yRSHJ3x7 j8BITXZFsWMSJOhBpYO7B7MUM6cHIahgiyfqOdNpDnBgDFAod+rrUjbkXANmZ0hIIUMt 9L7u5ZKEIXTdBaDJio7NCDqGREFNVYtMVW/Pgv43OzTBO6IO6h1kMv0J1tAwIO7M+htz PRqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=QePSPYmX; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ks5-20020a170903084500b001b864d88d85si593279plb.636.2023.07.10.17.53.46; Mon, 10 Jul 2023 17:53:59 -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=@gmail.com header.s=20221208 header.b=QePSPYmX; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230196AbjGKAhS (ORCPT + 99 others); Mon, 10 Jul 2023 20:37:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbjGKAhQ (ORCPT ); Mon, 10 Jul 2023 20:37:16 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BFDF1AC; Mon, 10 Jul 2023 17:37:15 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2b6a6f224a1so83371081fa.1; Mon, 10 Jul 2023 17:37:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689035833; x=1691627833; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=7KzZR+3uBAAfoyD64XhpmvukCNRgSrEvKBzVHoKvA4I=; b=QePSPYmXWBGIDNUBrGBf5dNhcMIgQXxeSLRtxqxBcsVcRzTIUh7r+RU+SJgk/tmHGt 8ZoLhHoWtRH2tgqNmUgQy9A9InN93Do8kb5ER210aYcrZTmWOPm1pr37GIYVQbHF3lYv 1teYgsn0Cnt2EHvRiPl/ffYISmv8S38q1G11FpdRLRiAGt/z7PZvttauDbVQ89la54m2 BeVbhy/8N+QbNSyslcBmQkJq8cVVmQErH/APZuyYtuoXn1RKtKaZeYSV1eMo4RMTNbwL LjsuLhXCSyfJkcf9PU9AO/cNxgPkvnsuRMwjmZm7oqPnj1d+OrAPeHX3fvKFc7FoMYUg P7qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689035833; x=1691627833; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7KzZR+3uBAAfoyD64XhpmvukCNRgSrEvKBzVHoKvA4I=; b=JMAwWM0idH6i0ZzOIhcnZ4rbp0xXR03rqDiApdpo4q9/MV11w3pGX2QaZdhxdys/du B9Z0Rf9kNe+uVWXIAjT53dXi4GxtIEI7I5PjgWlIj++072BFbDdwljxMzQk15Th40I0F EIoB8CkQqUWzLbBCF8Mk4a3HPM6l+kD5kp22v4PaiDnI+p8x9aRYPZwlMFCGUMvPgzwJ tI8Q9Sp85UD1pkD0u9PHtYVWPac/AulrzcLmEHy6Ft/WS1xQq1N7L5isJZ2aPZVS/ljf h2aym/zG6bt7sxMajnXmqq+zfeHE1vq8fPxPNWS4SETj/VnktrvUlacLtfbhsuUau0kd LReQ== X-Gm-Message-State: ABy/qLYEODthPWn62gmZxSXKOpa6DXzNT6mmxlsIl6GWBSFKF7MrvK6d GHjhAp01UkfGwZ1hqBxOr20mPry3+aPmh+s6iRY= X-Received: by 2002:a2e:964e:0:b0:2b6:fa3f:9233 with SMTP id z14-20020a2e964e000000b002b6fa3f9233mr7975582ljh.46.1689035833423; Mon, 10 Jul 2023 17:37:13 -0700 (PDT) MIME-Version: 1.0 References: <13720a4b7a18b2409357a82eebe57ef388ab9cf1.1688748455.git.dxu@dxuuu.xyz> In-Reply-To: <13720a4b7a18b2409357a82eebe57ef388ab9cf1.1688748455.git.dxu@dxuuu.xyz> From: Alexei Starovoitov Date: Mon, 10 Jul 2023 17:37:01 -0700 Message-ID: Subject: Re: [PATCH bpf-next v3 6/6] bpf: selftests: Add defrag selftests To: Daniel Xu Cc: Andrii Nakryiko , Shuah Khan , Daniel Borkmann , Alexei Starovoitov , Florian Westphal , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Mykola Lysenko , LKML , bpf , "open list:KERNEL SELFTEST FRAMEWORK" , netfilter-devel , David Ahern Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Fri, Jul 7, 2023 at 9:51=E2=80=AFAM Daniel Xu wrote: > > These selftests tests 2 major scenarios: the BPF based defragmentation > can successfully be done and that packet pointers are invalidated after > calls to the kfunc. The logic is similar for both ipv4 and ipv6. > > In the first scenario, we create a UDP client and UDP echo server. The > the server side is fairly straightforward: we attach the prog and simply > echo back the message. > > The on the client side, we send fragmented packets to and expect the > reassembled message back from the server. > > Signed-off-by: Daniel Xu The patches look good, but new tests are failing on arm64. test_bpf_ip_check_defrag_ok:FAIL:server recvfrom unexpected server recvfrom: actual -1 < expected 0 see BPF CI. Feels like a timing issue, but pls take a look.