From nobody Sun Oct 5 00:06:48 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass(p=reject dis=none) header.from=lists.libvirt.org ARC-Seal: i=1; a=rsa-sha256; t=1759411219; cv=none; d=zohomail.com; s=zohoarc; b=dLEb3FPxAoXtrsbw3zXwoERHx9coIMmPqeI9pGwaD5LZYgWa6LSblsD2K7smD4TZkB7wyzJ/nnDRtQqDu2GfvETqRw5PbhtaHBgMqkhUiR2GKkRhPgLHbCU/0gRmiqGI2NL59FN5UpL6tfuK7WdleR+C3nRAdVcPi3CV+f+itIA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1759411219; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:Subject:Subject:To:To:Message-Id:Cc; bh=Lh05IZab9yoRXfb1AGHTbHcTfbz4m+wIzxtmTgz0rpY=; b=Ttzi85DKHM0Oo7aFB1L7G7D+PU0DNoQUtcM9Nj3bPM4Vv93Dz+mEE/CIgGz8ovKrz5LCG2PrJR0qtO92PJcyIiHKE44hD7Wxf63BdPmek4TVjcA6gzenGYfwmwLc4x/TlKgD/MRCxFJnQOcG5mnvAYmxLQ5jF8qQAjUf8I/5w9s= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1759411218983215.31883974118966; Thu, 2 Oct 2025 06:20:18 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 993) id D944143FEC; Thu, 2 Oct 2025 09:20:16 -0400 (EDT) Received: from [172.19.199.17] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id A8FB8441EB; Thu, 2 Oct 2025 09:19:42 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 993) id 93CA643FB1; Thu, 2 Oct 2025 09:19:34 -0400 (EDT) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3072 bits) server-digest SHA256) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id BAA1443E8E for ; Thu, 2 Oct 2025 09:19:33 -0400 (EDT) Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-626-R0X0EptyMJaQcMwS-OPijg-1; Thu, 02 Oct 2025 09:19:32 -0400 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 7D5DE1955F56 for ; Thu, 2 Oct 2025 13:19:31 +0000 (UTC) Received: from toolbx.redhat.com (unknown [10.42.28.93]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 2B0DB18004D8; Thu, 2 Oct 2025 13:19:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1759411173; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Lh05IZab9yoRXfb1AGHTbHcTfbz4m+wIzxtmTgz0rpY=; b=WfCOjj6cAurwHb7CKirwtrDGnWWDyozULYjc0zqndn2cKhdC2FMSn2fqnbyt2u2Czjdi4A TiJK+Gawf58hliJFY+QAw6glOnW5xrX8KtXxLp8/eSbSDL9jKav/rO0EJLyYWf1cpngUvP cxAnBFWywr5fjfzVJoUZyJHo1A+FWW4= X-MC-Unique: R0X0EptyMJaQcMwS-OPijg-1 X-Mimecast-MFC-AGG-ID: R0X0EptyMJaQcMwS-OPijg_1759411171 To: devel@lists.libvirt.org Subject: [PATCH] rpc: fix race against dtrace probe generator Date: Thu, 2 Oct 2025 14:19:28 +0100 Message-ID: <20251002131928.3000815-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: PdzPsmnJt00tkH-qU0qY__vRP7yLU2b7pDz1ejgyOcM_1759411171 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-ID-Hash: LXYFZZ2MMRZYPQFBH4PM6CBG7ZTFMIEO X-Message-ID-Hash: LXYFZZ2MMRZYPQFBH4PM6CBG7ZTFMIEO X-MailFrom: berrange@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.lists.libvirt.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: =?utf-8?q?Daniel_P=2E_Berrang=C3=A9_via_Devel?= Reply-To: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1759411220490116600 From: Daniel P. Berrang=C3=A9 The virt_socket_lib library has a dep on dtrace_gen_headers, but the virprobe.h file (which includes the libvirt_probes.h) is also used from virnetserverclient.c and virkeepalive.c files which do not directly depend on virt_socket_lib. Thus it is possible for the latter files to be built before the libvirt_probes.h file has had its content written. Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Martin Kletzander --- src/rpc/meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rpc/meson.build b/src/rpc/meson.build index 68aaf24b2a..222447f458 100644 --- a/src/rpc/meson.build +++ b/src/rpc/meson.build @@ -48,6 +48,8 @@ endif rpc_gen_headers =3D [] rpc_gen_sources =3D [] =20 +rpc_gen_headers +=3D dtrace_gen_headers, + foreach name : [ 'virnet', 'virkeepalive' ] protocol_file =3D files('@0@protocol.x'.format(name)) header_file =3D '@0@protocol.h'.format(name) --=20 2.50.1