Message ID | 20250404032027.430575-2-pierrick.bouvier@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:6dae:0:b0:38f:210b:807b with SMTP id u14csp3585169wrs; Thu, 3 Apr 2025 20:21:39 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUp0C57IJqX7cP+tdWqEQnOuX8m5iN5BiLEQnU2hT0880TMSjt7BWh+IAOu1wD5pmGjY/4MEw==@linaro.org X-Google-Smtp-Source: AGHT+IEKwEJ08xAp9Otm4J1E1btSc4fjY+xXYr40iAsBu0G/ricG5OIESnkpXg5cm3DLHTDrCacG X-Received: by 2002:a05:620a:170a:b0:7c5:50dd:5079 with SMTP id af79cd13be357-7c774d2779cmr221825985a.1.1743736899384; Thu, 03 Apr 2025 20:21:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1743736899; cv=none; d=google.com; s=arc-20240605; b=AAYKedxkxaZxKvnAQ8dbsxNb6loUuYQSA+vY/xTNhKtdfUrHZud2k7fSboucZfGncF REmDwsZhnzVIpUpAINCg2PhmaDMfJelmvQb7fYTdFGsTI54w4kDNnHRmbOvNhO26JQMD PVLetGijylPhjg8w9uH+L0e4IL/BSJfun+4gea8iYqV7HTW7u/mWhyJmIubd+xjzpI9S iKYuBusl9yX5ULbfDYWMpqcYM508Nb6/MsqH/FGDRtyCyd3/m9W7pWsuM1frhE2Vi4NR buAaOZQL9/RB49vk+bc/XA3ClRKlSQHyWyYYXAyNI7oOSQc5tUEzWkEu7jMgJsput/Wc rFlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=JgUeTNLvHnaSYD7jxE6qYJfmnVuKsV2rhD27f5vaV0A=; fh=pzwAHymLQayTWUezbuGOjbi0uMe4R8h0t75h7FfmkAg=; b=gAdhn/bS7vQ0tgAehINFh2HUopaTZuk2TuANjq/34kA1HrHcSeZuQUe+BrU4sjHLbO OKeH2xIRU6ZUy1DUkbGGgdHYZP131wUG18LqiBpYlliE+g/c0ne8wQHZjNuOrb7WJM7m p1WUasq9GsWQE4ihA0xfCRjgXkw16y0ej37cctxYAit67MdH4EeegbaiAzZxwWjuD5KG JQo6oJTABT1GYbKORKorIScK9Ocv9yfUwZWLRw6EcOKA4b7MCnJWIRNopyJJNz2ncJdz xYWi1nM5wSm4rmu0dCG4BPlnPDysFtkfhWTYhpdmlnv5jXR1bO5cGbjlqDdtE61faAj/ TGEg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=awVr48os; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7c76ea5a143si234478185a.209.2025.04.03.20.21.39 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 Apr 2025 20:21:39 -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=awVr48os; 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 <qemu-devel-bounces@nongnu.org>) id 1u0Xbp-0004UP-PZ; Thu, 03 Apr 2025 23:20:45 -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 <pierrick.bouvier@linaro.org>) id 1u0Xbo-0004U0-9N for qemu-devel@nongnu.org; Thu, 03 Apr 2025 23:20:44 -0400 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <pierrick.bouvier@linaro.org>) id 1u0Xbm-0002Jw-Jx for qemu-devel@nongnu.org; Thu, 03 Apr 2025 23:20:44 -0400 Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-2295d78b45cso20738795ad.0 for <qemu-devel@nongnu.org>; Thu, 03 Apr 2025 20:20:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743736841; x=1744341641; 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=JgUeTNLvHnaSYD7jxE6qYJfmnVuKsV2rhD27f5vaV0A=; b=awVr48osBVHPRbjKFas9hMBAwm76r6FR0s99cZfFNMfVhFwi3pq2Vt76qrZGFTirb/ 4o0g7NPHWgRzeXnzpV7aWHCg6OsjSuryZin/xeNM3vDvWGElcayQzJWDczixFfD0p+pQ aqP96MoQCkjSJFgJUr0UxRHHlJhv8eJ/FentQ/WuDXBbobEqj4dSp5wPPJ/HN3qzZRSW aHLixALDniibFP9wn9T78DQ+1I3O2NRGb0iKt4a9KQst6tzviR/YEzEyuRS+HxcR1RgA OawnCeFEghF5T38fcd8PoOcFnWDSu+vlr2sNQ8Ju2VxB+b+ZBgmrX26w4Hv99UoUc7s/ M18A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743736841; x=1744341641; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JgUeTNLvHnaSYD7jxE6qYJfmnVuKsV2rhD27f5vaV0A=; b=l23vraEFs/jsf0EF4LUOwVjinWWqeXQgWXinc2cNrEyD/fyMDohHKAMY++epPwhtQy BzbxWmkVMLkWGJ5KVE+FoLUJr0V0qnv1nHH2+d4zqrKsvv8yKHZO7I67yi2+BJ4i4mva P4WmMLka5Hmsrb5wtWHoqleOirlRR7C/zbLsvkL1lGyMfAScNgM0K275rvXm8R2nck9T /1y9Lll/FQTi4zTNDbkk2d+OokcQUPvbfbV6fdugvgaWSoUrjR3Bfq/gYzz4ppo3Sl18 qtQY8Y54+GwncNvRem5kM7as09MR9O5l6lFeL2glBJKqdc6z7B99ivTeVXTtbt+4PuMa 5d7w== X-Gm-Message-State: AOJu0YwPV3HqCtVQH8fE1vN/Bli8Xb4xhDhNN3DnGcgAhsS1ulXYpPYC h5eKjIdc8jYNJlIMeOBCRCfHzJltWtnCtugwDNmci8T5GsRVBCBAxVLO0VZ6m1oVM+eM6fYLigK t X-Gm-Gg: ASbGncvHsfd++jp2TT2QHkw6u6pkm6fhv8EFSWdw4GMl+DSEwqigBu4HBAKLU6lUfcI r317D/zhtGv3tasNKfhxkZXSfpt1m+YG6Ti9DiQbu25RoKzJByqt2gBo+LWDnmkgESAzaixmxHM sgPoDeAslsgnSqUi/iQnd4+gZp6enQMjTfdqOKw7Sm8lPugVxb0JCSTfvsNuEomEtb0L9Z8yXfP i8K8Hb6iiDjSiZob2tKt8RngK+EE2bHJo72F9VoJOZ0oacRQqbb64HXMAL2FN+5bTZRwAEgg2d8 KMVlnhhYhAmX5dAq6duQYWz8fzjPlT8wtXpYDPJJK7lG X-Received: by 2002:a17:902:e890:b0:224:1001:677c with SMTP id d9443c01a7336-22a8a0429c5mr19544885ad.9.1743736840859; Thu, 03 Apr 2025 20:20:40 -0700 (PDT) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-229785ad943sm22325945ad.23.2025.04.03.20.20.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Apr 2025 20:20:40 -0700 (PDT) From: Pierrick Bouvier <pierrick.bouvier@linaro.org> To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, Mahmoud Mandour <ma.mandourr@gmail.com>, philmd@linaro.org, Pierrick Bouvier <pierrick.bouvier@linaro.org>, Alexandre Iooss <erdnaxe@crans.org> Subject: [PATCH 1/2] plugins/loader: fix deadlock when resetting/uninstalling a plugin Date: Thu, 3 Apr 2025 20:20:26 -0700 Message-Id: <20250404032027.430575-2-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250404032027.430575-1-pierrick.bouvier@linaro.org> References: <20250404032027.430575-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x633.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-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
fix deadlock with plugins reset/uninstall
|
expand
|
On 4/4/25 05:20, Pierrick Bouvier wrote: > Reported and fixed by Dmitry Kurakin. > Fixes: 54cb65d8588 ("plugin: add core code") Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2901 Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> > Fixes: https://gitlab.com/qemu-project/qemu/-/issues/2901 > Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> > --- > plugins/loader.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/loader.c b/plugins/loader.c index 7523d554f03..0d6e082e170 100644 --- a/plugins/loader.c +++ b/plugins/loader.c @@ -370,7 +370,7 @@ static void plugin_reset_destroy(struct qemu_plugin_reset_data *data) { qemu_rec_mutex_lock(&plugin.lock); plugin_reset_destroy__locked(data); - qemu_rec_mutex_lock(&plugin.lock); + qemu_rec_mutex_unlock(&plugin.lock); } static void plugin_flush_destroy(CPUState *cpu, run_on_cpu_data arg)
Reported and fixed by Dmitry Kurakin. Fixes: https://gitlab.com/qemu-project/qemu/-/issues/2901 Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> --- plugins/loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)