Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3427535rdg; Tue, 17 Oct 2023 14:42:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHptSUJJOBHzen9TDsMsF4UL0ZV0gKtWZppNVI+i3koLEGiwFTidYpLikAWKs00eDNYeFq6 X-Received: by 2002:a05:6a00:a1f:b0:6b4:6b34:8ce0 with SMTP id p31-20020a056a000a1f00b006b46b348ce0mr4013522pfh.31.1697578974712; Tue, 17 Oct 2023 14:42:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697578974; cv=none; d=google.com; s=arc-20160816; b=tiKeenaqz/SKJKGuKXP5boo8GmLWdj1Wp9qy/YGKxb1U1HC5pelIHaDOnXFtwysBBL qa9tgi9BuJbdFLcWK0S8CoHTjM+qKtd/dvhM+0B+rvW9+EGVUAb210spSuOgPKbn7H+z D6g2nzfWtLfbUX7Jecc7BSMzbhby4yRD6P5OoOoFy9XB9YDYrSCPN9/DGVVZgIWnSlAh ygfDmlaqiKQR8MNi5PoWjLjwzvtaVXRZ07EW9IV9WPaPGRJjalJaxiFnSmA9Zdu+Ym29 uLraQb+iUNsbhzIvBu/LXIDs3tIGiEbrEZazGL4ElIqtDZG+hfaOOepQW/3Z5J9jG3OG wDCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=1s09wWZ/X+MM4abcpHd9krW5JMfcU1OclKuhRlLlmbs=; fh=vWi4ABM9KHg4mUbPa5bdkowEUTl9hYPEbB6C7hUIkIc=; b=R1kQlKtcfRSPJySTSceGQl6nZquy2ZpLiO0dP/uU6pxSkCDRti6pZpVZGMxgnUBJAk 8cJrGvYMjo1GAXLt3/+escLzwyy5IgvogCk+jcOkDsQIef4n3+x7k8LGALfcDbwJr/aq kKVy5eH2a+TBxa0z24/7yT9ibRuma0XbpYw5BIs8wNwXc8zyy3EXojFGtrE/guujM0Dt Ejct44iHeLVdzo2tH2bdeWnzZge4f+93kmJrk4OfHBy4XVYm6QwdBmuh3pZZSFD/IHR0 19+9o5UjEKkJh0vdT0c+94E8AmjHorACANK84yEvF/yz7VAHeLRKLxwVdzVgfCDzPNFt FPTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MoaQ3Ji0; 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 o3-20020aa79783000000b0069335e0c824si2370303pfp.204.2023.10.17.14.42.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 14:42:54 -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=MoaQ3Ji0; 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 45CC080BB573; Tue, 17 Oct 2023 14:42:52 -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 S234891AbjJQVmj (ORCPT + 99 others); Tue, 17 Oct 2023 17:42:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234147AbjJQVmi (ORCPT ); Tue, 17 Oct 2023 17:42:38 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0D1DA4; Tue, 17 Oct 2023 14:42:37 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9FBBFC433C7; Tue, 17 Oct 2023 21:42:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697578957; bh=bEJk/El5S1sh0NLlwpXelLcKGL2EcQlfohD4j75wrrM=; h=Date:From:To:Subject:References:In-Reply-To:From; b=MoaQ3Ji0O3v7mU1S5rtTGqSlenPQZPxf3wArcAU0R6jMnPuNoJ7M4ULHv/ZAekdUu nuxnxm1oV9PxCEke3tCAn6qtwnw8PqaK/eygeiNHqEyYIVmNCfycaHXAv9djqNDdyX 3Q9Z8NyrVtvQEGRYzocWD7YqijYwdEmqWkRqg3l6QR+p89pL3JlpsBhaxsxtAYfSM5 48MwCJvJS9ZM50mzUDBXwWk/zxPC5QmhF7WzXMgNbQ2L5oCXSQJV8Boifry/U+2DkF hzpiAS2DUn/RtM7uBlCKvnuVkfTqLfJSjnch7Jfxx4mMl/XNW5BI9a8+RSUYkdynYn GLU5VjQK+zmkg== Date: Tue, 17 Oct 2023 23:42:33 +0200 From: Alejandro Colomar To: Guillem Jover , Axel Rasmussen , Peter Xu , linux-man@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mike Rapoport Subject: Re: [PATCH v2 4/5] ioctl_userfaultfd.2: fix / update UFFDIO_REGISTER error code list Message-ID: References: <20231003194547.2237424-1-axelrasmussen@google.com> <20231003194547.2237424-5-axelrasmussen@google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qDHSbjq1ltIB8fn+" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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]); Tue, 17 Oct 2023 14:42:52 -0700 (PDT) --qDHSbjq1ltIB8fn+ Content-Type: text/plain; protected-headers=v1; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Date: Tue, 17 Oct 2023 23:42:33 +0200 From: Alejandro Colomar To: Guillem Jover , Axel Rasmussen , Peter Xu , linux-man@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mike Rapoport Subject: Re: [PATCH v2 4/5] ioctl_userfaultfd.2: fix / update UFFDIO_REGISTER error code list Hi Guillem! On Tue, Oct 17, 2023 at 11:23:10PM +0200, Guillem Jover wrote: > Hi! >=20 > On Mon, 2023-10-09 at 00:06:48 +0200, Alejandro Colomar wrote: > > This produces some unwanted space. Please apply the following fix to > > your patch. > >=20 > > diff --git a/man2/ioctl_userfaultfd.2 b/man2/ioctl_userfaultfd.2 > > index 6e954e98c..795014794 100644 > > --- a/man2/ioctl_userfaultfd.2 > > +++ b/man2/ioctl_userfaultfd.2 > > @@ -432,11 +432,11 @@ .SS UFFDIO_REGISTER > > no mapping exists in the given range, > > or the mapping that exists there is invalid > > (e.g. unsupported type of memory), > > -or the range values ( > > -.I range.start > > +or the range values > > +.IR ( range.start >=20 > I think you meant =C2=AB.RI=C2=BB here? Yup! Good catch. Cheers, Alex >=20 > > or > > -.I range.len > > -) are not multiples of the relevant page size, > > +.IR range.len ) > > +are not multiples of the relevant page size, > > or > > .I range.len > > is zero. > >=20 >=20 > Regards, > Guillem --=20 --qDHSbjq1ltIB8fn+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE6jqH8KTroDDkXfJAnowa+77/2zIFAmUu/8kACgkQnowa+77/ 2zIIsQ//dTvOtN/wns4bqPazY5U/kGVNLe9Skp5b8vVRVSvVQyevS80tzbOQsAJ/ pMyqAyg+SV/ou1VyPrnhKoUkCm6fJUPA1PCG164hbkgND64PKSSkU6fpZW58ZmTi XQyq+DasxjEwlqbSCTRPUqslpugmNuaOVwtmDT3ggFoFHnwEmGNKmjvYBqWrM+S9 6MpJdh5JaIJGF+MY3rcgwCfwYuO8Jr5UFXV8YWCZqK8gdJT/70l0p6orptFmcMt5 dpqU6oBslTq3Ho01yTMyn4pVsEnHzPMg6nM4cXzOFI+gJPn/4SGe1PCq1YlCppOJ sZlEo7+GEzSUBq+wXF99mhI17qWgdq1IxFRy/Srb8/egwhBhVFjsiFBK9AgKD+O7 /MvOHXwafDDxvtz4xA6mBCSCjb9a6OeuxWAWRTi693nDQxe6zHuIqABz13VPYWKW X01HIgzMN5FRHmKJ/1IRy9cNCh0mRHJaTO6ICbVH6/HXUX+SOTxtKA47dv73kSf3 8NftmUXKYO8h4zbaDBx7sU5ZXa0G8rSKPJTQ6sZbdwdeejX95r5D9YJ1n8CSxu5t YQzktCzPQu4yLKxzFjni5lJ4r0bxOcQzC6EKOclISGkymAv5hAWE4DozQvX+AkXl q8/lvUylvTTn49undQUQP4MgzRvEtEGfE6RV0YD+9Dk6TVkGMOo= =C6aY -----END PGP SIGNATURE----- --qDHSbjq1ltIB8fn+--