Re: [PATCH 5.10 0/2] mm/truncate: fix issue in ext4_set_page_dirty()
From: Matthew Wilcox
Date: Thu Jan 11 2024 - 10:31:48 EST
On Thu, Jan 11, 2024 at 02:37:45PM +0000, Roman Smirnov wrote:
> Syzkaller reports warning in ext4_set_page_dirty() in 5.10 stable
> releases. The problem can be fixed by the following patches
> which can be cleanly applied to the 5.10 branch.
I do not understand the crash, and I do not understand why this patch
would fix it. Can you explain either?
> Found by Linux Verification Center (linuxtesting.org) with Syzkaller.
>
> Link: https://syzkaller.appspot.com/bug?extid=02f21431b65c214aa1d6
>
> Matthew Wilcox (Oracle) (2):
> mm/truncate: Inline invalidate_complete_page() into its one caller
> mm/truncate: Replace page_mapped() call in invalidate_inode_page()
>
> kernel/futex/core.c | 2 +-
> mm/truncate.c | 34 +++++++---------------------------
> 2 files changed, 8 insertions(+), 28 deletions(-)
>
> --
> 2.34.1
>