Files
linux/mm
zhong jiang d9bb247386 memfd: Use radix_tree_deref_slot_protected to avoid the warning.
The commit 3ce6b467b9 ("memfd: Fix locking when tagging pins")
introduces the following warning messages.

*WARNING: suspicious RCU usage in memfd_wait_for_pins*

It is because we still use radix_tree_deref_slot without read_rcu_lock.
We should use radix_tree_deref_slot_protected instead in the case.

Cc: stable@vger.kernel.org
Fixes: 3ce6b467b9 ("memfd: Fix locking when tagging pins")
Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-15 15:11:02 +09:00
..
2023-05-15 11:34:46 +09:00
2018-04-17 17:58:08 -08:00
2017-08-24 17:12:19 -07:00
2018-04-17 17:58:08 -08:00
2023-05-15 14:47:39 +09:00