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]
Message-ID: <20241018011711.183642-1-jhubbard@nvidia.com>
Date: Thu, 17 Oct 2024 18:17:09 -0700
From: John Hubbard <jhubbard@...dia.com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: LKML <linux-kernel@...r.kernel.org>,
	linux-mm@...ck.org,
	John Hubbard <jhubbard@...dia.com>,
	"Matthew Wilcox (Oracle)" <willy@...radead.org>,
	Alistair Popple <apopple@...dia.com>,
	Arnd Bergmann <arnd@...db.de>,
	Christoph Hellwig <hch@...radead.org>,
	Daniel Vetter <daniel.vetter@...ll.ch>,
	Dave Airlie <airlied@...hat.com>,
	David Hildenbrand <david@...hat.com>,
	Dongwon Kim <dongwon.kim@...el.com>,
	Gerd Hoffmann <kraxel@...hat.com>,
	Hugh Dickins <hughd@...gle.com>,
	Jason Gunthorpe <jgg@...dia.com>,
	Junxiao Chang <junxiao.chang@...el.com>,
	Mike Kravetz <mike.kravetz@...cle.com>,
	Minchan Kim <minchan@...nel.org>,
	Oscar Salvador <osalvador@...e.de>,
	Pasha Tatashin <pasha.tatashin@...een.com>,
	Peter Xu <peterx@...hat.com>,
	Shigeru Yoshida <syoshida@...hat.com>,
	Vivek Kasireddy <vivek.kasireddy@...el.com>
Subject: [PATCH v2 0/2] mm/gup: stop leaking pinned pages in low memory conditions

Changes since v1 [1]:

1) Thanks to David Hildenbrand for this part: added a second patch to
fix the same issue (incomplete error handling for the return value from
check_and_migrate_movable_folios()), but this time in
memfd_pin_folios().

Please note that I am not set up to test memfd things, so at this point
all I can claim is that patch #2 doesn't prevent my test machine from
booting. :)

2) Fixed a typo in the comment, in the first patch.

3) Added review and ack tags.

[1] https://lore.kernel.org/20241016202242.456953-1-jhubbard@nvidia.com

Cc: "Matthew Wilcox (Oracle)" <willy@...radead.org>
Cc: Alistair Popple <apopple@...dia.com>
Cc: Arnd Bergmann <arnd@...db.de>
Cc: Christoph Hellwig <hch@...radead.org>
Cc: Daniel Vetter <daniel.vetter@...ll.ch>
Cc: Dave Airlie <airlied@...hat.com>
Cc: David Hildenbrand <david@...hat.com>
Cc: Dongwon Kim <dongwon.kim@...el.com>
Cc: Gerd Hoffmann <kraxel@...hat.com>
Cc: Hugh Dickins <hughd@...gle.com>
Cc: Jason Gunthorpe <jgg@...dia.com>
Cc: Junxiao Chang <junxiao.chang@...el.com>
Cc: Mike Kravetz <mike.kravetz@...cle.com>
Cc: Minchan Kim <minchan@...nel.org>
Cc: Oscar Salvador <osalvador@...e.de>
Cc: Pasha Tatashin <pasha.tatashin@...een.com>
Cc: Peter Xu <peterx@...hat.com>
Cc: Shigeru Yoshida <syoshida@...hat.com>
Cc: Vivek Kasireddy <vivek.kasireddy@...el.com>

John Hubbard (2):
  mm/gup: stop leaking pinned pages in low memory conditions
  mm/gup: memfd: stop leaking pinned pages in low memory conditions

 mm/gup.c | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)


base-commit: 274995ffe748bbee39f1ca65c6a31a1800140b27
-- 
2.47.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ