Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3441309rdg; Tue, 17 Oct 2023 15:15:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEskKkhg7RX5pE2uNZrnTuqLwX3a90L19PHemt1XpUcYe5kZaTCHUl1e4yS4gZcwUipI54T X-Received: by 2002:a05:6300:8001:b0:149:9b2f:a79d with SMTP id an1-20020a056300800100b001499b2fa79dmr3434726pzc.6.1697580956865; Tue, 17 Oct 2023 15:15:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697580956; cv=none; d=google.com; s=arc-20160816; b=W538yVr6Mr4CK6ED2ryxZjq0k1qtOrHJGC5bsPemkwng2QZROXRkX61srEFG0HjTVV jAWsqvBG7K/k5XFECi//5W35cxNO+0xqILvtRrSv7eDp3ofK8ecReLKA44yRc0ywJI2z 6wKOhcq3XO0pc2/7H8/HaoBSWmSHAEnm7xuxzcp2wIui5Yo/8OpPIpil8k9zSOej8pxt t+f2Z5GTosJL1eaLL3dWSIrK1R8YeQoPodPgBddUpcUHbZI8vzN19b+9zG6QgvNHQr7D +cW4VcTl1/FiVE8M6sGjFtuwiLTq1le3jX+RoL0oJpjypPT4GFOamP7jjOALRoC1u4a1 vM3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=22eF3O2TV81lbDaOLeeipX0IchRIXInorQwN4073ktY=; fh=f+0F93KFVNJuwQAUqiYADpf5lfZkrVcmdHxAwC4Y8/A=; b=FxpsC5jGALqUXD9n9nxbg0tTVIaLb032jpQJaqIcGQ9g7c1dM0t1+iWECkmFgPjMkH oMjSU3qHlfW+vr8QYw0JXN7csTzlivWDOHNSi9SjAHvnrlW79r4gcPXTnY5XNXPFGpDN Xtmfl3tx12PxVMEhawcB2g2HrGngZPM1K6RIzaMJoRw9NTXvHOsnfSZaLvkN2qKtipSy adbBDRDfFZOnqEEyBVtDBGPgfBGzSbXR9+qOB/jFYMZUXC+S8DEd/KBi5BPf3VOiOskD p/N+ecU6+bYsaV03D/RJG83Ug1jggXD+IvdKaLibe5JJpeoDZmBhXVLhR0+wFl7I94i3 MI9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=0s8NvcHD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id x189-20020a6386c6000000b005ac3b982d1asi701930pgd.358.2023.10.17.15.15.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 15:15:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=0s8NvcHD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 969D6806D833; Tue, 17 Oct 2023 15:15:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344177AbjJQWO4 (ORCPT + 99 others); Tue, 17 Oct 2023 18:14:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234693AbjJQWOy (ORCPT ); Tue, 17 Oct 2023 18:14:54 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3B53ED for ; Tue, 17 Oct 2023 15:14:52 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-9a6190af24aso1018362366b.0 for ; Tue, 17 Oct 2023 15:14:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1697580891; x=1698185691; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=22eF3O2TV81lbDaOLeeipX0IchRIXInorQwN4073ktY=; b=0s8NvcHDiEPrcGGGB1Nwc+G1nxgCKQbfc03sGQIwdFHF4AODiMuGrRpl8xGE6iI+T2 nlpSB/JUxpomK0w+5pb2u1WfVinN2CS308zr/0TvkxTrUaQHpJx8VTjcUfWEYK+zV+VC 4571tOOfxlOe1FKnWo9ZZXZ1ZD05U5SmzwI3nzcTzXPm0qeqJCXelNcUQNSDAlZcjOjD kxhi4qWYsBqP1ACL3uyxnPT9K9h9ynCilZrxsezC6JMalwhElPzP1v26Ky9NLGHznM6y c5MUO4/C74Uqy8x+E/nVDTVANs4dg4lrV5Swzkgh6qu67I8OiQkL7x1WYsaOLQg9hbfy jCwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697580891; x=1698185691; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=22eF3O2TV81lbDaOLeeipX0IchRIXInorQwN4073ktY=; b=Wl3hoQ3GExsy/fc0FWCOreauTKMk0WYoESBw2sXJ1eD+VfJW0t8oSurYXca2raQf2b bcZiTOeYmaPKxUMxOhUAQ2bve7xgQ6nX4e7rHYOC9raeC4sh00o/YN9r0BlExznQMY2R SF34mtQy0FdlTz/4T3nS8EKzs4MjbyJQcSb3QuO586XnI4fv7ELmDLukpxPTFdoADw8p CpQqp59+W8cYwhYkRxPNykOtRfh06StNA4B9+l0pGTtBLvwCwpyhX0YtuAGBxvPPWGo4 FUR57SMgu+XLb7yFHUc6c8bgShTAr7deNOyLNkHJRCKh7vAaniiRAhWxKz0HIqBxdn49 UB1A== X-Gm-Message-State: AOJu0YwEe5kC3VtltrTbNHCmpN351xCGGVUOmcpmte+VXJZV1GSy457f NOBzl6uYBchd0A3foo9A1yyOKMyTOE+20aN7AmxJ6w== X-Received: by 2002:a17:907:2688:b0:9c5:2806:72e2 with SMTP id bn8-20020a170907268800b009c5280672e2mr2457377ejc.34.1697580891048; Tue, 17 Oct 2023 15:14:51 -0700 (PDT) MIME-Version: 1.0 References: <20231003194547.2237424-1-axelrasmussen@google.com> <20231003194547.2237424-5-axelrasmussen@google.com> In-Reply-To: From: Axel Rasmussen Date: Tue, 17 Oct 2023 15:14:13 -0700 Message-ID: Subject: Re: [PATCH v2 4/5] ioctl_userfaultfd.2: fix / update UFFDIO_REGISTER error code list To: Alejandro Colomar Cc: Guillem Jover , Peter Xu , linux-man@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mike Rapoport Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 morse.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 (morse.vger.email [0.0.0.0]); Tue, 17 Oct 2023 15:15:53 -0700 (PDT) On Tue, Oct 17, 2023 at 2:42=E2=80=AFPM Alejandro Colomar = wrote: > > Hi Guillem! > > On Tue, Oct 17, 2023 at 11:23:10PM +0200, Guillem Jover wrote: > > Hi! > > > > 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. > > > > > > 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 > > > > I think you meant =C2=AB.RI=C2=BB here? > > Yup! Good catch. Thanks, I'll apply this change in a v3. > > Cheers, > Alex > > > > > > 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. > > > > > > > Regards, > > Guillem Regarding the -EBUSY ordering, I did it this way because that's the order in which the conditions are checked in the code. But, I agree that isn't very obvious / useful to any reader of the man page :) and alphabetical order is preferred. I'll correct that in v3. > > -- >