Re: [PATCH 4.19 5.4 5.10 5.15 6.1 6.6] nilfs2: handle inconsistent state in nilfs_btnode_create_block()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 30, 2024 at 04:17:04AM +0900, Ryusuke Konishi wrote:
> commit 4811f7af6090e8f5a398fbdd766f903ef6c0d787 upstream.
> 
> Syzbot reported that a buffer state inconsistency was detected in
> nilfs_btnode_create_block(), triggering a kernel bug.
> 
> It is not appropriate to treat this inconsistency as a bug; it can occur
> if the argument block address (the buffer index of the newly created
> block) is a virtual block number and has been reallocated due to
> corruption of the bitmap used to manage its allocation state.
> 
> So, modify nilfs_btnode_create_block() and its callers to treat it as a
> possible filesystem error, rather than triggering a kernel bug.
> 
> Link: https://lkml.kernel.org/r/20240725052007.4562-1-konishi.ryusuke@xxxxxxxxx
> Fixes: a60be987d45d ("nilfs2: B-tree node cache")
> Signed-off-by: Ryusuke Konishi <konishi.ryusuke@xxxxxxxxx>
> Reported-by: syzbot+89cc4f2324ed37988b60@xxxxxxxxxxxxxxxxxxxxxxxxx
> Closes: https://syzkaller.appspot.com/bug?extid=89cc4f2324ed37988b60
> Cc: <stable@xxxxxxxxxxxxxxx>
> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> ---
> Please apply this patch to the stable trees indicated by the subject
> prefix instead of the failed patches or the one I asked you to drop.
> 
> This patch is tailored to take page/folio conversion into account and
> can be applied from v4.11 to v6.7.
> 
> Also, all the builds and tests I did on each stable tree passed.

Now queued up, thanks.

greg k-h




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux