linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] A couple hugetlbfs fixes
@ 2019-03-08 22:48 Mike Kravetz
  2019-03-08 22:48 ` [PATCH 1/2] huegtlbfs: on restore reserve error path retain subpool reservation Mike Kravetz
  2019-03-08 22:48 ` [PATCH 2/2] hugetlb: use same fault hash key for shared and private mappings Mike Kravetz
  0 siblings, 2 replies; 4+ messages in thread
From: Mike Kravetz @ 2019-03-08 22:48 UTC (permalink / raw)
  To: linux-mm, linux-kernel, Davidlohr Bueso
  Cc: Joonsoo Kim, Michal Hocko, Naoya Horiguchi, Kirill A . Shutemov,
	Andrew Morton, Mike Kravetz

I stumbled on these two hugetlbfs issues while looking at other things:
- The 'restore reserve' functionality at page free time should not
  be adjusting subpool counts.
- A BUG can be triggered (not easily) due to temporarily mapping a
  page before doing a COW.

Both are described in detail in the commit message of the patches.
I would appreciate comments from Davidlohr Bueso as one patch is
directly related to code he added in commit 8382d914ebf7.

I did not cc stable as the first problem has been around since reserves
were added to hugetlbfs and nobody has noticed.  The second is very hard
to hit/reproduce.

Mike Kravetz (2):
  huegtlbfs: on restore reserve error path retain subpool reservation
  hugetlb: use same fault hash key for shared and private mappings

 mm/hugetlb.c | 30 ++++++++++++++++++------------
 1 file changed, 18 insertions(+), 12 deletions(-)

-- 
2.17.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-03-08 23:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-08 22:48 [PATCH 0/2] A couple hugetlbfs fixes Mike Kravetz
2019-03-08 22:48 ` [PATCH 1/2] huegtlbfs: on restore reserve error path retain subpool reservation Mike Kravetz
2019-03-08 22:48 ` [PATCH 2/2] hugetlb: use same fault hash key for shared and private mappings Mike Kravetz
2019-03-08 23:08   ` Mike Kravetz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).