Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2020038rdb; Mon, 9 Oct 2023 09:55:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFPoU4x9AOt2fR+wS680eBq6DRkBEZ6tmXAMdrzPfAV5cRKUHstHnswTqsbXr9z8DnCeUHV X-Received: by 2002:a9d:7d83:0:b0:6c4:d2a8:b789 with SMTP id j3-20020a9d7d83000000b006c4d2a8b789mr16131766otn.35.1696870535389; Mon, 09 Oct 2023 09:55:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696870535; cv=none; d=google.com; s=arc-20160816; b=bEL/SxZs3zR8G840OcleMdQPcEgclsKjU680REh85HS6/7aK1jahv8/qks//qgCfVy wlggldVph8kHQEcf2CLUiwfEAZx5GHohupBilFlLLb++0eUKgZE8QX+mZ9wgMXaRBCKc G9wwK8Fgn3cQkBOU9nSuK9FYPoJurH/1p2VftsWz6JUtLpNytfJDXtu5fE2+bUJmds9C AcwiPIzF3qWyqHHrHMpM8aIyYFSI+0KMV32Kz87lg9jTErs//LNe9k0belOJjyFtVoVP rqmDl5aXUqi326qFWuByzOwY8d82VXxBgKr81cdLYQMzxFitoNZIhAKSNX3rPxBztITN dXVQ== 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=P5qxFVFXPIhi+XM/ouIR/Goa/MT3mHs9k3yv2Elvy7k=; fh=kc5dZtzGOpm5ngb6csT4XkWGV7+4zD+CXNDAdBgvXOI=; b=cS60LqyDEieR74LapxhU5hhgYg0Epev3SnmsrMQDNzAo2aojYvho2nsVC6mT01x0ej HownBSbSI62Bvpt+nqf1pw8cwYXPbVDmlcUk/yl5K9fwgUZ3XcXcHNzIggnQyB7a/70q HEC+TjsezY+AdjabQtuh5jlsr7MCwVBcUpZi9GR06yLGylzOV+jgXrH6ykTv5Ivg42U0 e064vLQrr1fFHt8/rKydJvFFHSQMO7GQJC4Y2PR0NeQXkG0C3TP3CyfydN45HHWrc66f 2OqziTNVZaN7D+yyCjU6SqaRIMQd0tLOfvtm+8rmLAAovkge/WG3jVDuBeKg+zcbuv0M VDSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VL6H9Jke; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id by13-20020a056a02058d00b0057750d57806si11289771pgb.136.2023.10.09.09.55.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 09:55:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VL6H9Jke; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 01AAA8078C8C; Mon, 9 Oct 2023 09:55:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376894AbjJIQzW (ORCPT + 99 others); Mon, 9 Oct 2023 12:55:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377245AbjJIQzV (ORCPT ); Mon, 9 Oct 2023 12:55:21 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27DF8B6; Mon, 9 Oct 2023 09:55:20 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 651FEC433C7; Mon, 9 Oct 2023 16:55:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696870519; bh=uCPuZaKEt3NJzh5PJgyPXMrlMFoyhf8vOk6Yz5Gt7cI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=VL6H9Jke1U64QcENUxuMFocLMSPSbvq3zFxANnsxuh7IWW7VqmLz7vlxYct5KqmbP dwl94bXON6MWq/0t7sykpIyMr8Qj5yecUn0pn/u6l7nTYDh57oiYiYl6DUgI9mUhlr 8cLb9VDcasJ5VnmCh7DRMEQT0W+u3il6CAmEgIt9ZuP5MYqWdYndS4Q79LAO8Fk8tW l8L84gkOYM5BzZKIJOA8XEYudBTFNG1MOgab3a/xyntxqOqEqtLt+LDhOuzOyirFat V5PLNx98FcjTM0EV/TXJPWpngv8j/5YNcOcnpmHNezBS52k+8udOprlpejUOxssSsS 5kCzQQyC8zwyA== Date: Mon, 9 Oct 2023 09:55:18 -0700 From: Jakub Kicinski To: Breno Leitao Cc: Willem de Bruijn , sdf@google.com, axboe@kernel.dk, asml.silence@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: <20231009095518.288a5573@kernel.org> In-Reply-To: References: <20230904162504.1356068-1-leitao@debian.org> <20230905154951.0d0d3962@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 09 Oct 2023 09:55:33 -0700 (PDT) X-Spam-Level: ** On Mon, 9 Oct 2023 06:28:00 -0700 Breno Leitao wrote: > Correct. The current discussion is only related to optlen in the > getsockopt() callbacks (invoked when level != SOL_SOCKET). Everything > else (getsockopt(level=SOL_SOCKET..) and setsockopt) is using sockptr. > > Is it bad if we review/merge this code as is (using sockptr), and start > the iov_iter/getsockopt() refactor in a follow-up thread? Sorry for the delay, I only looked at the code now :S Agreed, that there's no need to worry about the sockptr spread in this series. It looks good to go in.