Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp727829rwd; Sat, 20 May 2023 05:51:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ660fkdwpM46/2n6QxRyGvYlA3TXnG0o1E5TSj4fRuQpVAlEWFdrggPt59NeDDujg9eckxV X-Received: by 2002:a17:902:ec8a:b0:19f:87b5:1873 with SMTP id x10-20020a170902ec8a00b0019f87b51873mr6617031plg.62.1684587112577; Sat, 20 May 2023 05:51:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684587112; cv=none; d=google.com; s=arc-20160816; b=AeKFWHT04tloLNqiuJ6Lz+ps323iY/ctvJoiouSM9KCmEGvnBSLgJnC7O/Dsb6NBOd YHTcW5TT3I8fkLLvrOxkSN1Mk/9yjdAbzDTuldIqG3M5czem4kieysRsjzSLQ3o+x3mx 30zW/ehG1FxZ1aePgpOh/oOgFwjjNGblB5r5wjS9NZzLNqYHf84AsFHU3tEuiY2Tlxaj kihcbdkU2hnAyfemMc1wDE/ar1Y8t5JhFHXUK5ukYdpgbhB0PmPAp3t/3BZHSPDaL3jE 188wJXGT2p2raRBaUj2DTV/IIP4Pss05fkdH2WmSFmrUTMGWx+rzVNquHp4lxVzuJqh0 AR3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=22i5EwjeqJHn5IJs66pVwRt8z5BIh4yx7A2EEKvxXlw=; b=rKZRfsYuFDREFO05Xs9ZUID/NJEfR9VsRBhi0VfVaq8rUym5GLWXJ/7LCSegZeRc14 GvVfHKRnsdr3O8XDsCTfHZrXwQtAU/ACuGmz8dqcuPQ0pIBOpfQhjx2oKWbAFr/9wUr6 y7UuWQu2AsH+PCcBKXyaJWuzj06DXJfleeyr9WCn0SSs0tMYNaUHLCJZScOP0f4piL3U XHrtsy/ZeWjgVEw46OzvCT4kgp3xqu+y4xSgB1O0gCeTClDg+g71DcxPaU7OyzTdioGg BvHghRVtkOxBQGwcmgg6MAnQljieabT57UzHO45FL+vwJW2rL0iEO5O0E4vhMQO9wZff +KjA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q42-20020a17090a1b2d00b0025337db9e19si1347797pjq.156.2023.05.20.05.51.37; Sat, 20 May 2023 05:51:52 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230331AbjETMsj (ORCPT + 99 others); Sat, 20 May 2023 08:48:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229464AbjETMsh (ORCPT ); Sat, 20 May 2023 08:48:37 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.86.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 168A0119 for ; Sat, 20 May 2023 05:48:35 -0700 (PDT) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-23-ZFWb1jHDM3WePpzNReqI_Q-1; Sat, 20 May 2023 13:48:23 +0100 X-MC-Unique: ZFWb1jHDM3WePpzNReqI_Q-1 Received: from AcuMS.Aculab.com (10.202.163.6) by AcuMS.aculab.com (10.202.163.6) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Sat, 20 May 2023 13:48:21 +0100 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Sat, 20 May 2023 13:48:21 +0100 From: David Laight To: 'Willem de Bruijn' , Breno Leitao CC: "axboe@kernel.dk" , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" , "courmisch@gmail.com" , "nhorman@tuxdriver.com" , "asml.silence@gmail.com" , "alex.aring@gmail.com" , "dccp@vger.kernel.org" , "mptcp@lists.linux.dev" , "linux-kernel@vger.kernel.org" , "matthieu.baerts@tessares.net" , "marcelo.leitner@gmail.com" , "linux-wpan@vger.kernel.org" , "linux-sctp@vger.kernel.org" , "leit@fb.com" , "dsahern@kernel.org" Subject: RE: [PATCH 1/1] net: ioctl: Use kernel memory on protocol ioctl callbacks Thread-Topic: [PATCH 1/1] net: ioctl: Use kernel memory on protocol ioctl callbacks Thread-Index: AQHZinQFkjARdT8YlUi1kSrEdFLkt69jHBLw Date: Sat, 20 May 2023 12:48:21 +0000 Message-ID: <00e1ca50c7824750b24039c16a9d8bc9@AcuMS.aculab.com> References: <20230519135821.922326-1-leitao@debian.org> <20230519135821.922326-2-leitao@debian.org> In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 RnJvbTogV2lsbGVtIGRlIEJydWlqbg0KPiBTZW50OiAxOSBNYXkgMjAyMyAxODowNQ0KLi4uDQo+ ID4gU2hvdWxkIEkgc3RhY2sgYWxsb2NhdGUgYWxsIHRoZSA0IHN0cnVjdHVyZXMgc29ja19za3By b3RfaW9jdGwgYW5kIHBhc3MNCj4gPiB0aGVtIHRvIHNvY2tfc2twcm90b19pb2N0bF9pbm91dCgp IHRvZ2V0aGVyIHdpdGggdGhlIHNpemU/ICh1c2luZyB0aGUNCj4gPiBvcmlnaW5hbCBuYW1lIHRv IGF2b2lkIGNvbmZ1c2lvbiAtIHdpbGwgcmVuYW1lIGluIFYyKQ0KPiA+DQo+ID4gSSBtZWFuLCB3 cml0aW5nIHNvbWV0aGluZyBhczoNCj4gPg0KPiA+IGludCBzb2NrX3NrcHJvdF9pb2N0bChzdHJ1 Y3Qgc29jayAqc2ssIHVuc2lnbmVkIGludCBjbWQNCj4gPiAgICAgICAgICAgICAgICAgICAgICB2 b2lkIF9fdXNlciAqYXJnYA0KPiA+IHsNCj4gPiAgICAgICAgIHN0cnVjdCBzaW9jX3ZpZl9yZXEg c2lvY192aWZfcmVxX2FyZzsNCj4gPiAgICAgICAgIHN0cnVjdCBzaW9jX3NnX3JlcSBzaW9jX3Nn X3JlcV9hcmc7DQo+ID4gICAgICAgICBzdHJ1Y3Qgc2lvY19taWZfcmVxNiBzaW9jX21pZl9yZXE2 X2FyZzsNCj4gPiAgICAgICAgIHN0cnVjdCBzaW9jX3NnX3JlcTYgc2lvY19zZ19yZXE2X2FyZzsN Cj4gPg0KPiA+ICAgICAgICAgLi4NCj4gPg0KPiA+ICAgICAgICAgaWYgKCFzdHJjbXAoc2stPnN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