Received: by 2002:ac2:48a3:0:0:0:0:0 with SMTP id u3csp570108lfg; Fri, 11 Mar 2022 13:37:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJy7nKFbPL/iIfOUAu/sRlRyHuRPUTVEL+naxdUvL2We6Tat4Kn3Hp/IwuYpDmcs++nzgzMq X-Received: by 2002:a63:8348:0:b0:380:bcc4:861f with SMTP id h69-20020a638348000000b00380bcc4861fmr10062735pge.151.1647034650710; Fri, 11 Mar 2022 13:37:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647034650; cv=none; d=google.com; s=arc-20160816; b=nebp861Z1MPjlKbI9fEsDdiA/shZP/oGKUKuVlS4KuPyJVRYhOIJ15dEIZJNuwwceZ tZQMmTzGYFZqPxrL/tIK8lnl4DSDVZOqx7BRUDJY0Dyx8SfTTW/jt3mAWwx/xqglUGx8 KfYDrRbImdQ8mbixr7Q8iGQNNFNRrRrKEk9HXE/RCHZ3NDYB57AfiZtvcx2rE1k4h8Rc hb++nqgebRCkduXOdomP9yAUYZIuyLj/ExQlZg19lhFhUmys606WmN3rLoQvsax0HoKf ci/Lpy1ljl+04dNXCYxxZdkORxHCxlMHXqkWQKieFCj8tyhDRxSyKGBflp3DUErVuWd9 Xw5Q== 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; bh=bfFy1fRIg2or8wayuoUDmkiMKNG8jANUhiazblpam7E=; b=h9ozO3JNuEWvMczFfn2cBPtsK57tKuyyIfQtjd39ttdwLiVyeYw4jBS5O/ufNyES3G mQKhjMgPsFzSBRrzc73v3nDn1pfQAbaqDecR1aKpax6rn23sOFP5lV1Zsc7PZTC2B5b+ GDTAVP3hpLPMJ15VBnOSK+f6tm6ABFQwBLTOi2pZGucyuqV1eBT6ah1v1ruJJ8JisFQm OFpkGLAq0NNDPTq5WC1c0UgNfX9lP/uMSSPXpvTClhb5oa118b+JavHLEmJAD61sutlq prKHVxCuFpdEHrte7eDKdOHMEQNy0KT7Qq6dgTc3iHLDqv/AynlfHS3/Y300zq9GRQPL sUHw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f129-20020a636a87000000b00380b14cdb0csi9002130pgc.819.2022.03.11.13.37.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 13:37:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B4FDD23B4CF; Fri, 11 Mar 2022 13:05:20 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345445AbiCKAea (ORCPT + 99 others); Thu, 10 Mar 2022 19:34:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344995AbiCKAe1 (ORCPT ); Thu, 10 Mar 2022 19:34:27 -0500 Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9320EC3C; Thu, 10 Mar 2022 16:33:25 -0800 (PST) Received: by mail-lf1-f52.google.com with SMTP id h14so12326996lfk.11; Thu, 10 Mar 2022 16:33:25 -0800 (PST) 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=bfFy1fRIg2or8wayuoUDmkiMKNG8jANUhiazblpam7E=; b=nNEcLy/+ncUaskQuorGMDKk1zWJvpD216iuHZl+Ez0Vdr86FfnRDFOQS0cb6FluwsW g2jHzpB1xMfM1YlSMF4Vrc0sYIM7YfDI13tTfSNurCc/WsiiDkcUls6ZMp+6TEx6ih4K 5ycwCjYXir1tFRIThOOhcJEK+JqQkA7M/WA6y22MXNSyKks8emAJYJOjS+ejIzjv2Rfu LTH31exVhPYFPMAXAiSY6qm+bvq7mdCRs9ISI4MMuwybq37N4oJINtfCLOwzR61/1h7I HCwaKAy0Vqs08hm2htNLioGO0ksDnaGem89FbLYNHNlTI77NkDMDo5pYZ+ist3jGQEVR OpSQ== X-Gm-Message-State: AOAM530nH1kAHktPfUeUqxnOn4HOuVNzdSfhKeLGcKSh6oZQD54IhE8h X1PEjPJwRE1zIbjLIHlgG2vDQg3847ouZlOGulUE8YJf X-Received: by 2002:a05:6512:3983:b0:448:53c6:7023 with SMTP id j3-20020a056512398300b0044853c67023mr4535074lfu.481.1646958803953; Thu, 10 Mar 2022 16:33:23 -0800 (PST) MIME-Version: 1.0 References: <20220310082202.1229345-1-namhyung@kernel.org> In-Reply-To: From: Namhyung Kim Date: Thu, 10 Mar 2022 16:33:13 -0800 Message-ID: Subject: Re: [PATCH 1/2] bpf: Adjust BPF stack helper functions to accommodate skip > 0 To: Hao Luo Cc: Yonghong Song , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , John Fastabend , KP Singh , Network Development , bpf , LKML , Arnaldo Carvalho de Melo , Peter Zijlstra , Eugene Loh Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi Hao, On Thu, Mar 10, 2022 at 4:24 PM Hao Luo wrote: > > > diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h > > > index b0383d371b9a..77f4a022c60c 100644 > > > --- a/include/uapi/linux/bpf.h > > > +++ b/include/uapi/linux/bpf.h > > > @@ -2975,8 +2975,8 @@ union bpf_attr { > > > * > > > * # sysctl kernel.perf_event_max_stack= > > > * Return > > > - * A non-negative value equal to or less than *size* on success, > > > - * or a negative error in case of failure. > > > + * The non-negative copied *buf* length equal to or less than > > > + * *size* on success, or a negative error in case of failure. > > > * > > > * long bpf_skb_load_bytes_relative(const void *skb, u32 offset, void *to, u32 len, u32 start_header) > > Namhyung, I think you also need to mirror the change in > tools/include/uapi/linux/bpf.h Oh, right. Will update. Thanks, Namhyung