From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 82443CDB482 for ; Thu, 19 Oct 2023 19:32:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346497AbjJSTcm (ORCPT ); Thu, 19 Oct 2023 15:32:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346133AbjJSTcl (ORCPT ); Thu, 19 Oct 2023 15:32:41 -0400 X-Greylist: delayed 1226 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 19 Oct 2023 12:32:39 PDT Received: from out-200.mta0.migadu.com (out-200.mta0.migadu.com [IPv6:2001:41d0:1004:224b::c8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80BDCFA for ; Thu, 19 Oct 2023 12:32:39 -0700 (PDT) Message-ID: <5faad529-4b70-7440-bcfc-087162188827@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1697743957; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ePx8zze/iKgcUVaE3WeK6n9PQs3/kF7Mbd+rW2MW/3Y=; b=h/pvnlOwySKO5pMmiVRA+NB3dECa4wXSv0wYkgTaUmyGiJg7SnEwaDIqYMqCoK3v+20mNt fLnEauTnk/n2Ej0zJDZ/QXWVVzV+TfYJBKOFVU2f/+0kZ01Qpz9oHpZvBmwOCxyyin+LCp y/NttlXLfUkfVuPrL5ZMcRMN//zv6ro= Date: Thu, 19 Oct 2023 12:32:31 -0700 MIME-Version: 1.0 Subject: Re: [PATCH v7 02/11] bpf: Add sockptr support for setsockopt Content-Language: en-US To: Breno Leitao Cc: bpf@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, io-uring@vger.kernel.org, sdf@google.com, axboe@kernel.dk, asml.silence@gmail.com, willemdebruijn.kernel@gmail.com, kuba@kernel.org, pabeni@redhat.com, krisman@suse.de, Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Song Liu , Yonghong Song , John Fastabend , KP Singh , Hao Luo , Jiri Olsa , "David S. Miller" , Eric Dumazet References: <20231016134750.1381153-1-leitao@debian.org> <20231016134750.1381153-3-leitao@debian.org> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Martin KaFai Lau In-Reply-To: <20231016134750.1381153-3-leitao@debian.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/16/23 6:47 AM, Breno Leitao wrote: > The whole network stack uses sockptr, and while it doesn't move to > something more modern, let's use sockptr in setsockptr BPF hooks, so, it > could be used by other callers. > > The main motivation for this change is to use it in the io_uring > {g,s}etsockopt(), which will use a userspace pointer for *optval, but, a > kernel value for optlen. Acked-by: Martin KaFai Lau