From nobody Fri Mar 14 18:06:11 2025
Delivered-To: importer@patchew.org
Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates
 192.237.175.120 as permitted sender) client-ip=192.237.175.120;
 envelope-from=xen-devel-bounces@lists.xenproject.org;
 helo=lists.xenproject.org;
Authentication-Results: mx.zohomail.com;
	dkim=pass;
	spf=pass (zohomail.com: domain of lists.xenproject.org designates
 192.237.175.120 as permitted sender)
  smtp.mailfrom=xen-devel-bounces@lists.xenproject.org;
	dmarc=pass(p=quarantine dis=none)  header.from=kernel.org
ARC-Seal: i=1; a=rsa-sha256; t=1738809471; cv=none;
	d=zohomail.com; s=zohoarc;
	b=K03iZJyG8Sq9SewM84SkoHrWXs0TvLEyw2XpWvFaqk1VWbGYwOYp0haz5ZdK/QAjD+EOIlsIomHRmRVrc6ii+Vyq/sr6yz4OPS0cHB3bzqC3hps7kMNzwnfl38ja5XVHh7pP/duHXleklR7nUWwfD+WtlUCqnMh0xymhejbjrs8=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
 s=zohoarc;
	t=1738809471;
 h=Content-Type:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To;
	bh=YDJoiDqVcD4OK9B9iXErDwALunXl71AXy8pBqMEjqec=;
	b=V5UJ1uTNgNglXCsHXFdFYChzRW0YWoDTmbQdY2SyphGAqcSOmbuGRFlavl8HxyPs2136vWCI0iTlDP1PAJ3p07ygaCHblrwE4xS8fxcuTQHUKb3UGj2P8Bg72B4rutS1yHJ/bKUPegB51iHnVE2UuRalXD74w8HWzNhqdjnBHY0=
ARC-Authentication-Results: i=1; mx.zohomail.com;
	dkim=pass;
	spf=pass (zohomail.com: domain of lists.xenproject.org designates
 192.237.175.120 as permitted sender)
  smtp.mailfrom=xen-devel-bounces@lists.xenproject.org;
	dmarc=pass header.from=<sstabellini@kernel.org> (p=quarantine dis=none)
Return-Path: <xen-devel-bounces@lists.xenproject.org>
Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120])
 by mx.zohomail.com
	with SMTPS id 1738809471306139.39262645093515;
 Wed, 5 Feb 2025 18:37:51 -0800 (PST)
Received: from list by lists.xenproject.org with
 outflank-mailman.882494.1292619 (Exim 4.92)
	(envelope-from <xen-devel-bounces@lists.xenproject.org>)
	id 1tfrlo-0008Ox-9e; Thu, 06 Feb 2025 02:37:36 +0000
Received: by outflank-mailman (output) from mailman id 882494.1292619;
 Thu, 06 Feb 2025 02:37:36 +0000
Received: from localhost ([127.0.0.1] helo=lists.xenproject.org)
	by lists.xenproject.org with esmtp (Exim 4.92)
	(envelope-from <xen-devel-bounces@lists.xenproject.org>)
	id 1tfrlo-0008Oq-77; Thu, 06 Feb 2025 02:37:36 +0000
Received: by outflank-mailman (input) for mailman id 882494;
 Thu, 06 Feb 2025 02:37:34 +0000
Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50]
 helo=se1-gles-flk1.inumbo.com)
 by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from
 <SRS0=Ypua=U5=kernel.org=sstabellini@srs-se1.protection.inumbo.net>)
 id 1tfrlm-0008Ok-Fc
 for xen-devel@lists.xenproject.org; Thu, 06 Feb 2025 02:37:34 +0000
Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91])
 by se1-gles-flk1.inumbo.com (Halon) with ESMTPS
 id 509d5fea-e433-11ef-99a4-01e77a169b0f;
 Thu, 06 Feb 2025 03:37:32 +0100 (CET)
Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58])
 by nyc.source.kernel.org (Postfix) with ESMTP id 4ACA5A43AF7;
 Thu,  6 Feb 2025 02:35:45 +0000 (UTC)
Received: by smtp.kernel.org (Postfix) with ESMTPSA id A2BEBC4CED1;
 Thu,  6 Feb 2025 02:37:29 +0000 (UTC)
X-Outflank-Mailman: Message body and most headers restored to incoming version
X-BeenThere: xen-devel@lists.xenproject.org
List-Id: Xen developer discussion <xen-devel.lists.xenproject.org>
List-Unsubscribe: <https://lists.xenproject.org/mailman/options/xen-devel>,
 <mailto:xen-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:xen-devel@lists.xenproject.org>
List-Help: <mailto:xen-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <https://lists.xenproject.org/mailman/listinfo/xen-devel>,
 <mailto:xen-devel-request@lists.xenproject.org?subject=subscribe>
Errors-To: xen-devel-bounces@lists.xenproject.org
Precedence: list
Sender: "Xen-devel" <xen-devel-bounces@lists.xenproject.org>
X-Inumbo-ID: 509d5fea-e433-11ef-99a4-01e77a169b0f
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;
	s=k20201202; t=1738809451;
	bh=z2t8/rGB5LhXZr7gUy35vvLUHzYO1nT7xCsUFMCLgGw=;
	h=Date:From:To:cc:Subject:From;
	b=Jcew2h1VwXtEMjZu+s0TAzELBKCcvc1DxC3L4Zs9lVVOvU3ZvLUcitglkFJS/TKWz
	 Cx3k85e1ORxAMCqYlk7/xRv7LuFkzdIWcQ9/ekymOh19mmqXdKVLyOnffjbi9w1Nz1
	 +JuHcJimc1o5GFqYL1BHSNI+9MGUOH42shibJMs5zuUKUeNid03z+OmLqaAI2j6pKW
	 zSiupFXHT7DYfk90HRxBYkozkB5xTctNA2dd/fcGsPTb193S70NrHj7kEW3sFSjZOP
	 27SqhkFEOUpRV2vv2PH0EvyBbX5X+QhlPj8BQL7n0dI8r5MADPpnogycZNNXV4P8Bx
	 ZA9qwis4J8TBQ==
Date: Wed, 5 Feb 2025 18:37:23 -0800 (PST)
From: Stefano Stabellini <sstabellini@kernel.org>
X-X-Sender: sstabellini@ubuntu-linux-20-04-desktop
To: xen-devel@lists.xenproject.org
cc: sstabellini@kernel.org, cardoe@cardoe.com, alejandro.vallejo@cloud.com,
    andrew.cooper3@citrix.com, anthony.perard@vates.tech,
 michal.orzel@amd.com,
    jbeulich@suse.com, julien@xen.org, roger.pau@citrix.com,
    bertrand.marquis@arm.com
Subject: [PATCH] automation: enable UBSAN for debug tests
Message-ID: 
 <alpine.DEB.2.22.394.2502051756210.619090@ubuntu-linux-20-04-desktop>
User-Agent: Alpine 2.22 (DEB 394 2020-01-19)
MIME-Version: 1.0
X-ZohoMail-DKIM: pass (identity @kernel.org)
X-ZM-MESSAGEID: 1738809474462019100
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

automation: enable UBSAN for debug tests

Enable CONFIG_UBSAN and CONFIG_UBSAN_FATAL for the ARM64 and x86_64
build jobs, with debug enabled, which are later used for Xen tests on
QEMU and/or real hardware.

Signed-off-by: Stefano Stabellini <stefano.stabellini@amd.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>, but aren't you
Reviewed-by: Michal Orzel <michal.orzel@amd.com>
---
successful pipeline: https://gitlab.com/xen-project/people/sstabellini/xen/=
-/pipelines/1657961377

diff --git a/automation/gitlab-ci/build.yaml b/automation/gitlab-ci/build.y=
aml
index bc4a8a5ad2..fb55d4ce55 100644
--- a/automation/gitlab-ci/build.yaml
+++ b/automation/gitlab-ci/build.yaml
@@ -333,6 +333,8 @@ alpine-3.18-gcc-debug:
       CONFIG_EXPERT=3Dy
       CONFIG_UNSUPPORTED=3Dy
       CONFIG_ARGO=3Dy
+      CONFIG_UBSAN=3Dy
+      CONFIG_UBSAN_FATAL=3Dy
=20
 debian-12-x86_64-gcc-debug:
   extends: .gcc-x86-64-build-debug
@@ -419,6 +421,9 @@ alpine-3.18-gcc-debug-arm64:
   extends: .gcc-arm64-build-debug
   variables:
     CONTAINER: alpine:3.18-arm64v8
+    EXTRA_XEN_CONFIG: |
+      CONFIG_UBSAN=3Dy
+      CONFIG_UBSAN_FATAL=3Dy
=20
 alpine-3.18-gcc-arm64-randconfig:
   extends: .gcc-arm64-build