[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250410094847.GAZ_eT__ab_VRmb8uk@fat_crate.local>
Date: Thu, 10 Apr 2025 11:48:47 +0200
From: Borislav Petkov <bp@...en8.de>
To: Juergen Gross <jgross@...e.com>
Cc: linux-kernel@...r.kernel.org, x86@...nel.org,
Boris Ostrovsky <boris.ostrovsky@...cle.com>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
Dave Hansen <dave.hansen@...ux.intel.com>,
"H. Peter Anvin" <hpa@...or.com>, xen-devel@...ts.xenproject.org
Subject: Re: [PATCH] xen: fix multicall debug feature
On Thu, Mar 27, 2025 at 08:06:02PM +0100, Juergen Gross wrote:
> Initializing a percpu variable with the address of a struct tagged as
> .initdata is breaking the build with CONFIG_SECTION_MISMATCH_WARN_ONLY
> not set to "y".
>
> Fix that by using an access function instead returning the .initdata
> struct address if the percpu space of the struct hasn't been
> allocated yet.
>
> Fixes: 368990a7fe30 ("xen: fix multicall debug data referencing")
> Reported-by: Borislav Petkov <bp@...en8.de>
> Signed-off-by: Juergen Gross <jgross@...e.com>
> ---
> arch/x86/xen/multicalls.c | 26 ++++++++++++++------------
> arch/x86/xen/smp_pv.c | 1 -
> arch/x86/xen/xen-ops.h | 3 ---
> 3 files changed, 14 insertions(+), 16 deletions(-)
Looks good, doesn't fire here anymore.
Acked-by: Borislav Petkov (AMD) <bp@...en8.de>
Tested-by: Borislav Petkov (AMD) <bp@...en8.de>
Thx!
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
Powered by blists - more mailing lists