Commit f806de8
maple_tree: remove rcu_read_lock() from mt_validate()
The write lock should be held when validating the tree to avoid updates
racing with checks. Holding the rcu read lock during a large tree
validation may also cause a prolonged rcu read window and "rcu_preempt
detected stalls" warnings.
Link: https://lore.kernel.org/all/0000000000001d12d4062005aea1@google.com/
Link: https://lkml.kernel.org/r/20240820175417.2782532-1-Liam.Howlett@oracle.com
Fixes: 54a611b ("Maple Tree: add new data structure")
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Reported-by: syzbot+036af2f0c7338a33b0cd@syzkaller.appspotmail.com
Cc: Hillf Danton <hdanton@sina.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: "Paul E. McKenney" <paulmck@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>1 parent 6dacd79 commit f806de8
1 file changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7566 | 7566 | | |
7567 | 7567 | | |
7568 | 7568 | | |
| 7569 | + | |
7569 | 7570 | | |
7570 | 7571 | | |
7571 | 7572 | | |
7572 | 7573 | | |
7573 | | - | |
7574 | 7574 | | |
7575 | 7575 | | |
7576 | | - | |
| 7576 | + | |
7577 | 7577 | | |
7578 | 7578 | | |
7579 | 7579 | | |
| |||
7594 | 7594 | | |
7595 | 7595 | | |
7596 | 7596 | | |
7597 | | - | |
7598 | | - | |
7599 | | - | |
7600 | 7597 | | |
7601 | 7598 | | |
7602 | 7599 | | |
| |||
0 commit comments