Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp3055667pxb; Tue, 12 Jan 2021 05:23:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJyV73szwsWxVtidlZvQJERgpVZEhcm/Va2iccWtDLkGhS5k8Ar7W0DdJc9GpxlyfekyXE0y X-Received: by 2002:a50:fb85:: with SMTP id e5mr3322317edq.153.1610457808502; Tue, 12 Jan 2021 05:23:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610457808; cv=none; d=google.com; s=arc-20160816; b=eG0ikqe6Xd9wTOAG4x09b3YzNoBAj6DNUAsv02eZSnP4PFgYByuuFOQktYos0bRY0i sRfsynlZy+ffj/8zbOm1/0DQDsiogpiPjsc/mt4kygMX/vGE/3UD7nczMYe6+ve3uMkM DzBBg/C3N38tpXWNP38YCAPm0GJVUC6fIQLOX8sPEAIpGuOhX954n5MYgmoALhltkIRR ARuNB1sqyCCxqEs9+o5k1/K/NhSFi73DyiLlTZpiji4hqRgea5QZ39B3dMsLvhToZX6i tLiGyFUHZxw1YbIKNuWxlQJLQ2/NNNJ4Xae4EPIS8sd8xOTOBI97WHbIxvUojcLSg9uo s5NA== 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=QxlCETtS32k+LPaY4zcT2sQ1SLQcnpm7zzvGTTnqbqo=; b=cqsFC6FwupBRgEJW65jR4kvX9+MvNU5hgtUateRVkmnepol4o96Z88/jKu9yaLCi/1 R8l5KlcU20Jaf1pifM+rYriEg2jh1G5qxEv/TcJDSNRjetTlyKevjZkqENmLEfh5lcuZ wStbjdGv8sJnMkKsz9jRNZQpOu3B+Rwi34yKTkpdvLAeq4AKfDX40oa11Qo7eNiMEoOO n2iPdSAgffnFnh/X9CSpB2gop8Jd2/x2RgaEkFAlCgHTUTSiEBnsM/zyaDQDbi44F6Xw 3TlOfKwdmR7YyveeThWB3t/EyiuPZc9u4s99crvA5SwpfDaFLFeg3HlOekqx1/4Z3vPL KY4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QtSBDyWv; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d11si1439000edv.195.2021.01.12.05.23.04; Tue, 12 Jan 2021 05:23:28 -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=k20201202 header.b=QtSBDyWv; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730093AbhALNTo (ORCPT + 99 others); Tue, 12 Jan 2021 08:19:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:39364 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728602AbhALNTn (ORCPT ); Tue, 12 Jan 2021 08:19:43 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id A03A82311E for ; Tue, 12 Jan 2021 13:19:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610457543; bh=QxlCETtS32k+LPaY4zcT2sQ1SLQcnpm7zzvGTTnqbqo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=QtSBDyWvp4isS3qn5rjH1eZTznRQtXe4tuYqQf8fX2uaBkbv5dbrhvYpeFJ2xsMTW /TeKaW4nU0DMcnv9T8lbfJNax4mTh7e+7FBvmKhGhAjP4HGzKcIXN5TltC3wOszbaY vcZz8PL+5EdAmBQ5iRm/usv91D5ijP4lfhkDA6kFskowARz8nkagVfAW0WdlCMGKkp qNWsoE96r+zLCCAaqQqC2UAwdBqTLmz5A+B5EooPh0dyO5IsStVmse0M23c14d674S no1yvz3wAPGeLNl1t24Lfn6amaPGoROY9+Nr/l6+T2CIRErMzrsLQohFr692dS9u1G lm4LFc6c6fAdg== Received: by mail-lj1-f177.google.com with SMTP id p13so2814542ljg.2 for ; Tue, 12 Jan 2021 05:19:02 -0800 (PST) X-Gm-Message-State: AOAM530r5FCfPM38tiDVw/mTVfM96+A6DM3Kxv3sF/IAEy/13UF6zOmw PZUiSNh4Sbsxu0qL2d/JBuDwHTY7grQSFd2qYx9mqA== X-Received: by 2002:a2e:b5dc:: with SMTP id g28mr2024861ljn.112.1610457540650; Tue, 12 Jan 2021 05:19:00 -0800 (PST) MIME-Version: 1.0 References: <20210112123422.2011234-1-jackmanb@google.com> In-Reply-To: <20210112123422.2011234-1-jackmanb@google.com> From: KP Singh Date: Tue, 12 Jan 2021 14:18:48 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH bpf-next] bpf: Clarify return value of probe str helpers To: Brendan Jackman Cc: bpf , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Florent Revest , open list Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 12, 2021 at 1:34 PM Brendan Jackman wrote: > > When the buffer is too small to contain the input string, these > helpers return the length of the buffer, not the length of the > original string. This tries to make the docs totally clear about > that, since "the length of the [copied ]string" could also refer to > the length of the input. > > Signed-off-by: Brendan Jackman Acked-by: KP Singh