From nobody Mon Mar 2 08:51:01 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1772200740; cv=none; d=zohomail.com; s=zohoarc; b=f+pUsRTZo3eTSFW5wjSrGp39jdRLI+OkTiiPILz7esGsu00yeEPRgQC1rLQRhgcaH7AyfIFzGTcf9gh6YB6JqMeo1xow8BoIOzw1LVUWFqYrYmsvobbmgFcu8abLf/bfIQkP2iMjOf43Y4hUyjjiP1EPvoc+tSEbVNy9sKot4+o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1772200740; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=6roZ6KUka4AvFndTl3oMOQCvPictd311jnL9XOZjvFc=; b=i4zYe5Mr4scGWqzjKxqWhGn3eBDn/uc2pQKwMF/Tecl9kpCUwK76wlgnDLQPHlT9RYA9u+/qPJ7jrCQ5qdQL9sSJD89UwspZYjNHuli8eMp8aJ1/rRk77U4OJeNy8DF9jAKWx72XKkQPrOR5NMe0zSZKxi7IZl5Ym3ViAMJMw2Q= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 177220074011974.52966679199324; Fri, 27 Feb 2026 05:59:00 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vvyLw-0006GI-IW; Fri, 27 Feb 2026 08:58:00 -0500 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 1vvyLi-0006A5-Cu for qemu-devel@nongnu.org; Fri, 27 Feb 2026 08:57:47 -0500 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vvyLd-0007UU-Qp for qemu-devel@nongnu.org; Fri, 27 Feb 2026 08:57:44 -0500 Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-43992e14638so2055633f8f.0 for ; Fri, 27 Feb 2026 05:57:40 -0800 (PST) Received: from lanath.. (wildly.archaic.org.uk. [81.2.115.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4399c75b327sm7655163f8f.20.2026.02.27.05.57.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Feb 2026 05:57:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1772200659; x=1772805459; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6roZ6KUka4AvFndTl3oMOQCvPictd311jnL9XOZjvFc=; b=K9jQcCV07bVKJVzYWpqbTYkyb2YFtfVhaN1s24vFb+9kQmzWbKMiCpLfYRonhh1SXC mV4R9F4dOMUX15HoLnxFaD4ngphO1o1+uaLZWWbeVIT+Omjz3MPLVbHACk7Q6p1UDp50 fcTDLbgLRryHGF6JPw1l+gmo8FrjOqGyFO2d5Nhg+Mv01UXRPjCQeArQ50tjKD/v2hEs IRDMWGGvzuXCmu31XL9rWJsffiEZx8O1itZTRl1gYj2BBgyjR88IEO48BvK7cR+jto/d 6jYNOD+uMV+zRJoNpzdP4eGuf2jvlCSxEG/5nOUdFSoLHU3Q5KuhfkxlNoCs2OoJfRvL Wumw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772200659; x=1772805459; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=6roZ6KUka4AvFndTl3oMOQCvPictd311jnL9XOZjvFc=; b=DUg5SXuvn5Q7aC/FaobXns7JZKsBdWSH96NzJguW7j20cuMbbSoAmodGn4PsrGEpYk A7+ywU28Qaaj4kXPrLFVNtmLKY2Wtde4HxeXsR/ePOCX9u+g3wY3uBemVeyIgvo0ud+i LsgeZtHwG7N53Jdxctzr0sOSAjJ2M6jBGXXtI5O7kzOkRoQpqn6jrJGblP8ZK/2sSucH iHRD2HT3+SGOQ0Pw67yrE55laE9md8GoniajSTqNQ//r1MhuVekafkSojUeu7OMRFEN3 12azX1BeDUq4kJee8/lRJoeijxHe5PGQ3jtTNSr/3AXtLPmbcqdTaIF3LLKz4ezodWWD 2vOA== X-Forwarded-Encrypted: i=1; AJvYcCVoOyajTZIxGngNGNsbPfDOxxgoNSJ6mZ8E8JG3TaFseBulKv4Lq/IAlqJS7aDJTMMWbwn8ElahXvIe@nongnu.org X-Gm-Message-State: AOJu0YxQmRLTeYoEGDiW7sCcJP5/kS57KTpZaokHSnKk05TSWGvS34Dd TB0YuvuFS/Y/uL64/pmITMoPkYHMB3R6yXhr+HNw9ZTrMwnoBNUU0BFJssT1M0lFVpE= X-Gm-Gg: ATEYQzy/yspOGsNLR5V+TMi/sRAizthzlDRh/6aNOLifoEc+VbyTfSlJkfAAt56VV/K WEi5Xgqcygn63G0FwKjX5WqVoiQRqb+9bHpTRUnP8mzzlrZ+hTgOK+3K2M5/pqINSuIkL5c3v+2 Dx25QGphSjVPgVq1QXpYrig0U2Inn9bQAwXLJFdtF1FKJQwM/DYlv4MJr6YcbodL43R5WA7yk8a 6Ek2vN4AQtox4dcPYgn6RCEOnyG4QBa/MueDkhy2NAGjAKx8J9rsi6f5XpwvktjGY2UaSqsCCbw dy/GYycq/64bAgJGwNG5bUhY6HUBOZRvp4ixjaGyLqXRxrA1gm4slroANQnE9NzroQSqLXXI9O1 dsDfOsy3nqBkRqCDkgzMrfRv2xNG5QQEstKnXCgo/7ya8UWrZxlpD8nWZdqsgPmvmqCW0WTKch4 7fFzv0jRAJJWpa3Uz+1q2IOYq2qWwMk2JroB0jCmoJHHkJC4hvvopgnaA1uLx737Ce8Sc0ZoqJW 7JhAkBUKB6NswUiJuzghZLrL+8N6EI= X-Received: by 2002:a05:6000:2485:b0:439:918f:f2ed with SMTP id ffacd0b85a97d-4399ddfc6a3mr5159550f8f.26.1772200659068; Fri, 27 Feb 2026 05:57:39 -0800 (PST) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Subject: [PATCH 1/4] scripts: Move lsan_suppressions.txt out of oss-fuzz subdir Date: Fri, 27 Feb 2026 13:57:33 +0000 Message-ID: <20260227135736.2280161-2-peter.maydell@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260227135736.2280161-1-peter.maydell@linaro.org> References: <20260227135736.2280161-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x42f.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 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1772200741061158500 Content-Type: text/plain; charset="utf-8" The oss-fuzz code uses an lsan_suppressions file to suppress certain leak-sanitizer cases that are known issues or not our code's bug. This is useful more widely than just for the fuzzer harness: if you want to build QEMU with the leak sanitizer enabled and run 'make check' then you will want to suppress some bogus leak reports. Move the file up a directory, and add the usual SPDX identifier and a comment describing how to use it. Signed-off-by: Peter Maydell --- .gitlab-ci.d/buildtest.yml | 2 +- scripts/lsan_suppressions.txt | 11 +++++++++++ scripts/oss-fuzz/lsan_suppressions.txt | 5 ----- 3 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 scripts/lsan_suppressions.txt delete mode 100644 scripts/oss-fuzz/lsan_suppressions.txt diff --git a/.gitlab-ci.d/buildtest.yml b/.gitlab-ci.d/buildtest.yml index 1b656b9eb0..7548057c54 100644 --- a/.gitlab-ci.d/buildtest.yml +++ b/.gitlab-ci.d/buildtest.yml @@ -626,7 +626,7 @@ build-oss-fuzz: IMAGE: fedora script: - mkdir build-oss-fuzz - - export LSAN_OPTIONS=3Dsuppressions=3Dscripts/oss-fuzz/lsan_suppressi= ons.txt + - export LSAN_OPTIONS=3Dsuppressions=3Dscripts/lsan_suppressions.txt - CC=3D"clang" CXX=3D"clang++" CFLAGS=3D"-fsanitize=3Daddress" ./scripts/oss-fuzz/build.sh - export ASAN_OPTIONS=3D"fast_unwind_on_malloc=3D0" diff --git a/scripts/lsan_suppressions.txt b/scripts/lsan_suppressions.txt new file mode 100644 index 0000000000..ffade3ba5a --- /dev/null +++ b/scripts/lsan_suppressions.txt @@ -0,0 +1,11 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + +# This is a set of suppressions for LeakSanitizer; you can use it by setti= ng +# LSAN_OPTIONS=3D"suppressions=3D/path/to/scripts/lsan_suppressions.txt" +# when running a QEMU built with the leak-sanitizer. + +# The tcmalloc on Fedora37 confuses things +leak:/lib64/libtcmalloc_minimal.so.4 + +# libxkbcommon also leaks in qemu-keymap +leak:/lib64/libxkbcommon.so.0 diff --git a/scripts/oss-fuzz/lsan_suppressions.txt b/scripts/oss-fuzz/lsan= _suppressions.txt deleted file mode 100644 index 7d90c280d0..0000000000 --- a/scripts/oss-fuzz/lsan_suppressions.txt +++ /dev/null @@ -1,5 +0,0 @@ -# The tcmalloc on Fedora37 confuses things -leak:/lib64/libtcmalloc_minimal.so.4 - -# libxkbcommon also leaks in qemu-keymap -leak:/lib64/libxkbcommon.so.0 --=20 2.43.0 From nobody Mon Mar 2 08:51:01 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1772200741; cv=none; d=zohomail.com; s=zohoarc; b=gP/JE53hCEabH8d3pwCFoAoehLxEGuD2FQmPRqpCN8MlIZCRH6WKo+wZxEJJetoSTdI1sucimLOSyVX5KVQfm+ob6GC+WjULkMWnGV0tNPZIKbQiybcK82w8dPeZus7RlNeAV9YIedFn3eYMgy/NfseiibvP/Sza3EhaRsH9Lik= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1772200741; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=0r5tVTwr3FwSzfLr0irG0lziyL9H4aagQEDitRzfyJI=; b=V2NGO9/NJA58FrzOKvKP7xieA8OxhXc+dqE9YMijuypESeErC/fn0JcIVLNlVTcxN4CERvTqJ4HBAtpQLSjwnsrIKaxt6QpaFFclxm0efCQOwtRya2bt3CjS5981CpLPiSqUTSjYX/lFo1SRAn3HlfYQ6PHF0ll5WJQAL/QVD+c= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1772200741641912.4221760221492; Fri, 27 Feb 2026 05:59:01 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vvyLu-0006Dd-5l; Fri, 27 Feb 2026 08:57:59 -0500 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 1vvyLi-0006A3-CA for qemu-devel@nongnu.org; Fri, 27 Feb 2026 08:57:47 -0500 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vvyLd-0007Ug-SL for qemu-devel@nongnu.org; Fri, 27 Feb 2026 08:57:45 -0500 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-4398dd671daso2277028f8f.0 for ; Fri, 27 Feb 2026 05:57:41 -0800 (PST) Received: from lanath.. (wildly.archaic.org.uk. [81.2.115.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4399c75b327sm7655163f8f.20.2026.02.27.05.57.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Feb 2026 05:57:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1772200660; x=1772805460; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0r5tVTwr3FwSzfLr0irG0lziyL9H4aagQEDitRzfyJI=; b=ppBmVzzM6ln8tfKsIK5LisTWB9dvW82wEIBhMaZnPP6W+9ysDRIhYuyOBJDdeL1DTY JM9f/c/OwE8h7B2AaqzolR1KbdppGz5CTiDDaOJxwXhGzE6W7NvGqNBoDo4bWLriFLGD 8v1MF+9I5x00lzPIbwFl4wbz6+2h3TM6q10Z4dksOVbkNvc+hffbwgUBEclwaYDDH1ih xAvPolO6GYMTK2Sb2FaTqQO8sTKG3u8AY/UajMVQfDRBc/Y5NcCxaHLgjbTFOzBcH7cC 3npWjioGPzjYYJ4V2p2gRJR/GUg559wbVK4/GaeDYcGNVfnbPdz3MBjvq+hJGnMNepar W8Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772200660; x=1772805460; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=0r5tVTwr3FwSzfLr0irG0lziyL9H4aagQEDitRzfyJI=; b=pEJ7EAwcjuE5iU3sMfFOSXZ69jYaIrGe50PpJlhXnX2DNWMBtxDr2UrkOpeGQ68lXp Bo/nNsQKzzJY6Erqc6vNGBr6IK6IHlcXZYc9FQWU2Cse0ZdFN+TXLtOtVlmWL3UnifOb SxxjVVavGFo1UWGiRYolRTan0tFWKKPNB5QZayn9ZC4BG6Iz66tZfvSYa36Dnp0RQKHL aIn4yWeZBDJXl3y9cAdetu96Oym9keLTklF3mljyjAhcaH/tx9tFp+rFtRFI6WbMLbt9 XwdXtY8Rn8riqE2xPXa80FPpQiuTIP9LVRiHF6YN63mG9GKs5nJqbdFUuMRCy/8xdnjg 5oxA== X-Forwarded-Encrypted: i=1; AJvYcCUJNXJLs2uv4m1S54cU6ghbYhYF9V9nNqx7D1ZQ+h80O1NngaPHOX6nv2WBRbAqkI5khj7Mt4ZSLD5h@nongnu.org X-Gm-Message-State: AOJu0YwoJG2Ke/NOeXu1Ngj7aOE39/fGNg8l3dzO/54ckFuhz1kJi9dt e3YVhFxtngNaCaMscNu3pJn/wgi3kVzPgkMCjb24jxZatLA7eWCh156gQHylc/OmOLs= X-Gm-Gg: ATEYQzxB1H7hSv5W9sHj6o3cNYzO9h+iB/EPw8jg/Fj4ln44BqkXzfSMp7V2sIze6Dv U5n57ldeHZ4JNyHtdxfUSsOWzF0vyXg2M5OOoFJl6EfmddAmGkKS/i/A6vV3ghCjDao2qbxFLvQ L+mfHgyPFoyd5qKUlD7mZDKTZyIQvwqi5irlcv1BvK7S8Fs387FqYXGff0l8q8Txhk32zKuTK4+ 4SPsq48Y1R262QWkIK3uCFUSDast0L0RDOev0ue3N0wa0nBFaZNDfGqdluqAMvO9yWuP68yVlIf 3mI7eOBEPMbwdZhk/gwsRGwAUkPyy2GhRrZ6nE3EeBkFGFduZmrYtFLaqITKFv2HS5FST1ADafM 068XhIBdY8oASUoh+X47HHya8ps4AwePsUyGv1RRm+gjtaVqebWhGBMI78v+QGUocKTJAaz3X/q cXFZolkH+VUD62uMFvDht0Jt9A/Yn0d63k98e+fC/c9bsgQf9SEfcArz9OsGgwuvko2+6eXKlmF GJbe0sEeowVxw1E9Ez7Xt+WqO88FFc= X-Received: by 2002:a05:6000:24c3:b0:439:8ddd:90be with SMTP id ffacd0b85a97d-4399de14ff7mr4836650f8f.24.1772200660100; Fri, 27 Feb 2026 05:57:40 -0800 (PST) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Subject: [PATCH 2/4] scripts/lsan_suppressions.txt: Add more leaks Date: Fri, 27 Feb 2026 13:57:34 +0000 Message-ID: <20260227135736.2280161-3-peter.maydell@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260227135736.2280161-1-peter.maydell@linaro.org> References: <20260227135736.2280161-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x431.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 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1772200742974158500 Content-Type: text/plain; charset="utf-8" Running "make check" with the clang leak sanitizer reveals some leak reports which are either not our problem or else not a leak which is worth our time to fix. Add some suppressions for these. Signed-off-by: Peter Maydell Reviewed-by: Fabiano Rosas --- scripts/lsan_suppressions.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/scripts/lsan_suppressions.txt b/scripts/lsan_suppressions.txt index ffade3ba5a..bd6ef07079 100644 --- a/scripts/lsan_suppressions.txt +++ b/scripts/lsan_suppressions.txt @@ -9,3 +9,23 @@ leak:/lib64/libtcmalloc_minimal.so.4 =20 # libxkbcommon also leaks in qemu-keymap leak:/lib64/libxkbcommon.so.0 + +# g_set_user_dirs() deliberately leaks the previous cached g_get_user_* +# values. This is documented in upstream glib's valgrind-format +# suppression file: +# https://github.com/GNOME/glib/blob/main/tools/glib.supp +# This avoids false positive leak reports for the qga-ssh-test. +leak:g_set_user_dirs + +# The walk_path() function in qos-test does free its memory, +# but something about the setup with tests run in a subprocess +# seems to confuse the sanitizer. Suppress the errors. +leak:walk_path + +# qemu_irq_intercept_in is only used by the qtest harness, and +# its API inherently involves a leak. +# While we could keep track of the old IRQ data structure +# in order to free it, it doesn't seem very important to fix +# since it is only used by the qtest test harness. +# Just ignore the leak, at least for the moment. +leak:qemu_irq_intercept_in --=20 2.43.0 From nobody Mon Mar 2 08:51:01 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1772200740; cv=none; d=zohomail.com; s=zohoarc; b=hZZM4wFE9LqSndxObAt1o8c+gxN85JXbJNYC8aJ4yaMpcP0fF6V99J5P9aJBVXaUkR5D7b5PBrrduI/bUMD88N7iWuHXxzFTljp0pWr4ScG9+XSMWvUBbQnl1wum2nT8M9R++6bbufqZEoz9faY7uFOZP6xJ27dnlnYQuLqYbQA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1772200740; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=GtW5nIwjsUl0K9zrg6YDJidQv+NEIvOZPyQaRuLPPXs=; b=D1N6h1GsHwluFtRcVF8N4HkLB9cpLbyoNntt9vXPPkpvfhdLYoPbBMBeTVWmpK5PWWBK4igsFPEvtYJGjTMA1+iEfDKCXTil30uMTUjaZV+GBsW1hGcBfsLJruNVcddioEv69p9hLhGxeVuadfMs/pclmAkPmCsxaIxfi/i6KMg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1772200740510693.4540397707779; Fri, 27 Feb 2026 05:59:00 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vvyLw-0006GK-Vm; Fri, 27 Feb 2026 08:58:01 -0500 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 1vvyLi-0006A6-DE for qemu-devel@nongnu.org; Fri, 27 Feb 2026 08:57:47 -0500 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vvyLf-0007V6-Oy for qemu-devel@nongnu.org; Fri, 27 Feb 2026 08:57:45 -0500 Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-4399dd8d7b3so646964f8f.0 for ; Fri, 27 Feb 2026 05:57:42 -0800 (PST) Received: from lanath.. (wildly.archaic.org.uk. [81.2.115.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4399c75b327sm7655163f8f.20.2026.02.27.05.57.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Feb 2026 05:57:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1772200662; x=1772805462; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GtW5nIwjsUl0K9zrg6YDJidQv+NEIvOZPyQaRuLPPXs=; b=CUYpBT98EHQF8CWI2TaqeTG53+GC2ubxAEaY0/6AATNNsVqgzGqqq+BqLK7aTuTO+0 AqtEZ/DH80pIBWIyPdyseog26n68XniEgdeQZYN8CC+vCoLSp0pNBeJk11DKYz1GvE2X Rrex1nwURAhfTv3C3C3BuDRKWc291dvA+wknlK+jgZngN4HMQhKpVI/9cC7rALnM9gTq 11uv56NqUkZjebmYfbHRw7lIcdkbcmD1rd75Bx8YCytgPvdMR2seD7ayPZNhktyUwYCn 21e78TFp5lEtmv6WsvMiatq0Vkc5rvdLvfYwL0gt8ZR4fIgpNP+Zsg/nrSoyOTW130fu pJYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772200662; x=1772805462; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=GtW5nIwjsUl0K9zrg6YDJidQv+NEIvOZPyQaRuLPPXs=; b=I3Z1ZjAuoDhKayLHZd0VNGeWGi3YeAgmHhMYtX2FK2oHWlNHVdeucv5rv1JGguHajt 6FkRAqL4909VCDU7GMvyI4gyeWfGUMAWIBMXzDU60H218GkZE6BjY2gaNoODCP+z+I+Z Tf65rWgrm8fzh3sewMUt1L2daGp9FnLusSi54GoauQs2HlV97SOcoXz5z4rO2VVZp4ZL 1PWgA0HZCQMsYhiWnDXV9PUiXK79JJcGgtr+J5pARw239HYcaWvwgfmGp1xUN+Ms82pQ HRgTLdkff2OgB7PtNz1Lj5UuTXjA2LjFg7qiDx0xR1eFWJa/AjqO5f5w/zJ4XmAsfwCI PzXw== X-Forwarded-Encrypted: i=1; AJvYcCVVsp7FXXvG1Hyg+270Or+70PdizlRB9IKYnk5tkEpso0OPOglr9VkxJMwYw+bq6taYWGIwEf+OOV8d@nongnu.org X-Gm-Message-State: AOJu0YziqRJNg7Um05WtCkJQFhF9QGZV3BqQ6AzzBG/HITc9iLn6xXpT ScMxi1uLh7U1yDqfY5n9pxShCi+zD7eG+cyrOr1NJ0bsCZGbnIjGPAei3Cl19wzYYvJfKzVk/rL 8Frdg X-Gm-Gg: ATEYQzzfcoQ9kJy5mGGHbwV9ydjNlXkwtZUz++QMO1hd4lQQt4sK8Pznvig+0ihUX55 dbWwJ8aDePVFfeSvAHE2TpnQ/ZIkMFI4tk4t0LTnZrMQBjk1LgI71MCHbmfJ+32SxDMzVgNRpUM ss2tvPQRrLD6ihiLAoekyNLo3m10OvXRAojebIB6/bDr/P2PvSj7ZvkRWCphsLKosWfCh4bRyvO UnHuv9c9dAxOJOGkEtNyvqIH50m4AygbZVuUiGQIsBEW2nMiFveB5qQckgauK5ehA1Pa89prgnp H1XW1dSbfMFouzVlhMxyyctTrTrEFNN6UwoXJbwLmSH2buX88mn3Qv4sF+upXhihtm/ICI0vBnV hQqtH8P+lrLdI2HNXYqw1h0RFIjQU0OcKId9y/PBHTnnk1jRGmVNt72Hke5Uk+zn1n8sL7bXDoq bRuAybh0evERTeEcL7UBxtfm3WuuxfhCvBaZnp4i3g86F08b7cNNwh8ISqCZpyPZ5YA3I4QsMaY m3rXHCRikrbVzCEvJQdlsDg1T3lcQw= X-Received: by 2002:a05:6000:1846:b0:430:f593:aa34 with SMTP id ffacd0b85a97d-439971f152cmr13395657f8f.17.1772200661506; Fri, 27 Feb 2026 05:57:41 -0800 (PST) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Subject: [PATCH 3/4] hw/arm/aspeed_gpio: Don't leak string in aspeed_gpio_init() Date: Fri, 27 Feb 2026 13:57:35 +0000 Message-ID: <20260227135736.2280161-4-peter.maydell@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260227135736.2280161-1-peter.maydell@linaro.org> References: <20260227135736.2280161-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x433.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 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1772200742870158500 Content-Type: text/plain; charset="utf-8" We allocate the string for the GPIO property name, but never free it. Use g_autofree to avoid this. Signed-off-by: Peter Maydell Reviewed-by: C=C3=A9dric Le Goater Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- hw/gpio/aspeed_gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/gpio/aspeed_gpio.c b/hw/gpio/aspeed_gpio.c index d9237d4360..7d0f87e90c 100644 --- a/hw/gpio/aspeed_gpio.c +++ b/hw/gpio/aspeed_gpio.c @@ -1488,7 +1488,7 @@ static void aspeed_gpio_init(Object *obj) } =20 for (int i =3D 0; i < agc->nr_gpio_sets; i++) { - char *name =3D g_strdup_printf("gpio-set[%d]", i); + g_autofree char *name =3D g_strdup_printf("gpio-set[%d]", i); object_property_add(obj, name, "uint32", aspeed_gpio_get_set, aspeed_gpio_set_set, NULL, NULL); } --=20 2.43.0 From nobody Mon Mar 2 08:51:01 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1772200760; cv=none; d=zohomail.com; s=zohoarc; b=Ubekpi2W1ru0Yh/BWZvYAVq5DypVsrZDWtBuWoUP2nd/L1Z+DrDpvOWN00SSHb9PqQNDbsO6CzpkIFNNEbso+y0v60DORgqfOkhV0FWyXRT0z1jVfKquO7pJZvM/0PEBATtqwmwS3vjbfSHTZem5BtPJ96phiDWf5xHvG6eypZU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1772200760; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=ioBLQgdNgP+ui5ljs2ltf2mT4vFgrZDYJbhZDRSubRI=; b=RGnhVYQH3Uu4gBwJD3BTLbU6WwdKsK9jobm90Ep+c67p2lia45k3aHn6HUmCxPID/CqOhnLfD8KPI/1uvevn5o0i27m9raEF4GX2h2kH8V6Szd6qdHVH5OPz0fjdydbcOblpXb7rIh+Ma1IWoaZFCv9UeL2Kzi/ZCnQ+qUy4D/A= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1772200760617911.8637349937201; Fri, 27 Feb 2026 05:59:20 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vvyLw-0006FB-12; Fri, 27 Feb 2026 08:58:00 -0500 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 1vvyLj-0006AB-K5 for qemu-devel@nongnu.org; Fri, 27 Feb 2026 08:57:47 -0500 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vvyLi-0007VN-3R for qemu-devel@nongnu.org; Fri, 27 Feb 2026 08:57:47 -0500 Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-4399851b14bso1428265f8f.1 for ; Fri, 27 Feb 2026 05:57:44 -0800 (PST) Received: from lanath.. (wildly.archaic.org.uk. [81.2.115.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4399c75b327sm7655163f8f.20.2026.02.27.05.57.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Feb 2026 05:57:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1772200662; x=1772805462; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ioBLQgdNgP+ui5ljs2ltf2mT4vFgrZDYJbhZDRSubRI=; b=lCZ3jd2hOxYCWanR1OCElmDE9MCa5jPOPaeFKwsnOU+u6dLtA+iIgXs0ricJ5CesVN XzC8KVXx508vZLtoBrpRjCEwMTDmVGxXpmrzshIFx6C99SRMpoQo+wWPfWq0blEBqWuB 9mstBWjm3cd+NCc39ibVVDUFjpUrwOJNBBoyXTu/LKjWzeu/+DMSLk0+crm41pjPeVSJ L/w3MArteP1jQ2anQQLMASqT+fI91cjKklEqkkuOhEKwXQ7L1b+6ILL6jWFrbMpna2wQ au717DbyihKD/d5Rj2B5rYoduZw0qHbHZAAUGgmZqx+0cJ2U6R4+nKMjqFtqPT2JNRZq ifww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772200662; x=1772805462; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=ioBLQgdNgP+ui5ljs2ltf2mT4vFgrZDYJbhZDRSubRI=; b=nZsNFRKU/o0ikN19/4gGJyerXSyw7/tSFcspeGZsLn8br7G7LcazcZdZmOmitmnv+T L3n1jEv+5SMAgiRmLuQ0Zjv0JHQUYNitT7aJ070TNuUvDqUUgtzqfko/ShgPywPwunAn eST7I0jFCzYOpqIIvwokt3q2hhMCLLaBAms1oDeFHyHV1XAGJQxJgJc7DcFgNQ9hnJ4z +iwYvbE64a+PsXlWKzkhkNzoahdkPVx6/mtAyGynmRpVICKueB002m9BdwkEERXR+gs1 ZQPGOKpN1HJswABAeSVL/k+8q3W2stbfh2CYkqehcxQdkSdQdwNnSRzED4lGov1laCXe b+DQ== X-Forwarded-Encrypted: i=1; AJvYcCUBfQNhNdjJ/Ks7iSb8mG21VTiihMcqNS3TXF4n57owQbhes4RWwGL0HcSM8SMXcbUmeiFJ5WLIbqi5@nongnu.org X-Gm-Message-State: AOJu0Yy8knG+GzPsNkE3ZJvcY1J4ok9RDTDkPnMca8TTKbcH3gTeAuvU yGUJDGpMRVYIZXnlUhSF08RLtDv3RR6gFqfZqgWL0wbtk1Pra1UyZQfWoQufBUI7m8o1NYU3wGs IISOp X-Gm-Gg: ATEYQzyuYiTQkl67pUuVeAbpMkUmeuYSe18hs4hrketu7N+/ZyMAvmrtfHUSvwD90Nr CHe5a1WA6FD/iRdxqIA9AP45ktPA9r5rQozhHy0/YtThQ+AxDE9BvLjp7Kc4k4SFm13dr/zOZLS 5s2YRg2J1w4wRJVOtmoxSWMGaLejCADhMtP2pNEmySlEJASiGrhQCpVQa4E2oSuORdUVDpi/gsr KCVP6OuD04yUQ8uaTgGI9yg+pp3Q+I9RYuJ9n+n/OF2B277HSPHPodnuQSMOYfyPpVChiUvhXrt gjRCmhiGzGgYyjSgn92pAeVsoOWg46h3JYRaL/f2/ah62DXU1nX3NwjRb9P6qAhvlu1wnGh7T1D 912AOwUTPqeQmE5En8CMOYER6gjDQ224Fguo9bkdBr5sAgezrHmC3EPAwyILaBucKvQep2v14V5 bGXAWS/3hqy5y+p4/W+nYiN5KYBaFnfYdtiqmw/xOr78hXkgZ/eB2iQOUB0fcUvS7CBMNQPRhiA eK1I3hAAcm/dAErtAirtAvkfaJ8Dm8YmqCM/hO2EA== X-Received: by 2002:a5d:5f52:0:b0:439:8f2b:7697 with SMTP id ffacd0b85a97d-4399ddf1324mr4712039f8f.16.1772200662552; Fri, 27 Feb 2026 05:57:42 -0800 (PST) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Subject: [PATCH 4/4] tests/qtest/iommu-smmuv3-test: Free QPCIDevice Date: Fri, 27 Feb 2026 13:57:36 +0000 Message-ID: <20260227135736.2280161-5-peter.maydell@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260227135736.2280161-1-peter.maydell@linaro.org> References: <20260227135736.2280161-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x430.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 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1772200763260158500 Content-Type: text/plain; charset="utf-8" The QPCIDevice we get via qpci_device_foreach() is allocated memory, and we need to g_free() it after use. This fixes asan leaks like this: Direct leak of 64 byte(s) in 1 object(s) allocated from: #0 0x622a5f16913d in calloc (/home/pm215/qemu/build/arm-clang/tests/qte= st/iommu-smmuv3-test+0x1d413d) (BuildId: bc598be1f4ad6d1a9a600c55aeef36108b= db6a04) #1 0x73ee41c0f771 in g_malloc0 (/lib/x86_64-linux-gnu/libglib-2.0.so.0+= 0x63771) (BuildId: 116e142b9b52c8a4dfd403e759e71ab8f95d8bb3) #2 0x622a5f1d4cec in qpci_device_find /home/pm215/qemu/build/arm-clang/= ../../tests/qtest/libqos/pci.c:82:11 #3 0x622a5f1d4cec in qpci_device_foreach /home/pm215/qemu/build/arm-cla= ng/../../tests/qtest/libqos/pci.c:34:19 #4 0x622a5f23cc73 in setup_qtest_pci_device /home/pm215/qemu/build/arm-= clang/../../tests/qtest/iommu-smmuv3-test.c:45:5 #5 0x622a5f23cc73 in run_smmuv3_translation /home/pm215/qemu/build/arm-= clang/../../tests/qtest/iommu-smmuv3-test.c:74:11 Signed-off-by: Peter Maydell Reviewed-by: Fabiano Rosas --- tests/qtest/iommu-smmuv3-test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/qtest/iommu-smmuv3-test.c b/tests/qtest/iommu-smmuv3-tes= t.c index cced49a9b6..dae9821b92 100644 --- a/tests/qtest/iommu-smmuv3-test.c +++ b/tests/qtest/iommu-smmuv3-test.c @@ -77,6 +77,7 @@ static void run_smmuv3_translation(const QSMMUTestConfig = *cfg) g_test_message("### SMMUv3 translation mode=3D%d sec_sid=3D%d ###", cfg->trans_mode, cfg->sec_sid); qsmmu_run_translation_case(qts, dev, bar, VIRT_SMMU_BASE, cfg); + g_free(dev); qtest_quit(qts); } =20 --=20 2.43.0