[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0000000000001806c20620e3205f@google.com>
Date: Fri, 30 Aug 2024 02:22:08 -0700
From: syzbot <syzbot+4704b3cc972bd76024f1@...kaller.appspotmail.com>
To: linux-kernel@...r.kernel.org
Subject: Re: [syzbot] Re: [btrfs?] kernel BUG in btrfs_get_ordered_extents_for_logging
For archival purposes, forwarding an incoming command email to
linux-kernel@...r.kernel.org.
***
Subject: Re: [btrfs?] kernel BUG in btrfs_get_ordered_extents_for_logging
Author: lizhi.xu@...driver.com
or i_mmap_lock ?
#syz test
diff --git a/fs/btrfs/ordered-data.c b/fs/btrfs/ordered-data.c
index 82a68394a89c..d0187e1fb941 100644
--- a/fs/btrfs/ordered-data.c
+++ b/fs/btrfs/ordered-data.c
@@ -1015,7 +1015,8 @@ void btrfs_get_ordered_extents_for_logging(struct btrfs_inode *inode,
{
struct rb_node *n;
- ASSERT(inode_is_locked(&inode->vfs_inode));
+ ASSERT(inode_is_locked(&inode->vfs_inode) ||
+ rwsem_is_locked(&inode->i_mmap_lock));
spin_lock_irq(&inode->ordered_tree_lock);
for (n = rb_first(&inode->ordered_tree); n; n = rb_next(n)) {
Powered by blists - more mailing lists