[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <27364a82-fa60-1454-e25d-15239905baf3@redhat.com>
Date: Wed, 22 Feb 2023 19:32:53 +0100
From: Paolo Bonzini <pbonzini@...hat.com>
To: Sean Christopherson <seanjc@...gle.com>,
Randy Dunlap <rdunlap@...radead.org>
Cc: linux-kernel@...r.kernel.org,
Vineeth Pillai <viremana@...ux.microsoft.com>,
Vitaly Kuznetsov <vkuznets@...hat.com>, kvm@...r.kernel.org
Subject: Re: [PATCH v2] KVM: SVM: hyper-v: placate modpost section mismatch
error
On 2/22/23 17:46, Sean Christopherson wrote:
> Tag svm_hv_hardware_setup() with __init to fix a modpost warning as the
> non-stub implementation accesses __initdata (svm_x86_ops), i.e. would
> generate a use-after-free if svm_hv_hardware_setup() were actually invoked
> post-init. The helper is only called from svm_hardware_setup(), which is
> also __init, i.e. other than the modpost warning, lack of __init is benign.
Done. It's caused by the compiler deciding not to inline the function,
probably.
Also Cc'ed stable.
Paolo
Powered by blists - more mailing lists