linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [GIT PULL] Rare page cache data corruption fix
@ 2022-04-22 19:45 Matthew Wilcox
  2022-04-22 20:35 ` Linus Torvalds
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Matthew Wilcox @ 2022-04-22 19:45 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel, linux-fsdevel, linux-mm

Syzbot found a nasty race between large page splitting and page lookup.
Details in the commit log, but fortunately it has a reliable reproducer.
I thought it better to send this one to you straight away.

The other commit fixes the test suite build, again.

The following changes since commit 281b9d9a4b02229b602a14f7540206b0fbe4134f:

  Merge branch 'akpm' (patches from Andrew) (2022-04-22 10:10:43 -0700)

are available in the Git repository at:

  git://git.infradead.org/users/willy/xarray.git tags/xarray-5.18a

for you to fetch changes up to 63b1898fffcd8bd81905b95104ecc52b45a97e21:

  XArray: Disallow sibling entries of nodes (2022-04-22 15:35:40 -0400)

----------------------------------------------------------------
XArray: Two fixes for 5.18

 - Fix the test suite build for kmem_cache_alloc_lru()

 - Fix a rare race between split and load

----------------------------------------------------------------
Matthew Wilcox (Oracle) (2):
      tools: Add kmem_cache_alloc_lru()
      XArray: Disallow sibling entries of nodes

 lib/xarray.c                     | 2 ++
 tools/include/linux/slab.h       | 8 +++++++-
 tools/testing/radix-tree/linux.c | 3 ++-
 3 files changed, 11 insertions(+), 2 deletions(-)



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

* Re: [GIT PULL] Rare page cache data corruption fix
  2022-04-22 19:45 [GIT PULL] Rare page cache data corruption fix Matthew Wilcox
@ 2022-04-22 20:35 ` Linus Torvalds
  2022-04-22 20:46 ` pr-tracker-bot
  2022-04-30 19:22 ` Andrew Morton
  2 siblings, 0 replies; 4+ messages in thread
From: Linus Torvalds @ 2022-04-22 20:35 UTC (permalink / raw)
  To: Matthew Wilcox; +Cc: Linux Kernel Mailing List, linux-fsdevel, Linux-MM

On Fri, Apr 22, 2022 at 12:45 PM Matthew Wilcox <willy@infradead.org> wrote:
>
> Syzbot found a nasty race between large page splitting and page lookup.
> Details in the commit log, but fortunately it has a reliable reproducer.

The commit message does mention it ("I have not added a new test for
this bug."), but I'll echo it anyway, since you say it can be reliably
reproduced - getting that repro into the testsuite would be lovely.

               Linus


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

* Re: [GIT PULL] Rare page cache data corruption fix
  2022-04-22 19:45 [GIT PULL] Rare page cache data corruption fix Matthew Wilcox
  2022-04-22 20:35 ` Linus Torvalds
@ 2022-04-22 20:46 ` pr-tracker-bot
  2022-04-30 19:22 ` Andrew Morton
  2 siblings, 0 replies; 4+ messages in thread
From: pr-tracker-bot @ 2022-04-22 20:46 UTC (permalink / raw)
  To: Matthew Wilcox; +Cc: Linus Torvalds, linux-kernel, linux-fsdevel, linux-mm

The pull request you sent on Fri, 22 Apr 2022 20:45:35 +0100:

> git://git.infradead.org/users/willy/xarray.git tags/xarray-5.18a

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/22f19f67404833c2282b7a8c2f4703d9aff8f748

Thank you!

-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html


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

* Re: [GIT PULL] Rare page cache data corruption fix
  2022-04-22 19:45 [GIT PULL] Rare page cache data corruption fix Matthew Wilcox
  2022-04-22 20:35 ` Linus Torvalds
  2022-04-22 20:46 ` pr-tracker-bot
@ 2022-04-30 19:22 ` Andrew Morton
  2 siblings, 0 replies; 4+ messages in thread
From: Andrew Morton @ 2022-04-30 19:22 UTC (permalink / raw)
  To: Matthew Wilcox; +Cc: Linus Torvalds, linux-kernel, linux-fsdevel, linux-mm

On Fri, 22 Apr 2022 20:45:35 +0100 Matthew Wilcox <willy@infradead.org> wrote:

> XArray: Two fixes for 5.18
> 
>  - Fix the test suite build for kmem_cache_alloc_lru()
> 
>  - Fix a rare race between split and load

This commit did not have a cc:stable.  It has a Fixes:, but we've asked
Greg not to backport patches which weren't explicitly cc:stable.

If you think this should be backported I suggest you let Greg know.


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

end of thread, other threads:[~2022-04-30 19:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-22 19:45 [GIT PULL] Rare page cache data corruption fix Matthew Wilcox
2022-04-22 20:35 ` Linus Torvalds
2022-04-22 20:46 ` pr-tracker-bot
2022-04-30 19:22 ` Andrew Morton

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).