[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y0nEW14JcWPqRCMO@maniforge.dhcp.thefacebook.com>
Date: Fri, 14 Oct 2022 15:19:39 -0500
From: David Vernet <void@...ifault.com>
To: bpf@...r.kernel.org
Cc: ast@...nel.org, daniel@...earbox.net, andrii@...nel.org,
martin.lau@...ux.dev, song@...nel.org, yhs@...com,
john.fastabend@...il.com, kpsingh@...nel.org, sdf@...gle.com,
haoluo@...gle.com, jolsa@...nel.org, linux-kernel@...r.kernel.org,
kernel-team@...com, tj@...nel.org, memxor@...il.com
Subject: Re: [PATCH v3 1/3] bpf: Allow trusted pointers to be passed to
KF_TRUSTED_ARGS kfuncs
On Fri, Oct 14, 2022 at 03:14:25PM -0500, David Vernet wrote:
[...]
> @@ -5768,6 +5778,9 @@ static int check_reg_type(struct bpf_verifier_env *env, u32 regno,
> if (arg_type & PTR_MAYBE_NULL)
> type &= ~PTR_MAYBE_NULL;
>
> + if (!(arg_type & ARG_PTR_TO_BTF_ID))
> + type &= ~PTR_NESTED;
> +
Argh, I added while debugging something and I meant to remove it before
sending out the next version. I'll send out v4 shortly without this,
apologies for the noise.
Powered by blists - more mailing lists