Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5665651rdb; Wed, 13 Dec 2023 16:04:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IG7PjvA+MhFWfv6zEUMMNNHdkapUbGi3e8V0KhVKlTdPoKbD4a1OBC1ef+L2+NGbZTghI4F X-Received: by 2002:a17:902:a3c8:b0:1d3:5610:d290 with SMTP id q8-20020a170902a3c800b001d35610d290mr980043plb.117.1702512280435; Wed, 13 Dec 2023 16:04:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702512280; cv=none; d=google.com; s=arc-20160816; b=OpHfSUCGRcA+359ZQiiy3+mxJQYy+Q0HPmbYSLq3WZepLGaOBFh4k6Ya0mcfShWAr4 Mw/abXpzoWcaamn//T2h7zIWVZBeh4LqRxns7fnTmwzN3hGXxSZfOIvu4bz7GXr93anX 72J6GuyWvrpWfZKsA1fEJ3A4O6Fm+RvooWSzgcmUKZ9EI17b8+K+vKpwsjn1jygKCBxe G3CC8C7SWAsEuvi4dMTQ26ev3Pash/IKWOBb89cF6BLnujB2sQf/aM8C1zJtIqbOEf/W SlLjIxKibyAY0izG5hVtDwBkVkWoboBTpa7FNSuNkRNO3kLVO4oxGuulnby0F4Y9W6ci U+tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:mime-version:date :dkim-signature:message-id; bh=FcjJcudoVFhZoBnbTd2oy3gYlnzRnT2DdGzqM7xSf0Q=; fh=A1PV15iZ9RpvVkJA6Y+RClIPb1Jp9ytUXWZHIyznEO4=; b=UjVpQ0Zfsl6SrfUngZCjjBUbBDvmrDS4909dtPe3G4eM8JxRU2nF+P/SQrrQzZdawd lDjE/R2bHKk8I9zyFdLV4ZttnybOw6NlDmAXN0eMPrLkMAeGTOV69qYBqFzSVs2G2zAq lwp2QpXxQCXGQaBTCHq1uJGS9ZpMuXOM8B7PTU4YuTFdOvR+mQ014eJVToVJAZ83+cyG IAvK/evS5tyiqBUJp/q4oT8OvR/WpmnnrA8z0uWYw+ZZ5UJwF3n6EVyfhrQhKidOG0Tp OMhp8peBcYeY8OQIR0lRjmN7tRE4KuNC+sdbioJlGTnZzBG1k2Gq3ilCX0ArHCnqLKgQ EZYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="E/udpmFe"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id a18-20020a170902ecd200b001cffbe81706si10672066plh.354.2023.12.13.16.04.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 16:04:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="E/udpmFe"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 74B34802C7E6; Wed, 13 Dec 2023 16:04:37 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230122AbjLNAE0 (ORCPT + 99 others); Wed, 13 Dec 2023 19:04:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229706AbjLNAEZ (ORCPT ); Wed, 13 Dec 2023 19:04:25 -0500 X-Greylist: delayed 338 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 13 Dec 2023 16:04:32 PST Received: from out-176.mta1.migadu.com (out-176.mta1.migadu.com [95.215.58.176]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A44BA6 for ; Wed, 13 Dec 2023 16:04:31 -0800 (PST) Message-ID: <85bb2e79-5b1a-41c1-972f-9f7f185fac88@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1702511929; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FcjJcudoVFhZoBnbTd2oy3gYlnzRnT2DdGzqM7xSf0Q=; b=E/udpmFeOtMDg7fVKQVuCXS4tlHdXPSD5Hx+UuArcG6HyHMlzSpbu9pnMZOsJTtOzMSlxV +TVVQRYb9SAeQ6QcGNU3STQsgRYcPFhNSrLp6sNFEqUfZLXXYHNg+awGYa/5kdyUaiO+QN IWm4nGSMwEIvoEFOWb6yRyaAdDAzahQ= Date: Wed, 13 Dec 2023 15:58:39 -0800 MIME-Version: 1.0 Subject: Re: [PATCH bpf-next v5 5/9] bpf: selftests: Add verifier tests for CO-RE bitfield writes Content-Language: en-US To: Daniel Xu Cc: mykolal@fb.com, song@kernel.org, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, jolsa@kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, devel@linux-ipsec.org, netdev@vger.kernel.org, ast@kernel.org, andrii@kernel.org, shuah@kernel.org, daniel@iogearbox.net, steffen.klassert@secunet.com, antony.antony@secunet.com, alexei.starovoitov@gmail.com, yonghong.song@linux.dev, eddyz87@gmail.com, eyal.birger@gmail.com, Kuniyuki Iwashima , Kuniyuki Iwashima References: <72698a1080fa565f541d5654705255984ea2a029.1702325874.git.dxu@dxuuu.xyz> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Martin KaFai Lau In-Reply-To: <72698a1080fa565f541d5654705255984ea2a029.1702325874.git.dxu@dxuuu.xyz> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 13 Dec 2023 16:04:37 -0800 (PST) On 12/11/23 12:20 PM, Daniel Xu wrote: > Add some tests that exercise BPF_CORE_WRITE_BITFIELD() macro. Since some > non-trivial bit fiddling is going on, make sure various edge cases (such > as adjacent bitfields and bitfields at the edge of structs) are > exercised. Hi DanielXu, I have pushed the libbpf changes (adding BPF_CORE_WRITE_BITFIELD) and verifier test in patch 3-5 which is useful by itself. e.g. Another patchset can start using it also: https://lore.kernel.org/bpf/8fccb066-6d17-4fa8-ba67-287042046ea4@linux.dev/ Thanks.