Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5673554rdb; Wed, 13 Dec 2023 16:21:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IGnyq9/sMDCBJzGmjpfiSwoozkpCoWBBjwvDUZ5bFKM1N7ASiUxtYA0JNVPyUO4I0q8XTb0 X-Received: by 2002:a17:903:26c2:b0:1d0:6ffd:e2e0 with SMTP id jg2-20020a17090326c200b001d06ffde2e0mr8378730plb.122.1702513261257; Wed, 13 Dec 2023 16:21:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702513261; cv=none; d=google.com; s=arc-20160816; b=WmA/KfD9WubEM8H8HCFsLz52/yKe60jKD7sEoULAAuUb9kFEBqn5+6l1kOesmYw+zZ 7LACEaf1+emf+KyP8elihbcffmrT4VF9FsUR+JA8vP+OCA23xtEoU/bUlkd+8QRt7xaD FHsoil1zjzVBjE9Ii9ueqiTboBs6GhIKk8aeRrkJgmf4U3wFrBOafj/RMdmNI7kj7th4 2qktcdctSsb8v5uxN5WK3VpXctPLaGpUjiDHmH0Pw7oTcURNhzteZpzv4SNutj1UTR94 FRmJgH8SkHhOMYmuGPOx86i1MGDnmQn8Fat9MFomd6ttLoSD50224aegpNef/TUtw3B8 wcrw== 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:feedback-id :dkim-signature:dkim-signature; bh=A2PcotebGi6VLDzZX2wIz+tqypyvwDgsO7u1srRyogw=; fh=D3Pn372mMAiV7KiKLMF1fieb2fSjYxc6JRYQRY/ANbg=; b=B20EsE+ZjCo4cjofScJ2KP+pqHcJNicIQc7MA2eIAvMVs38cwMLWiOAPOBWXVVt/nw +73hLT/XrNlbNKeR6pUHxCYcKikF3tFhcKnTEQRQrHEZP8MjwNlijAuPsPK6V2EZJ9OJ ly45xHefWR43sG6a9ZWKoozMugNH1U+gNnZCjHZSJis7i7WOT/WKJ3HEkQMYFWnt6WIH vvrrPQE0jgCZdz9rRwuIgSnlGGv8ww/AOXkRSb+lychf/WY7eBFqsPv4HpNuAKObUNsK 7P1RQ9djtcb0ae5IsikM1WcvR6dqghYIccnxIbQl2vdhDyR5Cr/m7BZXYfEMEDPdan7y myPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dxuuu.xyz header.s=fm3 header.b="F4z/6gY1"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=1HSeLWX0; 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 Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id n10-20020a170902e54a00b001cff290413bsi10648803plf.390.2023.12.13.16.21.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 16:21:01 -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=@dxuuu.xyz header.s=fm3 header.b="F4z/6gY1"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=1HSeLWX0; 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 Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id ACB1280B81E8; Wed, 13 Dec 2023 16:20:59 -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 S234086AbjLNAUt (ORCPT + 99 others); Wed, 13 Dec 2023 19:20:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234108AbjLNAUs (ORCPT ); Wed, 13 Dec 2023 19:20:48 -0500 Received: from wnew2-smtp.messagingengine.com (wnew2-smtp.messagingengine.com [64.147.123.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DD37C9; Wed, 13 Dec 2023 16:20:54 -0800 (PST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.west.internal (Postfix) with ESMTP id 432AF2B002DA; Wed, 13 Dec 2023 19:20:51 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 13 Dec 2023 19:20:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dxuuu.xyz; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1702513250; x=1702520450; bh=A2PcotebGi 6VLDzZX2wIz+tqypyvwDgsO7u1srRyogw=; b=F4z/6gY1J9/DjQJZ7WzBgfQnIA 3MxGdMgA616hpbu0+SvnCeTWya4Zz4ABDxjPuGA348CeMWn3tizJeMP0g2YT4E8U IG9eSOIv64q1G2/5J+NPhJ2An8U6JkBmyY7jEQ24t8DMUgifv+0Bm8eshDY8DnK5 +FCq1KE0REluiG66OMb+r1BwQw33/mUIgH7Ub54SnOmFft2mbgROQPJedS/A6JDP jl6B0e2Cgxlek37mhPyOLaojcR/n78w4hH5ZyvcFqCROYDXnTsCP2w7n1jQjsHAf 88ACr0HEQ/uNFeBIEidk60dg5hY51b7+YBEFvtZZBKRmVYxGHy95fLym0hVA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1702513250; x=1702520450; bh=A2PcotebGi6VLDzZX2wIz+tqypyv wDgsO7u1srRyogw=; b=1HSeLWX04KCZqIHUNG/EtE3SvGqz5naqjcSTia60LrpB Cw1pLt2We4hWHq2zVCLiFQ15gEj78aA+A6xgo70QxmOxQzh693g5ww2c6cT3eNST FRgUpr/iSi2zVeuQSIheqknxIcKf8sXmJy3XBwqmLsFaH8AlW0Z6WrltTNgNGq1Q LLGya9K1mhYsVe7NcTsyB4NGJRL/ZbK+M4XfQoEzIjNNbyGeMD+174xmoV81vCt3 rO2u0OmK0qu6yWw0wiwQJYuwqCcjIQ0EGOH/PhUH63YtIK1q6+LmRVpxtD1oshVY ov2FyVnMomU7Z/HuSrKUpj6pVYqMRyff8BIhHFvYlA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudelkedgvdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvvefukfhfgggtuggjsehttdfstddt tddvnecuhfhrohhmpeffrghnihgvlhcuighuuceougiguhesugiguhhuuhdrgiihiieqne cuggftrfgrthhtvghrnhepgfelteeuteekgeeikeehtefhffelteekieeigfeuffehvdev ieetheekffegudevnecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegugihusegugihuuhhurdig hiii X-ME-Proxy: Feedback-ID: i6a694271:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 13 Dec 2023 19:20:48 -0500 (EST) Date: Wed, 13 Dec 2023 17:20:47 -0700 From: Daniel Xu To: Martin KaFai Lau 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 Subject: Re: [PATCH bpf-next v5 5/9] bpf: selftests: Add verifier tests for CO-RE bitfield writes Message-ID: References: <72698a1080fa565f541d5654705255984ea2a029.1702325874.git.dxu@dxuuu.xyz> <85bb2e79-5b1a-41c1-972f-9f7f185fac88@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <85bb2e79-5b1a-41c1-972f-9f7f185fac88@linux.dev> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,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 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:20:59 -0800 (PST) On Wed, Dec 13, 2023 at 03:58:39PM -0800, Martin KaFai Lau wrote: > 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. Sounds good. I'll rebase my patchset on top of bpf-next. Thanks, Daniel