Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp2275935rdb; Tue, 5 Sep 2023 22:34:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFWWqmSaC6McCiEPmlxAey2WqnSVkUmWvpA+sYObJLmPEmU4EQHMbhkG1NZ3/CfDms04Qub X-Received: by 2002:a17:907:7745:b0:9a3:faf:7aaa with SMTP id kx5-20020a170907774500b009a30faf7aaamr1320165ejc.15.1693978461671; Tue, 05 Sep 2023 22:34:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693978461; cv=none; d=google.com; s=arc-20160816; b=q2PKVVan4kyiWhqnQqEJ+NVaRuQBkEliLldYpwh0xgNDsr86vLN79fgRgnILBIozUa lMG1hX5N0LGQ4ABdb50nqYFRWqxusV8DUxIRbw4kqppMFTlHmcSpqgK1NW4hm4hmH6iW 5gaB0UZKrnN1zIAridIAAKngP7dCYrGbAUzbIwemeNYsjbXecpkwNUqZc0MZC/LNyWvC Ei9XrTGnmTdvyXnVY7+hRCK+aJxqgvl74hSzeZaba3z+wFJF1NUdMIUM2aZ5noNe/JFK tGegaRErgxO5SiI8n3ZLQ3UCXW+nXfQWHCpUPlQq1m4MR/8p1jd1lb2zuombAaXYg8g2 9zyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=XLMJBwpk6M1KPj7Fdn/6+kp4aVmCaD6EgCd6i+Ah0HA=; fh=pFDOu90phFTa89q05CTQ0xCsLlH/S+LUnMQTkFMupKI=; b=wlWmlGwzsB2GZVaC7LAaSUcMAtlsoCQkpYOvZGpZCni6gaLUe76wOBop8GRJT8b1I7 HFiqKSAgdZSqAyU/4pZIgNlk3vEumegMYv2YAMuitenA/hN47PES+4ndtHQWY7qOjCEd i09a78e1Zh9kkZ9CBMSgDVHjT7cA9QBDGHt5ZDUkp6HJjtRs6EfCU5T0QXqS1y/d0ye4 EYwgJ9ZxOSY/LaldRzXtpnRqIHAO6BE3cRxvNAgXJd+8NrXkRkrLPao89+/MF+KQBsT3 4HG7XjZDLqHavnl/0CFnX/f71Xb7uYeOVpk/LttsBZrJONsw8lacSdlbMsbpkbSNrovQ F0zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XnSjkZ0s; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l23-20020a1709060e1700b009a2185ba322si8616845eji.405.2023.09.05.22.33.50; Tue, 05 Sep 2023 22:34:21 -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=@kernel.org header.s=k20201202 header.b=XnSjkZ0s; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235549AbjIEWt4 (ORCPT + 99 others); Tue, 5 Sep 2023 18:49:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229546AbjIEWtz (ORCPT ); Tue, 5 Sep 2023 18:49:55 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C42D0EB for ; Tue, 5 Sep 2023 15:49:52 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0DC5FC433C7; Tue, 5 Sep 2023 22:49:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1693954192; bh=rXRSGShzmvnqZZ2Us9gU41YxRXaVN1aed92JhI/FfjE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XnSjkZ0sIIrm0rfhStmWwCL+27qYJ0IORFJAx1aCgF+TED5iZRwoewOQFFgEM4qV3 kGACvUWhZe9XwEHab/QGYd9m+qiObgGJw9uvPSKxV3qzS78jAbeANSAAyoY+BlFc3d ntfQLd/mT3KgLCRYAdpG0mb2oLzhNgjQe8qgs9nVNXUE4DExGIXMZZv3WUyc1wLL99 l8bSzu7zzIknHBwS6yLcO6wq+56Ty0/7AD+za95Zw4+UMwRIyeBTG3tM96tYfcBJcu JeeHDFMlDCkb4ghiFmSDsUPr/nA498fc4vAPBzOt4rdXQJQfQBBXy6xJboCsBB1ttQ B3n5aIwNrF14Q== Date: Tue, 5 Sep 2023 15:49:51 -0700 From: Jakub Kicinski To: Breno Leitao Cc: sdf@google.com, axboe@kernel.dk, asml.silence@gmail.com, willemdebruijn.kernel@gmail.com, martin.lau@linux.dev, krisman@suse.de, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, io-uring@vger.kernel.org, pabeni@redhat.com Subject: Re: [PATCH v4 00/10] io_uring: Initial support for {s,g}etsockopt commands Message-ID: <20230905154951.0d0d3962@kernel.org> In-Reply-To: <20230904162504.1356068-1-leitao@debian.org> References: <20230904162504.1356068-1-leitao@debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Mon, 4 Sep 2023 09:24:53 -0700 Breno Leitao wrote: > Patches 1-2: Modify the BPF hooks to support sockptr_t, so, these functions > become flexible enough to accept user or kernel pointers for optval/optlen. Have you seen: https://lore.kernel.org/all/CAHk-=wgGV61xrG=gO0=dXH64o2TDWWrXn1mx-CX885JZ7h84Og@mail.gmail.com/ ? I wasn't aware that Linus felt this way, now I wonder if having sockptr_t spread will raise any red flags as this code flows back to him.