From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 269EAC388F9 for ; Sat, 31 Oct 2020 11:45:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EBA732074F for ; Sat, 31 Oct 2020 11:45:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604144710; bh=iJFte8065XpYQaEbaGy6+rU4wpSKFGFUyTZNqfqVOjA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=kHK0p9vY+lpUi8kPHBpz0iACpClCTRyU/r3uFQryt0c97sXqP89gcbvJisJwUZlbe 7d7xVhhs/LPPVNSrpBLn/H9K3r1FIAxbXBwJY2Nx7ks/v+PGkshpITo5F3Lg9J/VJ/ /zYTsruYhBxtI+HHPY/zXDtF4jKCAEAN4Sgji6Q0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727928AbgJaLpI (ORCPT ); Sat, 31 Oct 2020 07:45:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:42876 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727993AbgJaLnD (ORCPT ); Sat, 31 Oct 2020 07:43:03 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 60E7420731; Sat, 31 Oct 2020 11:43:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604144582; bh=iJFte8065XpYQaEbaGy6+rU4wpSKFGFUyTZNqfqVOjA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ci9byUZ6KeRt3Pdyo26rgEh96x/ne0uDnTuA/3q+VpyvWciAdKeRltMKwD9mun1Bm VaPvejKHFqjdaEhHMxfFJGajMezfoWfQNvangUsw9hs9SUHHbma4Q+/DhH85p5sNRN EXtamN/TI7grIFlUeYOboCM7LXd+h7Kv1NJnUFqs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Song Liu , Alexei Starovoitov Subject: [PATCH 5.8 56/70] bpf: Fix comment for helper bpf_current_task_under_cgroup() Date: Sat, 31 Oct 2020 12:36:28 +0100 Message-Id: <20201031113502.182234220@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201031113459.481803250@linuxfoundation.org> References: <20201031113459.481803250@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Song Liu commit 1aef5b4391f0c75c0a1523706a7b0311846ee12f upstream. This should be "current" not "skb". Fixes: c6b5fb8690fa ("bpf: add documentation for eBPF helpers (42-50)") Signed-off-by: Song Liu Signed-off-by: Alexei Starovoitov Cc: Link: https://lore.kernel.org/bpf/20200910203314.70018-1-songliubraving@fb.com Signed-off-by: Greg Kroah-Hartman --- include/uapi/linux/bpf.h | 4 ++-- tools/include/uapi/linux/bpf.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h @@ -1416,8 +1416,8 @@ union bpf_attr { * Return * The return value depends on the result of the test, and can be: * - * * 0, if the *skb* task belongs to the cgroup2. - * * 1, if the *skb* task does not belong to the cgroup2. + * * 0, if current task belongs to the cgroup2. + * * 1, if current task does not belong to the cgroup2. * * A negative error code, if an error occurred. * * int bpf_skb_change_tail(struct sk_buff *skb, u32 len, u64 flags) --- a/tools/include/uapi/linux/bpf.h +++ b/tools/include/uapi/linux/bpf.h @@ -1416,8 +1416,8 @@ union bpf_attr { * Return * The return value depends on the result of the test, and can be: * - * * 0, if the *skb* task belongs to the cgroup2. - * * 1, if the *skb* task does not belong to the cgroup2. + * * 0, if current task belongs to the cgroup2. + * * 1, if current task does not belong to the cgroup2. * * A negative error code, if an error occurred. * * int bpf_skb_change_tail(struct sk_buff *skb, u32 len, u64 flags)