В ядре Linux была устранена следующая уязвимость: srcu: Add list_splice_init_srcu() list_splice_init_rcu() делает список пустым для новых читателей, ждет текущих с заданной функцией синхронизации и только после этого связывает записи в новый список. Функция синхронизации не принимает никаких аргументов, поэтому она может ждать читателей RCU, но не читателей srcu_struct. Пропуск synchronize_rcu() для списка, прочитанного под SRCU, все еще строится, но оставляет читателей SRCU в записях, в то время как следующий указатель последнего переносится в новую заголовок списка. nvme_remove_namespaces() делает это сегодня.
Добавьте list_splice_init_srcu(), который вместо этого ждет читателей данного srcu_struct.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: srcu: Add list_splice_init_srcu() list_splice_init_rcu() makes a list look empty to new readers, waits for the current ones with the given sync function, and only then links the entries into the new list. The sync function takes no argument, so it can wait for RCU readers but not for the readers of an srcu_struct. Passing synchronize_rcu() for a list read under SRCU still builds, but leaves SRCU readers on the entries while the last one's next pointer is moved onto the new list head. nvme_remove_namespaces() does this today. Add list_splice_init_srcu(), which waits for the readers of the given srcu_struct instead.