lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <56b9d000-8743-52cb-4f10-4d3fa2b30f29@redhat.com>
Date:   Mon, 6 Dec 2021 07:55:18 +0100
From:   Paolo Bonzini <pbonzini@...hat.com>
To:     kernel test robot <oliver.sang@...el.com>,
        David Matlack <dmatlack@...gle.com>
Cc:     0day robot <lkp@...el.com>, LKML <linux-kernel@...r.kernel.org>,
        lkp@...ts.01.org, kvm@...r.kernel.org,
        Ben Gardon <bgardon@...gle.com>,
        Joerg Roedel <joro@...tes.org>,
        Jim Mattson <jmattson@...gle.com>,
        Wanpeng Li <wanpengli@...cent.com>,
        Vitaly Kuznetsov <vkuznets@...hat.com>,
        Sean Christopherson <seanjc@...gle.com>,
        Janis Schoetterl-Glausch <scgl@...ux.vnet.ibm.com>,
        Junaid Shahid <junaids@...gle.com>,
        Oliver Upton <oupton@...gle.com>,
        Harish Barathvajasankar <hbarath@...gle.com>,
        Peter Xu <peterx@...hat.com>, Peter Shier <pshier@...gle.com>
Subject: Re: [KVM] d3750a0923:
 WARNING:possible_circular_locking_dependency_detected

On 12/5/21 14:30, kernel test robot wrote:
>
> Chain exists of:
>   fs_reclaim --> mmu_notifier_invalidate_range_start --> &(kvm)->mmu_lock
>
>  Possible unsafe locking scenario:
>
>        CPU0                    CPU1
>        ----                    ----
>   lock(&(kvm)->mmu_lock);
>                                lock(mmu_notifier_invalidate_range_start);
>                                lock(&(kvm)->mmu_lock);
>   lock(fs_reclaim);
>

David, this is yours; basically, kvm_mmu_topup_memory_cache must be 
called outside the mmu_lock.

Paolo

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ