From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DB3853F328F for ; Fri, 7 Aug 2026 09:56:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786096594; cv=none; b=PjsW5kDZX6zIuAjCRp7+e+5KtFHOQHvnjQwpe87hJBC1NLjK+FSfULySGx4a085sU86cq8BZhDGPmnDnggkzJC6IY+7ogtfl7ATeCptZmn79xRpaF6fd1NpNQMMpFSORBUVK567mK32zz9zB10UZvG3V0XY4ZorCDjVR6LPSx7I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786096594; c=relaxed/simple; bh=pHcKBItI/RhnxUOvGh6d9V055g2u12YM9zksCV64/q8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Vd3NEi+0lFzaL/z+Tvv05i0jXRspe9MYyJiFYMjwqduHdY276sY4ywdTbt19nfvXs5Nfx4/JzLMxjFhSzf7RtE8dfTrJyU6P+cllwGYpckC8DMzcvyn/e8dcZOD3PMK/apHcEdLhcUQPDkrZQclbGLqKlf7XnAL+jArb/tMTMGc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=F7onI94P; arc=none smtp.client-ip=209.85.221.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="F7onI94P" Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-476a130c138so2749229f8f.0 for ; Fri, 07 Aug 2026 02:56:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786096591; x=1786701391; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=um5pD+hW6W0GLGw7qf+tQa0Ejl1SpwV3n1kaTYglr68=; b=F7onI94P5enQ6gjNY1FV8naKACvU2cLTwSwLlRkYtcz7m0wkt+4910Y2osy6Iybfc2 mmJ7/aSuBkKReyhhuEmutUoBuURw7RQjlSLSawrF/0eXyNXllQPVS2lDvpC4QzqEBg2A 8abRf6U5I7yc6XR2l9PYVCauifQ8TcTpeC27qHhtdNmkvGmnZ7P3P4V45LnioCyMz/VE UQJyAqod02KPJgu7vnUlOsPZfjdrcuGNbHOy8LZDoelD8M1cfwR59ZQy2PLli386A7DK k/UFBxIM6CEnQlBIlRSgcm0pjYYkJ6yecePVSA+RVtYIkzxSCijUr/lA9QZDH4PumhBb W7/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786096591; x=1786701391; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=um5pD+hW6W0GLGw7qf+tQa0Ejl1SpwV3n1kaTYglr68=; b=UxHiwaRX0b7MbLfAbOQ14FHOm6meuBz3NGmKoyvBjBcLW/x/QL4VHEdZQGTXQthksp M7yX76tI8ZpP680RnYRuVztA8JRYo2usGPhRn5WQuPsGmg5NrBd7B1m0ACnlVCEeU1s8 VamV7AUH6JYXSiLGIIp0K6XMSddxfpgoHS+lSmrHqbCEpe3M8R4nNrqCP03/o+mL1n01 2FSy4ga6r1NiplS+qdvSMCd7OlUsL539H+pI/EkFNycN/VzbEISvbOwKyUzz2Xt8/RSs SPyOhYMpDc6pMAsXiMrrjEiaJwV2DXsmaIm5diarvErFTB7hbLIOC8vRJRPNLew48bXY CJfA== X-Gm-Message-State: AOJu0YzRATVFMDdFD6es2wtrmcW2ET94IEIQsmCc5e52eZpc8Czt0JSU QRiiOZhEkqoQVTFzncgnAqvwfUiFrnImXp5nR2Vi0KfQMCloySkyfErp X-Gm-Gg: AR+sD13JFts8l50+FzEKrXqBEoHkjujYkzrMPDvd+zwsCnJnLA2NJOIws0wjl56sNGD LnoVnOPfiLbVdz7oZd4w50/UbcKeLhDDdMULWrgO14ay7eyRW9UX6sPt9mLb7iexYUdK2PdZhPM whU3eZTrW+gYbtToC1uUGXSrQU2wJq/e5zP85myBfhdR8DlFded+A2bgexObxJHNvdw8uLsygSN fSR6G9XE1IbXrNO1P/6GWAJzymKv25sQDs36wMQ1jrGHXo+qiTv8CQrwMq2EVg0tZhF0yYj50ad jooBRrMMGfKoullBMBJRJ4qe51n8+0R5xxNkYz+EZDpOnewcMqd82eYBhSQnoSnYnJq1fegyRAS SrF97SS/J1ofZD9q557HoP/5K+ZqAwPV4jHuQZnSDRCWmTgexBSohvOM8Ep0HYh9HOd62KS0agK ZDlYwvXsQmQ3c9BQkz/Bo2qV/ETx/KFwy82N2mSukMR9LB5Gh5G4imjwCUoEFOawI6eSXHbJkog fxlnNUuM/ViRjLa4oKy X-Received: by 2002:a05:6000:22c9:b0:47f:e7c8:3fe9 with SMTP id ffacd0b85a97d-47ffd15cb0fmr12400790f8f.0.1786096590964; Fri, 07 Aug 2026 02:56:30 -0700 (PDT) Received: from gmail.com (deskosmtp.auranext.com. [195.134.167.217]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-480021e8c5asm4830224f8f.18.2026.08.07.02.56.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Aug 2026 02:56:30 -0700 (PDT) Date: Fri, 7 Aug 2026 11:56:28 +0200 From: Mahe Tardy To: Jiayuan Chen Cc: bpf@vger.kernel.org, andrew+netdev@lunn.ch, andrii@kernel.org, ast@kernel.org, daniel@iogearbox.net, davem@davemloft.net, eddyz87@gmail.com, edumazet@google.com, john.fastabend@gmail.com, kuba@kernel.org, liamwisehart@meta.com, martin.lau@linux.dev, pabeni@redhat.com, song@kernel.org, netdev@vger.kernel.org, sdf.kernel@gmail.com, ameryhung@gmail.com, kuniyu@google.com, memxor@gmail.com Subject: Re: [PATCH bpf-next v4 2/5] bpf: Add ksock kfuncs Message-ID: References: <20260806182234.380833-1-mahe.tardy@gmail.com> <20260806182234.380833-3-mahe.tardy@gmail.com> <6a86c972-99af-4e35-9392-8776d57dbc9a@linux.dev> Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6a86c972-99af-4e35-9392-8776d57dbc9a@linux.dev> On Fri, Aug 07, 2026 at 11:08:43AM +0800, Jiayuan Chen wrote: > > On 8/7/26 2:22 AM, Mahe Tardy wrote: > > > [...] > > > + return ret; > > +} > > + > > +__bpf_kfunc_end_defs(); > > + > > +BTF_KFUNCS_START(ksock_init_kfunc_btf_ids) > > +BTF_ID_FLAGS(func, bpf_ksock_create, KF_ACQUIRE | KF_RET_NULL | KF_SLEEPABLE) > > +BTF_ID_FLAGS(func, bpf_ksock_connect, KF_SLEEPABLE) > > +BTF_KFUNCS_END(ksock_init_kfunc_btf_ids) > > + > > +static const struct btf_kfunc_id_set ksock_init_kfunc_set = { > > + .owner = THIS_MODULE, > > + .set = &ksock_init_kfunc_btf_ids, > > +}; > > + > > +BTF_KFUNCS_START(ksock_kfunc_btf_ids) > > +BTF_ID_FLAGS(func, bpf_ksock_release, KF_RELEASE) > > +BTF_ID_FLAGS(func, bpf_ksock_acquire, KF_ACQUIRE | KF_RCU | KF_RET_NULL) > > +BTF_ID_FLAGS(func, bpf_ksock_send, KF_SLEEPABLE) > > +BTF_KFUNCS_END(ksock_kfunc_btf_ids) > > + > > +BTF_ID_LIST_SINGLE(bpf_lsm_socket_sendmsg_id, func, bpf_lsm_socket_sendmsg) > > + > > > I guess bpf_lsm_socket_sendmsg will not be compiled when CONFIG_BPF_LSM is > disabled > Yes indeed we can guard this with CONFIG_BPF_LSM as it might produce a warning on building with CONFIG_BPF_LSM disabled. Thanks.