]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
idr: Fix idr_get_next_ul race with idr_remove
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 2 Nov 2019 01:36:39 +0000 (21:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Dec 2019 21:33:21 +0000 (22:33 +0100)
commit870d2c39cfa66ae37ee1c60375dfc985d34449c8
treeccb7027e9cb9d0a995bf53f4517767603c5f9c61
parent4dc38650fd079a03dfe51828c7a0e7c9ca1ba776
idr: Fix idr_get_next_ul race with idr_remove

[ Upstream commit 5a74ac4c4a97bd8b7dba054304d598e2a882fea6 ]

Commit 5c089fd0c734 ("idr: Fix idr_get_next race with idr_remove")
neglected to fix idr_get_next_ul().  As far as I can tell, nobody's
actually using this interface under the RCU read lock, but fix it now
before anybody decides to use it.

Fixes: 5c089fd0c734 ("idr: Fix idr_get_next race with idr_remove")
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
lib/idr.c