+4
−2
Loading
mainline inclusion from mainline-v5.19-rc1 commit 8ed00760 category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IBP415 CVE: CVE-2022-49651 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8ed00760203d8018bee042fbfe8e076579be2c2b -------------------------------- Currently, cleanup_srcu_struct() checks for a grace period in progress, but it does not check for a grace period that has not yet started but which might start at any time. Such a situation could result in a use-after-free bug, so this commit adds a check for a grace period that is needed but not yet started to cleanup_srcu_struct(). Signed-off-by:Paul E. McKenney <paulmck@kernel.org> Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com>