lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 18 Dec 2019 21:13:47 -0800
From:   John Hubbard <jhubbard@...dia.com>
To:     Michael Kerrisk <mtk.manpages@...il.com>
CC:     <linux-man@...r.kernel.org>,
        Andrew Morton <akpm@...ux-foundation.org>,
        Christopher Lameter <cl@...ux.com>,
        <linux-api@...r.kernel.org>, LKML <linux-kernel@...r.kernel.org>,
        <linux-mm@...ck.org>, John Hubbard <jhubbard@...dia.com>,
        Michal Hocko <mhocko@...e.com>,
        Brice Goglin <Brice.Goglin@...ia.fr>,
        Yang Shi <yang.shi@...ux.alibaba.com>
Subject: [PATCH] move_pages.2: remove ENOENT from the list of possible return values

Linux kernel commit e78bbfa82624 ("mm: stop returning -ENOENT from
sys_move_pages() if nothing got migrated") had the effect of *never*
returning -ENOENT, in any situation. So we need to update the man page
to reflect that ENOENT is not a possible return value.

Acked-by: Michal Hocko <mhocko@...e.com>
Cc: Brice Goglin <Brice.Goglin@...ia.fr>
Cc: Yang Shi <yang.shi@...ux.alibaba.com>
Cc: Christoph Lameter <cl@...ux.com>
Signed-off-by: John Hubbard <jhubbard@...dia.com>
---

Hi,

This fix for the man page was ACK'd by Michal, here:

https://lore.kernel.org/r/20191218101711.GB21485@dhcp22.suse.cz

thanks,
John Hubbard
NVIDIA

 man2/move_pages.2 | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/man2/move_pages.2 b/man2/move_pages.2
index 2d96468fa..1bf1053f2 100644
--- a/man2/move_pages.2
+++ b/man2/move_pages.2
@@ -191,12 +191,6 @@ was specified or an attempt was made to migrate pages of a kernel thread.
 .B ENODEV
 One of the target nodes is not online.
 .TP
-.B ENOENT
-No pages were found that require moving.
-All pages are either already
-on the target node, not present, had an invalid address or could not be
-moved because they were mapped by multiple processes.
-.TP
 .B EPERM
 The caller specified
 .B MPOL_MF_MOVE_ALL
-- 
2.24.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ