Maxim Levitsky 7324e2d984 KVM: x86: Fix SRCU list traversal in kvm_fire_mask_notifiers()
JIRA: https://issues.redhat.com/browse/RHEL-151869

commit b54e4707a64be93a8ab3348e32e89817229b5eaa
Author: Li RongQing <lirongqing@baidu.com>
Date:   Wed Feb 4 04:12:06 2026 -0500

    KVM: x86: Fix SRCU list traversal in kvm_fire_mask_notifiers()

    The mask_notifier_list is protected by kvm->irq_srcu, but the traversal
    in kvm_fire_mask_notifiers() incorrectly uses hlist_for_each_entry_rcu().
    This leads to lockdep warnings because the standard RCU iterator expects
    to be under rcu_read_lock(), not SRCU.

    Replace the RCU variant with hlist_for_each_entry_srcu() and provide
    the proper srcu_read_lock_held() annotation to ensure correct
    synchronization and silence lockdep.

    Signed-off-by: Li RongQing <lirongqing@baidu.com>
    Link: https://patch.msgid.link/20260204091206.2617-1-lirongqing@baidu.com
    Signed-off-by: Sean Christopherson <seanjc@google.com>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
2026-07-21 14:12:08 -04:00
2026-07-01 16:15:37 -04:00
2026-07-15 11:04:26 -04:00
2026-01-19 14:33:01 -05:00
2026-07-01 16:16:28 -04:00

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the reStructuredText markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
S
Description
No description provided
Readme
2.8 GiB
Languages
C 97.5%
Assembly 1%
Shell 0.6%
Python 0.3%
Makefile 0.3%