[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] xen: fix multicall debug feature


  • To: Juergen Gross <jgross@xxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, x86@xxxxxxxxxx
  • From: boris.ostrovsky@xxxxxxxxxx
  • Date: Fri, 28 Mar 2025 15:29:58 -0400
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=T+T7rFT0P2A0pGdngXZFgh1nNRBEka4ENo8I6ZS6Sww=; b=s2vclAp8SnXnfj+kdWqZu2mz2BeO+fu/K24B5eDiMigSbX+jgdpKus5nXA1YKZoaG/hv0wtctVEdSce3Me/a+UnhHWtVgTxNj7XRcIiOgzIvzyuyzDquKxET18N5xrN5M5Dj0fG43/YZYqT14N/VPBIHfXUnWUK7vjMHHBNoi5Bk92Ww81/D9vJfqIab80hGU8J9vlbkV//24GQYqT8xeLkV9bo3N5Skoq4Pq2HQyTVO/IZeL8SbBZTVUMfI5m00nJ/U1qb4KqPFy7Ct1jC/GKkQt3uXeMtyCh8+YUHOC6skGPjImVWdJ5lRWsU/nTvE8QjOQ9tABJiK/mqJ8tAZjg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=j0sarXL42yAzDqxmjnV1S2UzHEdom6bARNlixMN+jrXblDYTFnKYKYriWsUyd07IOW8Cm35tohfG090qZyd4HdRrchpvcahogyetsadzAOPyMjRSA78Ah7mzno6Kr0Jpi74nnpH5CMfkgupNwCNpqHcqNSfA+b/d1bfC+PVNeecoOHGWC20GabuK9+uFnc8SGnDai41zzb17N2MlPaYaObFhihxTS1m3+he5TXnAO8nj2cL1MjK6fhSTlW5XSYT116CxdOSugcWyV3g5ak9XGryXQzfByJiAQEmvPhNuw91ZCbB7DRPhxN5+ndjqxhdbYG1ft9vIlt1HINI/zwn0eA==
  • Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Borislav Petkov <bp@xxxxxxxxx>, Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>, "H. Peter Anvin" <hpa@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Fri, 28 Mar 2025 19:30:35 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 3/27/25 3:06 PM, 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@xxxxxxxxx>
Signed-off-by: Juergen Gross <jgross@xxxxxxxx>


Reviewed-by: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.