[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20240104160009.GF15380@twin.jikos.cz>
Date: Thu, 4 Jan 2024 17:00:09 +0100
From: David Sterba <dsterba@...e.cz>
To: Fedor Pchelkin <pchelkin@...ras.ru>
Cc: Josef Bacik <josef@...icpanda.com>, David Sterba <dsterba@...e.com>,
Chris Mason <clm@...com>, linux-btrfs@...r.kernel.org,
linux-kernel@...r.kernel.org,
Alexey Khoroshilov <khoroshilov@...ras.ru>,
lvc-project@...uxtesting.org,
syzbot+be14ed7728594dc8bd42@...kaller.appspotmail.com,
syzbot+c563a3c79927971f950f@...kaller.appspotmail.com
Subject: Re: [PATCH] btrfs: ref-verify: free ref cache before clearing mount
opt
On Wed, Jan 03, 2024 at 01:31:27PM +0300, Fedor Pchelkin wrote:
> As clearing REF_VERIFY mount option indicates there were some errors in a
> ref-verify process, a ref cache is not relevant anymore and should be
> freed.
>
> btrfs_free_ref_cache() requires REF_VERIFY option being set so call
> it just before clearing the mount option.
>
> Found by Linux Verification Center (linuxtesting.org) with Syzkaller.
>
> Fixes: fd708b81d972 ("Btrfs: add a extent ref verify tool")
> Reported-by: syzbot+be14ed7728594dc8bd42@...kaller.appspotmail.com
> Closes: https://lore.kernel.org/lkml/000000000000e5a65c05ee832054@google.com/
> Reported-by: syzbot+c563a3c79927971f950f@...kaller.appspotmail.com
> Closes: https://lore.kernel.org/lkml/0000000000007fe09705fdc6086c@google.com/
> Signed-off-by: Fedor Pchelkin <pchelkin@...ras.ru>
Added to misc-next, thanks.
Powered by blists - more mailing lists