linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Miko Larsson <mikoxyzzz@gmail.com>
To: David Stevens <stevensd@chromium.org>,
	linux-mm@kvack.org, Peter Xu <peterx@redhat.com>,
	Matthew Wilcox <willy@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	"Kirill A . Shutemov" <kirill@shutemov.name>,
	Yang Shi <shy828301@gmail.com>,
	David Hildenbrand <david@redhat.com>,
	Hugh Dickins <hughd@google.com>,
	 linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 0/3] mm/khugepaged: fix khugepaged+shmem races
Date: Fri, 17 Feb 2023 11:37:17 +0100	[thread overview]
Message-ID: <4a5c8cecb87735a6d697b3ff0da724cc73015669.camel@gmail.com> (raw)
In-Reply-To: <20230217085439.2826375-1-stevensd@google.com>

On Fri, 2023-02-17 at 17:54 +0900, David Stevens wrote:
> From: David Stevens <stevensd@chromium.org>
> 
> Fix two races in khugepaged+shmem that cause issues with userfaultfd
> and
> lseek, respectively.
> 
> v3 -> v4:
>  - Base changes on mm-everything (fba720cb4dc0)
>  - Add patch to refactor error handling control flow in collapse_file
>  - Rebase userfaultfd patch with no significant logic changes
>  - Different approach for fixing lseek race
> v2 -> v3:
>  - Use XA_RETRY_ENTRY to synchronize with reads from the page cache
>    under the RCU read lock in userfaultfd fix
>  - Add patch to fix lseek race
> v1 -> v2:
>  - Different approach for userfaultfd fix
> 
> David Stevens (3):
>   mm/khugepaged: refactor collapse_file control flow
>   mm/khugepaged: skip shmem with userfaultfd
>   mm/khugepaged: maintain page cache uptodate flag
> 
>  include/trace/events/huge_memory.h |   3 +-
>  mm/khugepaged.c                    | 263 ++++++++++++++++-----------
> --
>  2 files changed, 144 insertions(+), 122 deletions(-)
> 

Might want to Cc this to the stable mailing list.
-- 
~miko


  parent reply	other threads:[~2023-02-17 10:44 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-17  8:54 [PATCH v4 0/3] mm/khugepaged: fix khugepaged+shmem races David Stevens
2023-02-17  8:54 ` [PATCH v4 1/3] mm/khugepaged: refactor collapse_file control flow David Stevens
2023-02-17 23:44   ` Yang Shi
2023-02-21 21:54   ` Peter Xu
2023-02-21 22:28     ` Yang Shi
2023-02-22  4:08     ` David Stevens
2023-02-22 16:24       ` Peter Xu
2023-02-17  8:54 ` [PATCH v4 2/3] mm/khugepaged: skip shmem with userfaultfd David Stevens
2023-02-21 22:12   ` Peter Xu
2023-02-17  8:54 ` [PATCH v4 3/3] mm/khugepaged: maintain page cache uptodate flag David Stevens
2023-02-21 22:18   ` Peter Xu
2023-02-17 10:37 ` Miko Larsson [this message]
2023-03-03 15:35 ` [PATCH v4 0/3] mm/khugepaged: fix khugepaged+shmem races Peter Xu
2023-03-03 15:45   ` Zach O'Keefe
2023-03-03 18:55   ` Yang Shi
2023-03-03 22:52   ` Andrew Morton
2023-03-06  2:44     ` David Stevens
2023-03-06 21:25       ` Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4a5c8cecb87735a6d697b3ff0da724cc73015669.camel@gmail.com \
    --to=mikoxyzzz@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=david@redhat.com \
    --cc=hughd@google.com \
    --cc=kirill@shutemov.name \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=peterx@redhat.com \
    --cc=shy828301@gmail.com \
    --cc=stevensd@chromium.org \
    --cc=willy@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).