From patchwork Tue Aug 13 09:52:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 818814 Delivered-To: patch@linaro.org Received: by 2002:adf:cd01:0:b0:367:895a:4699 with SMTP id w1csp193379wrm; Tue, 13 Aug 2024 02:53:12 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXF6E52dpv6aHGpBIJEsKbu4as6jiQdpMFGqQvfZBsykyASRvnCjK0P8HFKrmbdMr+jJnkHt9qQ4yhvTGMN0nRT X-Google-Smtp-Source: AGHT+IG+ExP7Nw3byNNAJCAOstzarmQVodNBh0yvNMuf55mY0PwktyheBQNU7R3UuS8fSbO1BUYM X-Received: by 2002:a05:6214:3985:b0:6b7:42ab:f7e0 with SMTP id 6a1803df08f44-6bf50c1fd41mr46390716d6.19.1723542792597; Tue, 13 Aug 2024 02:53:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1723542792; cv=none; d=google.com; s=arc-20160816; b=RjdUTRa1nxL06EB8T99rg9cJ69Yox83buJY3Ed4izqwyW3UWgPv2FzttRGhwmU7t5Y KN/ourl5pV3qhriodMq+Juk86vvoMw2wTmw3BIl0psYlPUGp4hNjFSu364lh/NRFJ3S5 xowe5FRth6QWsSBRVfSZk+NMkm75EenOJp7U110xNdmLMf4IvVV7a29rqRmAhZxpKLXk 9ENwqAGDeGlQc+MKlHyZ5jODpUAPEW998PqO862EzRVGQu/w7L0mqvXCusD94kiVuZgW W9vVkgKYYG7ESCShoZlwmUYnhiNx8nj0dytZeYHsXEy/to07OrdsS4bJTAPuj79Un9vX 4rKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=HKddCzONxp6Ew5E7TLBEDVzECHDPn4E2wda03pMwp0U=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=cXC3CDHn9tzM1RMt6Un5z6q35fg6EcPO2HBtGC710UQUXfr1pRg99mV2NaXn9zvsq4 Qkr8M7M4uDxTUOBzFtJP71+eF2MPY35u0bCZDxzrnt83rvT+TCJ/Nzm79+Wizf4e+VvZ n6r5E/D4dQ20rzjZev9drBDYe4pLVag5l2hMtmjNEWPY74ls0H7mS2lTl+g2pDZwB6ce pBX0WW2GlOKX7uPW5EwBgSmglXzGUg0EsRWtKY+dSa+N6a2zUODKd27T9JMXJhA+YQnx rvA4fjtk1D80IQzHyDhy99a8UhQibUd9Y8qtxfyF/ieaC6qdKZbW6T43uoTsFM7oNnLO MLow==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GhL0UL69; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6bd82c88d8bsi78462156d6.170.2024.08.13.02.53.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Aug 2024 02:53:12 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GhL0UL69; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sdoCb-00053x-O5; Tue, 13 Aug 2024 05:52:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sdoCZ-00052f-MZ for qemu-devel@nongnu.org; Tue, 13 Aug 2024 05:52:27 -0400 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sdoCX-0001yA-Ua for qemu-devel@nongnu.org; Tue, 13 Aug 2024 05:52:27 -0400 Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-7a1be7b5d70so3751111a12.0 for ; Tue, 13 Aug 2024 02:52:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723542744; x=1724147544; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=HKddCzONxp6Ew5E7TLBEDVzECHDPn4E2wda03pMwp0U=; b=GhL0UL69wUXPYddPiigHiDDi0VM9okO52Ms3cg0H/5hidwdvSvyjESTsFFUp5DerVc CB9tPAtxRSYWzxWOslCLnMf4W7zvXCLqHng6M41++g9s65FvKW/Ub+1WXAhGRYV+DCID NWZWLj64YGPGXbnpJzVXG7zRcijigQfjLlqTAaiMJZ9SmcLGIdDjBH0JI28O8aWYQLyy ysVKD1I2DBuUmTmRlnwOuPnQvPsjVm94wXwllA8Z+XjtAmFryomLyaQAPQ5ECSy+Znw0 AH3iOJS9HNAaZZVDBSCpgcUFOiHjw2dOehSUQ4y+Ae83T7eZgVtNbOkIr4QWnIeOAmmy d5Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723542744; x=1724147544; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HKddCzONxp6Ew5E7TLBEDVzECHDPn4E2wda03pMwp0U=; b=iObO938sksQQXAWdxBKSg6sWcNLyBYFLqNtyXJwKb/hf0rwlf/aHfdzHwrCIyGBrFW qVgc4UAevDRSsZkmAeBExknMUQsoXZMM8euvTLJR9eykv+bTrOCb9rqlYMCiR9mS7SYX AZ1BeRUsl7dAcmS1uMYeHsPjtcfPNfOoXOK7TmfhK7/gsG4CieXXq0wuOY0Z6wwBlFCb K5SLRTBkHbbOCGO1bSnx/ilX+4zkcV4ktDRRm+gTzMS9s97pO63suoM3a6dGkmadZhRV 87jT5aQHLy1y5cggCuOCjncfDgC7EUjvkyrybwyHvgj4T58JS2QJ2xxAPRnAD3Jbp+h5 pFAw== X-Gm-Message-State: AOJu0YwcZsqR8GY9Jv7NnTyVAJuiG9OEbRhW7yx+S76KOv7A2CWY234G qGdYLW9zlYRRulldFQ3X6j7IZo+tpidL+1JwpHdgzU75/8BFnxL/D3HU8m9aUwkr9Gxaj4NJvyK ov3g= X-Received: by 2002:a17:90a:1b8a:b0:2cb:58e1:abc8 with SMTP id 98e67ed59e1d1-2d3942cdf1fmr3443920a91.21.1723542743971; Tue, 13 Aug 2024 02:52:23 -0700 (PDT) Received: from stoup.. ([203.30.4.111]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2d1c9ca796fsm10851876a91.30.2024.08.13.02.52.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Aug 2024 02:52:23 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH for-9.2? 0/2] meson: Rationalize sanitizer configuration Date: Tue, 13 Aug 2024 19:52:14 +1000 Message-ID: <20240813095216.306555-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::52a; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org In the CI that we actually run (x86) we don't want to use ASan, only UBSan, we jump through --extra-cflags hoops to make that happen, and we fail to disable function sanitizer during normal configuration. In the CI that we don't run, we enable ASan and fail to disable function sanitizer. So its a bit lucky that don't run it. Split the --enable-santizers config option, and move stuff back to meson.build from .gitlab-ci.d. r~ Richard Henderson (2): meson: Split --enable-sanitizers to --enable-{asan,ubsan} meson: Move -fsanitize=undefined into normal configuraton tests/qtest/fdc-test.c | 2 +- .gitlab-ci.d/buildtest.yml | 10 +++---- .../custom-runners/ubuntu-22.04-aarch64.yml | 2 +- .../custom-runners/ubuntu-22.04-s390x.yml | 2 +- docs/devel/fuzzing.rst | 4 +-- meson.build | 26 ++++++++++++++----- meson_options.txt | 6 +++-- scripts/meson-buildoptions.sh | 9 ++++--- tests/docker/test-debug | 4 +-- 9 files changed, 41 insertions(+), 24 deletions(-) Reviewed-by: Thomas Huth