Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1963894iog; Thu, 16 Jun 2022 18:42:25 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sGFjBvQKRyZa9BDXeScD5ORvWG/3r1PlU4HlQkMX+a8f8HZ/7elJHedCQY0+bYUxMBzQzn X-Received: by 2002:a17:90b:1e4e:b0:1e3:47e4:92b6 with SMTP id pi14-20020a17090b1e4e00b001e347e492b6mr18914250pjb.47.1655430145363; Thu, 16 Jun 2022 18:42:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655430145; cv=none; d=google.com; s=arc-20160816; b=X7Lnsr4JPWeM8Ji+RGZGyytoaDusPtq7oZI1FnVTddxVJ3mcsnT18BlJOzow93Ea9s CS2692ZNqEzN2CSXNlv5JzKL/iL87Up6chnu9Qo++QU1hu2OEs6l4QY/KYIHLlUbzUhy cWuAqCtenZ5K3YyIHJfYbvmRZX3kKQ2VB5aGd89+EG1YSsHDuPzhBhDuAS1QpT2srEaO MPe8YSTT99GXvPfFo8Ob9mA5DFerBcTpRSgsGIeNhM0c36eWMKVSnGIpovlJsdfTZ5yJ 1Wlp53m0b+tQLPBRY5mHdd0FcYQ/cJE0m/BlkpFqSL/shtwY23T8EVmIrhKWsWLAUmFN /zTQ== 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=uNbNtYNUOkpq4DQQYD/bNQd8Np096f4o4ecAA/LLibg=; b=rBwloHKhxRYhoUsVYOJmlX1YcbkjlVO0hgtJYChQ+JWCCuUELo3ZDFWk0C9mAbkdov S3dfHlQLU0K2yg0exG+4Bcos5R9//rTRIR58Mimp6lJba3J1NyCu/BpYCKBiVQ6aM287 /nbEgM/SJwvhRCeqM8GOFS8mLoLRAD4MWj27XkK7ysaXoN0YbAl+wZ6DrVlGtE6YeY+B IKEqKAIpOir8OcT/k3SdjxEcGNzTphdhtvovAlEDLtmU+Y6cVaSiD408siJIQHYdoRY2 XVl9Fd8cArPo1P8Jx/zoGXv1hjsxgtJ35pWW6FjG1AeKzUXAGMvuEwUhAee+lPnC4mRZ 7ntA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=VHF+oQVq; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cl12-20020a056a0032cc00b004fa3a8dffa6si4105990pfb.93.2022.06.16.18.42.10; Thu, 16 Jun 2022 18:42:25 -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=@google.com header.s=20210112 header.b=VHF+oQVq; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379522AbiFQBZp (ORCPT + 99 others); Thu, 16 Jun 2022 21:25:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379513AbiFQBZl (ORCPT ); Thu, 16 Jun 2022 21:25:41 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B05163537 for ; Thu, 16 Jun 2022 18:25:33 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id w17so3870692wrg.7 for ; Thu, 16 Jun 2022 18:25:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uNbNtYNUOkpq4DQQYD/bNQd8Np096f4o4ecAA/LLibg=; b=VHF+oQVqevD5c6rS1Dz6843WU5L6AgsnakYt/4mxKpLAGz9+OTYEMjgA2rRCnGloJy mihdf5Yfw9Co5rbDvexaeb+HN5aFOFbsUBWHXcDDyrVUbeMVsYLaKQaULsUvZHWI0dqp y7IIV2x+CnmHfTWdB9x1dwL5yVW/DRgiAEJbac30yOqgvj4zd/iKnkOBuRK9cUIEmA3U 2+/OrMYQjWOj3ac/T2mNqDrx7CgnrZiYsVC6kPnXqXpOstK3nskxjtTIWOHhXUs3onTS tOIb4dr8tg2qHY4OXi+hOv8xHuvsYNL6KM9Ya1zWOkZId7CeSBWDZqhws4h/XNitWjAE oByg== 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=uNbNtYNUOkpq4DQQYD/bNQd8Np096f4o4ecAA/LLibg=; b=iJT0w8Lc9Lmq/9jegwC1vnuF2Ur+f6S/1CSK17wpPb9+oO91s9KiMJYrePyxXwlPWf pf4k7u6GmNJ7KFA+UyJ7/C2v/qp+2GGCPYzF1YDP9cZVTqNPMOqwTAmu+g+P1yDtuR+N le+JXs124DzRcz8Xj4KAw76OzqsJRT2qb7+kkbwQqEHyhbadCnKQSMJX+PuPvDRrEncj uuo1wkR1B9gP+I+JwWtfHpMP22f/yepRlI2AGJPMcdmon+gUXBMfSHHlC4uotIFTlaBP USx5/1RBwmeKhrlBcgQJrI+vkCjbQhFObvDEtYcQ1xBd1Or3SiDoLCDf1k2lGrkeEReQ zAtw== X-Gm-Message-State: AJIora83DVaNrxRCMVl5q8L6Va//O7P9yCTSLMIeYThWhS0PyF0cc/KX /S3pXpuxlnTu/H72223AEhJa/Ihx83IKFJmH23O8Yg== X-Received: by 2002:a05:6000:1a8d:b0:219:e3f2:c092 with SMTP id f13-20020a0560001a8d00b00219e3f2c092mr7105521wry.375.1655429131650; Thu, 16 Jun 2022 18:25:31 -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: Ian Rogers Date: Thu, 16 Jun 2022 18:25:18 -0700 Message-ID: Subject: Re: [PATCH v2] libbpf: Fix is_pow_of_2 To: Andrii Nakryiko 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=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 4:55 PM Andrii Nakryiko wrote: > > 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 Agreed on not following Linus' tree for libbpf. Not sure about having such an obvious bug in Linus' tree. Thanks, Ian > > Thanks, > > Ian > > > > > > Thanks, > > > > Ian > > > > > > > > > -- > > > > > Deet-doot-dot, I am a bot. > > > > > https://korg.docs.kernel.org/patchwork/pwbot.html > > > > > > > > > >