Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1902031iog; Thu, 16 Jun 2022 16:58:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u+xCGt6xS9AEYVJ36TyNEF3AllZABzIJmTNh+yBkGOEl7GeFzXsmZHJxxYQBO7rWHbZFXS X-Received: by 2002:a17:906:106:b0:715:7cdf:400f with SMTP id 6-20020a170906010600b007157cdf400fmr6786807eje.1.1655423918323; Thu, 16 Jun 2022 16:58:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655423918; cv=none; d=google.com; s=arc-20160816; b=fFRN5ftifmeStO69Tr1Gc+QkZvVSY8i7YKO71HUDqGqbDo27fR6f8HsHGpXnCSGJN2 /pUGhRRbJk/gKLV7bMCBj1uIXc43p6FE6KPttBIBIiA9/oh0uKcsnk0uS7JNcxEBqYFx K1xG3ZZr3FhMqajJvJS7AJdx2AkVRRjpfoB4eMqg/uChHM+WvvocEraZkodJLe7BfSOs 8UUPNHrh0L0MAs0GHiqzfu0qaPTYnSAgNe05hwf0PGTKNOeE+F+I45dIKwJlwDHCFqBX O9eDqlc3fjVy7ph3/avStXC7ihsSApSkt6BIg7Z3L+E7WVmEErV5LyPwq2y9lgGZva/D zyZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=IICDe7B16NcVod8ngha127cVizMJy8Rx+JH41yIJ0dg=; b=pcYZuxKuit8LMVvPMEW1ABygNC877f3S0LbNOBtlKWVNf64HeQTWqe2swDMfU/eYv5 r4mLacuCF4fO1L14Mld6wyY394KFfvfV1iQJfBeRikvGfN8dC7Wp0r5LmEcxW7O7A/oB mP1Qr/0CV4FkET7Z3td+E4xzCvqRsp/zoubhy4DWtocY6J6ik5FOarYyqJp44dQYkF2b MhdqZtgma7LjDxQFmAknmNPBizRXm7DvNQ+k+OaO6T/QLfvZu9ZDBZjrRMKrUYKBqZVL U92fXrh3VAOELnMZVaxiUuiHmi+8GGmy7wnbEmnKbf4hgcZIgRHWO0gbGKReWgMDfQoq nWNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jMzNP0uK; 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 dm6-20020a05640222c600b0042b5f20c62asi3619194edb.70.2022.06.16.16.58.13; Thu, 16 Jun 2022 16:58:38 -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=20210112 header.b=jMzNP0uK; 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 S1379000AbiFPXzS (ORCPT + 99 others); Thu, 16 Jun 2022 19:55:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378634AbiFPXzQ (ORCPT ); Thu, 16 Jun 2022 19:55:16 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23A6862118; Thu, 16 Jun 2022 16:55:15 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id gl15so5649814ejb.4; Thu, 16 Jun 2022 16:55:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IICDe7B16NcVod8ngha127cVizMJy8Rx+JH41yIJ0dg=; b=jMzNP0uK+DBt/ArFu9MgcHSRXHdyN9/hU+44KDhhVHUfEhTPAsRycxHoxYxBD8m43w 5fM2nMzmV3xT3h24M8TZnDdU3CGoQCuV04nI7epLVXCKIDSNuK7+odnH33PfMJR2ArgU z10dYDDxuEKrYIeR8tsZ4blcjs5N3rn/Cpfsi1kAEaOeKanLZB4lgGayJMXqo96ECtMy VB9t2iQrLsiSWCYEuln8AEvPP3t9Y6qGGAzxB1BfM5oycfUQTtZafjynG/FAZcrjvV6G FtMLlaR2r5t5dzxDHClSy7RyjF34cHfyuJcvKjBMQEvgjw6crDxQuA/J2pT4phxcN6RG J0nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IICDe7B16NcVod8ngha127cVizMJy8Rx+JH41yIJ0dg=; b=mizfLvxBybqj04HBM0POiTRk3slywtwYEiRa+52pCeZ1vRFYiVeNIBM7ob5pxnhJrV jvlSH6ZUzGipfDJClq05t/jxxb799CqvcE9Pu68eQRz9u/01MJSbOv+ExJAxRrSOlxeA VSkdiZu83f3EHnywLKDWMKkoilyqsessfvtOQsjAqGuYh4hq/3xYAqxtCg+08tOmYee+ aagrnNbtx4ului1dI7Z03F6gNiIUKp6eHqkUwuG4inIjeVQtco4qXqc4UwHd8BB04ebi k0JIBVRh98/JyyT/aUgQKgws0Yy030r7wuclL6bhHEpaIMZ0SCl08PE0hJoQILBz60bu vjIQ== X-Gm-Message-State: AJIora+skGqbNrfRJGwxbJ4j6ew3AglcMGvhJmgJuqXp7YUT39xMY06D R64oq/N62US+q6j5juNk55d5tV4/Oxc3PB8DlEB8f8Y4tAqA+A== X-Received: by 2002:a17:906:1f52:b0:6f4:ebc2:da82 with SMTP id d18-20020a1709061f5200b006f4ebc2da82mr6944806ejk.176.1655423713575; Thu, 16 Jun 2022 16:55:13 -0700 (PDT) MIME-Version: 1.0 References: <20220603055156.2830463-1-irogers@google.com> <165428101333.23591.13242354654538988127.git-patchwork-notify@kernel.org> In-Reply-To: From: Andrii Nakryiko Date: Thu, 16 Jun 2022 16:55:01 -0700 Message-ID: Subject: Re: [PATCH v2] libbpf: Fix is_pow_of_2 To: Ian Rogers Cc: Andrii Nakryiko , Alexei Starovoitov , bpf , Daniel Borkmann , Martin Lau , Song Liu , Networking , Yonghong Song , john fastabend , KP Singh , Yuze Chi , open list Content-Type: text/plain; charset="UTF-8" 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_NONE,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 Thu, Jun 16, 2022 at 2:07 PM Ian Rogers wrote: > > On Thu, Jun 16, 2022 at 2:00 PM Andrii Nakryiko > wrote: > > > > On Tue, Jun 14, 2022 at 1:41 PM Ian Rogers wrote: > > > > > > On Fri, Jun 3, 2022 at 11:30 AM wrote: > > > > > > > > Hello: > > > > > > > > This patch was applied to bpf/bpf-next.git (master) > > > > by Andrii Nakryiko : > > > > > > > > On Thu, 2 Jun 2022 22:51:56 -0700 you wrote: > > > > > From: Yuze Chi > > > > > > > > > > Move the correct definition from linker.c into libbpf_internal.h. > > > > > > > > > > Reported-by: Yuze Chi > > > > > Signed-off-by: Yuze Chi > > > > > Signed-off-by: Ian Rogers > > > > > > > > > > [...] > > > > > > > > Here is the summary with links: > > > > - [v2] libbpf: Fix is_pow_of_2 > > > > https://git.kernel.org/bpf/bpf-next/c/f913ad6559e3 > > > > > > > > You are awesome, thank you! > > > > > > Will this patch get added to 5.19? > > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/lib/bpf/libbpf.c#n4948 > > > > > > > I've applied it to bpf-next, so as it stands right now - no. Do you > > need this for perf? > > Nope. We carry it as a patch against 5.19 in Google and was surprised > to see I didn't need to drop the patch. Our internal code had > encountered the bug, hence needing the fix. I'd expect others could > encounter it, but I'm unaware of an issue with it and perf. > So the fix is in Github mirror ([0]) and it is expected that everyone is using libbpf based on Github repo, so not sure why you'd care about this fix in bpf tree. I somehow assumed that you need it due to perf, but was a bit surprised that perf is affected because I don't think it's using BPF ringbuf. So I guess the question I have is why you don't use libbpf from [0] and what can be done to switch to the official libbpf repo? [0] https://github.com/libbpf/libbpf > Thanks, > Ian > > > > Thanks, > > > Ian > > > > > > > -- > > > > Deet-doot-dot, I am a bot. > > > > https://korg.docs.kernel.org/patchwork/pwbot.html > > > > > > > >