Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp820560pxb; Tue, 3 Nov 2020 13:29:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJw3EgQOE/vj7rgA2wDhC9Qd7s0fGcSyb9f7jK3wKtqSI8Gdg0dnZj8ju1hnFCApQtA6jK3A X-Received: by 2002:a17:906:fa1b:: with SMTP id lo27mr21685511ejb.216.1604438947349; Tue, 03 Nov 2020 13:29:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604438947; cv=none; d=google.com; s=arc-20160816; b=eVMKhBnOLc/4t3uq4NHcBvekspzOzGXFWZ3Quc9+45XMw8NoEOfLUgPqw2NFypDlFC PgSJWANADodvFN7ANFN1N5hQ4Ji1Sez/63gMpYkTSfjlZS4GNAC6OV80eajysoJVPM0A 2xZs1+uKvKafa2hVFz1wZicFZkIgdIwbs3WSKTtkpDWzWaJtfsPr4xKtJQi2La1Jg2++ N7PXZWvfvSOzR3mraPysxxXKQzTevXD19IF7zjnflmG4qr/ykFA/5KJbJi7Ev5zUSXeO 7vfnRfkhOPXXuiBYdo59q6FFEkuWIBras8JCukMdJYXAhUwGRSZb6GRVVAhTj4zIC5It /Dcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=BY7DYlhkgE6D1prRNxiYEMq2kNQ+PKZ82HubF3NRjh4=; b=Py1r08wIKjTEfutNCA8ValzLjp2s3JuDkksgjhbaiEmC5MqoRwohA3PPmC7+syu7SI 2jfB2zr3ngYyY9ifz6KUMVBQyv2q+RHtwuHyWcPuG18oifyJ3ngeAeBai/M1FBQtqPGE 7hI9fdD0sE6gp5lwkNgCQB8Wb1RoHqev6hAjgign+4qY+5ssR7B5MiFE405veGsWltPH nWzzSwA5nmAEB4DUPeLJzv42kE1ug/+1Pd9o2YNafMOM3rLfQ3MtP8KXUcI3lGKMLii2 aXje5usaQ9W+ckf4L4xgdoaTMVQjFTFIXubvX6IoTqMg9IoJiSZBPTlqDRTd/FmMcNyv G5vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wSOpKUx+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q5si14164857edv.293.2020.11.03.13.28.44; Tue, 03 Nov 2020 13:29:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wSOpKUx+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387555AbgKCV0Y (ORCPT + 99 others); Tue, 3 Nov 2020 16:26:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:38568 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387523AbgKCVBs (ORCPT ); Tue, 3 Nov 2020 16:01:48 -0500 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 4579722450; Tue, 3 Nov 2020 21:01:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604437307; bh=ikwxXdhiKalrobHGtUGmMfj0Ya92DCw/AMCPxNgq7IQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wSOpKUx+aQA9tFI8cgEZyfZs/FPGNb6FGzL8dABj2cVynhDI4I4u3atCpaa6c+Dqd /aGNz0/mtpm8t+EAvfkhn2ViE7DSha+HggKwdNzieLZlsR+aBjGXO6vZo1TJqNVf/x GNDR1G0VgTkuxAcFkoDaqG5cAkKvmYch2+0QN5Dw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Song Liu , Alexei Starovoitov Subject: [PATCH 4.19 021/191] bpf: Fix comment for helper bpf_current_task_under_cgroup() Date: Tue, 3 Nov 2020 21:35:13 +0100 Message-Id: <20201103203235.419758633@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201103203232.656475008@linuxfoundation.org> References: <20201103203232.656475008@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 @@ -1193,8 +1193,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 @@ -1191,8 +1191,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)