The patch titled Subject: ipc/sem.c: convert to use built-in RCU list checking has been added to the -mm tree. Its filename is ipc-sem-convert-to-use-built-in-rcu-list-checking.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/ipc-sem-convert-to-use-built-in-rcu-list-checking.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/ipc-sem-convert-to-use-built-in-rcu-list-checking.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: "Joel Fernandes (Google)" <joel@xxxxxxxxxxxxxxxxx> Subject: ipc/sem.c: convert to use built-in RCU list checking CONFIG_PROVE_RCU_LIST requires list_for_each_entry_rcu() to pass a lockdep expression if using srcu or locking for protection. It can only check regular RCU protection, all other protection needs to be passed as lockdep expression. Link: http://lkml.kernel.org/r/20190830231817.76862-2-joel@xxxxxxxxxxxxxxxxx Signed-off-by: Joel Fernandes (Google) <joel@xxxxxxxxxxxxxxxxx> Cc: Arnd Bergmann <arnd@xxxxxxxx> Cc: Bjorn Helgaas <bhelgaas@xxxxxxxxxx> Cc: Catalin Marinas <catalin.marinas@xxxxxxx> Cc: "Gustavo A. R. Silva" <gustavo@xxxxxxxxxxxxxx> Cc: Jonathan Derrick <jonathan.derrick@xxxxxxxxx> Cc: Keith Busch <keith.busch@xxxxxxxxx> Cc: Lorenzo Pieralisi <lorenzo.pieralisi@xxxxxxx> Cc: "Paul E. McKenney" <paulmck@xxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- ipc/sem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/ipc/sem.c~ipc-sem-convert-to-use-built-in-rcu-list-checking +++ a/ipc/sem.c @@ -1852,7 +1852,8 @@ static struct sem_undo *__lookup_undo(st { struct sem_undo *un; - list_for_each_entry_rcu(un, &ulp->list_proc, list_proc) { + list_for_each_entry_rcu(un, &ulp->list_proc, list_proc, + spin_is_locked(&ulp->lock)) { if (un->semid == semid) return un; } _ Patches currently in -mm which might be from joel@xxxxxxxxxxxxxxxxx are ipc-sem-convert-to-use-built-in-rcu-list-checking.patch