Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4762265rwo; Tue, 25 Jul 2023 10:30:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlFysG1VcNcxfElpDEtEuYUfdLEZjPyWuYYFvtmXacPpQBKwH5rd/eCuTZUi9v29KTIGLGOJ X-Received: by 2002:aa7:de82:0:b0:51e:227c:9492 with SMTP id j2-20020aa7de82000000b0051e227c9492mr3003974edv.20.1690306233360; Tue, 25 Jul 2023 10:30:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690306233; cv=none; d=google.com; s=arc-20160816; b=BlsMKTDABrA2r5b9rGiLUXWzA8QBHqEXj9uoo3TZmt0MNGMGqoLPJkqatrOxIMBTEE oHtdvh07ttR825CRflrGuD5f1GoTLRadqtaF+jkOcvCRWVbc/+xt87/Dd4/uVhpa/Q11 faf/GOjm9VRR7WmKc9jNGA5GWvxKnfc46aj5UTXzogklgrtJKDGFci86VOgVFGavEUNG 0BZycXUeiCcv/2BdH5+U/NDwbi36PYsCtLb/q8ZYCeCj36xAYN2nt5kDluHOQUjlvib0 83aGKJQsCvh9sEBw/N/Feo8l2DYdSTpG2hNg+0EGVoCG8+5OZKX+MZ7LjN12VfP4Ia53 OoDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=aEq9wvoOmb79sxPImc43/8dWbsrHxgBnwc9vx2sbv8Q=; fh=Uc46kbYcIWdP3kqxqkWhF2r/nFEpZRzkqC4AJgVXJrg=; b=igFNz/fvB1kymrcELqACH5hLn2W33G9ZQkHNfk1N6YaOwnWnTKQgQip75XJwNsgj2l xcl3n86C+rvW75NknQdqtzGCATA1qU+bmUcdUnYRlL0EG5C1CVrpA30CB483pI7iMdIM Se1WtzORmC2f/Dad8vRfSE+FbTbhf1BEZ6yeNohDc1ggQHKDMkAZ1TjW8J3yzc72eecp Y30n4ciJR03BrXdegYy3F7BPqwOvKP+TVyoLvGX+b01LxEOLS+p5qKPlb+AS88BfLDPG AoveV/y4U1OzM9aqUmSyRP3GogUAmEY0zb8+OASROW9BtUd9cqS0sysLq/9itel/sN3p /qxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=VWIQdXO6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c26-20020a056402121a00b0051e2304b8afsi7722965edw.102.2023.07.25.10.30.07; Tue, 25 Jul 2023 10:30:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=VWIQdXO6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231761AbjGYRCr (ORCPT + 99 others); Tue, 25 Jul 2023 13:02:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229573AbjGYRCq (ORCPT ); Tue, 25 Jul 2023 13:02:46 -0400 Received: from mail-pg1-x549.google.com (mail-pg1-x549.google.com [IPv6:2607:f8b0:4864:20::549]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E92F1FE for ; Tue, 25 Jul 2023 10:02:42 -0700 (PDT) Received: by mail-pg1-x549.google.com with SMTP id 41be03b00d2f7-5635233876bso2958529a12.0 for ; Tue, 25 Jul 2023 10:02:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1690304562; x=1690909362; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=aEq9wvoOmb79sxPImc43/8dWbsrHxgBnwc9vx2sbv8Q=; b=VWIQdXO6C9fKgtTrf5l5sGCGnOSCXxT0RK4teBxBlWjA45NvBd2W2NUCMBvJqd1LuQ +Ddme/UZOrkRccSEBHud08r7Hp2GlWNzroFWlyPl9a0XN1yaKOt47BItrQIH7itgaZ8L 7CtNgDjtQGmkhgbXcJKsSXADLMCaG9OXG3B/pCyg44pBrE8DUcsdx625AOB1ywFHFJWk EVZCqM+29RfY09tnPa6AzfJ6TqZ3OX1xIi7nA+XQvQYYGtNtozEioR+Cj1IXxlTSyzX8 ydYByI9q5vC/t0bcAbs5zfmRgTZcIcMmZSWRvoBzoDE3/5ywsADDG9JPeOFXHIcXarLI u7JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690304562; x=1690909362; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aEq9wvoOmb79sxPImc43/8dWbsrHxgBnwc9vx2sbv8Q=; b=mFcVpbLcfOWmFAETdkkJ6moJPIS563nb8w2IWggny5FHWT60G+Q/FRe45TSWVhIUcw gViomM2kFaV4x1ewrZyaF84MrMRXPCOXtwIQ0YQhy3wgLw/NFNS/Oaf/CH3Yir9eNLbh DrNKsM0jiycpE5k4LVKizsaypsMTMKt1RWVwLYUAxH6N8GiNFz+CQQhtUzZJcjhW/A98 elKjZNqWUoaEyyN7DG8wTFDIXDOTOLSIF6fM3eX6ZQNDf1QKBgEs1Tq4zAVLZZO6cwFo kZDXmYNmao/BX7I4zsHEeekRHqdhSl8MEWGbVJ8pHN+t968xYbZZGAkpzaO4DSJoSTmy ZdvA== X-Gm-Message-State: ABy/qLbxTdV0xk703w2LHKNuttyx6oTlaDVN0BlC5r5cFXxA/EtKT6NY dvFBOEfblpfan9k5PwGmHidDbcQ= X-Received: from sdf.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5935]) (user=sdf job=sendgmr) by 2002:a63:7d12:0:b0:55a:12cf:3660 with SMTP id y18-20020a637d12000000b0055a12cf3660mr52472pgc.1.1690304562245; Tue, 25 Jul 2023 10:02:42 -0700 (PDT) Date: Tue, 25 Jul 2023 10:02:40 -0700 In-Reply-To: Mime-Version: 1.0 References: <20230724142237.358769-1-leitao@debian.org> <20230724142237.358769-3-leitao@debian.org> Message-ID: Subject: Re: [PATCH 2/4] io_uring/cmd: Introduce SOCKET_URING_OP_GETSOCKOPT From: Stanislav Fomichev To: Breno Leitao Cc: asml.silence@gmail.com, axboe@kernel.dk, io-uring@vger.kernel.org, netdev@vger.kernel.org, davem@davemloft.net, kuba@kernel.org, edumazet@google.com, pabeni@redhat.com, linux-kernel@vger.kernel.org, leit@meta.com, bpf@vger.kernel.org, ast@kernel.org, martin.lau@linux.dev Content-Type: text/plain; charset="utf-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable 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 On 07/25, Breno Leitao wrote: > On Mon, Jul 24, 2023 at 10:31:28AM -0700, Stanislav Fomichev wrote: > > On 07/24, Breno Leitao wrote: > > > Add support for getsockopt command (SOCKET_URING_OP_GETSOCKOPT), where > > > level is SOL_SOCKET. This is leveraging the sockptr_t infrastructure, > > > where a sockptr_t is either userspace or kernel space, and handled as > > > such. > > > > > > Function io_uring_cmd_getsockopt() is inspired by __sys_getsockopt(). > > > > We probably need to also have bpf bits in the new > > io_uring_cmd_getsockopt? > > It might be interesting to have the BPF hook for this function as > well, but I would like to do it in a following patch, so, I can > experiment with it better, if that is OK. We are not using io_uring, so fine with me. However, having a way to bypass get/setsockopt bpf might be problematic for some other heavy io_uring users. Lemme CC a bunch of Meta folks explicitly. I'm not sure what that state of bpf support in io_uring.