From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 699DE3858C5E for ; Mon, 4 Dec 2023 09:08:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 699DE3858C5E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 699DE3858C5E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701680937; cv=none; b=LX4dZq+zi6RvVAFns42vy43KjtTxFIoezsz2pdSkr35xjxqdi/qnItVUQ+Ge+nSMtj9QVWVqRN1sobx6M4Kej1cOCLk7igSLmJNHat6B1ftjTfRDhT8NgSo/JluwZpML1WSl809+0+8rx8pEZyUvN5KX3V+WV//tD2lhOUhxhF4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701680937; c=relaxed/simple; bh=p2cH4r79lo0GZapp87IrToEMRZeGpX+/tNoY1KvSw8o=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=iWk7XJIE6MCUXAMByrokJLUeqjk6Llp3ZIf+fAvRiwfKLM+ssI4aYgu8nSlNP/qkp46ZyQMr6dObssIhzwmrl2tXwRI5BoCz5UOetsELwHNIpgi4q7wWlBQPy8LTt6l/UIdfZ/NQjC5MXAoXMiHRhA+E7iYA+F54e9ZN26cMYV8= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701680933; 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: in-reply-to:in-reply-to:references:references; bh=+lUgiF2F0V5oznRperzNUlgNm9WMKFCUEkOF7v58hyI=; b=FJYh3Son/CrZ1Ymux1sfK7nNHTdkHww/OdK0rQxU3c+usJ8Mmi1dnuj6wwYuhtoGtbBcWX NT5rnlfh9Qwu/AwdO046gXOt9bZsUNXDhjJw4aZANtUiyYs5re/VWZPuDLsn01Nlf+6a3y BqXSYjb/et4y2Xatcm+RlR18PKUfVpg= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-444-Z-39XxfbO8iXwh4kmxZc4A-1; Mon, 04 Dec 2023 04:08:51 -0500 X-MC-Unique: Z-39XxfbO8iXwh4kmxZc4A-1 Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-a1a50324688so156757466b.2 for ; Mon, 04 Dec 2023 01:08:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701680930; x=1702285730; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+lUgiF2F0V5oznRperzNUlgNm9WMKFCUEkOF7v58hyI=; b=OKKGqtfkcRbeFWWeiV2BpWmwc8Z3LDj5yifDEkJKftIc4ER2fCDDzozEYLacWZqwTY JDAYhrmJTo8grM/5zucgGDqN+Uwtz2uhwjL0rHff7sr/Mp2EaagcrQDyV/Fm8++FMAFZ hUd6rmqoltxCnUPgOJ9IPblIth5ZevyXca1RbUYDnkj7HprjYK4Di5PaAP5S1NrWL/Eg PSfsIUVTgePf9wCkmZcQUvjG3uWHR7cdU9wO9GcScmeLpeRf9EYHhxnu1uoD34D3V4/e gVduUkox2h6yTxt0Ls5OZ/i0LGcB6nb0/FYyGneO/Ot1DBp3oyM7EBEN9CmPdeUeiiSS BlQA== X-Gm-Message-State: AOJu0YyuCdGtWnDMvtktI9A4OMbGbzsfivke0tXAYzosdsumPeQmUQo7 iEhIHWUup+C0d+Ijz9Ddue27idgF1KmY39X/iIvbbQRvnOOGUAbPFwNb7N1sC3EVEMdrdIlPBYr Dvj7UlTt72+AOwpahLMr49aXEnNM= X-Received: by 2002:a17:906:d115:b0:a01:de07:5926 with SMTP id b21-20020a170906d11500b00a01de075926mr3169101ejz.45.1701680930282; Mon, 04 Dec 2023 01:08:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IGEDaEGpIS0j0Bl0Csdoo3tW6ODWIdYF7uSYnuVqoG1V/ars207p2ZGj4syDxbE8Au9w4tbmw== X-Received: by 2002:a17:906:d115:b0:a01:de07:5926 with SMTP id b21-20020a170906d11500b00a01de075926mr3169090ejz.45.1701680929918; Mon, 04 Dec 2023 01:08:49 -0800 (PST) Received: from lida.tpb.lab.eng.brq.redhat.com (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id c6-20020a170906694600b00a0aca4d2b25sm5034033ejs.180.2023.12.04.01.08.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Dec 2023 01:08:49 -0800 (PST) Date: Mon, 4 Dec 2023 10:08:48 +0100 From: Martin Cermak To: Lee Eric Cc: systemtap@sourceware.org Subject: Re: stap server is not able to use Message-ID: <20231204090848.aue4z3iydlyl43id@lida.tpb.lab.eng.brq.redhat.com> References: MIME-Version: 1.0 In-Reply-To: User-Agent: NeoMutt/20180716 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi Eric, On Sun 2023-12-03 13:03 , Lee Eric via Systemtap wrote: > Hi, > > I just noticed my stap scripts need to run via stap-server and I > followed the doc link https://sourceware.org/systemtap/wiki/SecureBoot > to set up stap server. However, I feel like the error messages from > the stap command is really odd: > > # stap --list-server=all > ... > host=thinkpad01.local address=127.0.0.1 port=44621 > sysinfo="6.5.10-300.fc39.x86_64 x86_64" version=5.0 > certinfo="00:c1:73:c9:a1" > host=thinkpad01.local address=127.0.0.1 port=44621 > sysinfo="6.5.10-200.fc38.x86_64 x86_64" version=5.0 > certinfo="00:c1:73:c9:a1" > host=thinkpad01.local address=127.0.0.1 port=44621 > sysinfo="6.3.8-200.fc38.x86_64 x86_64" version=5.0 > certinfo="00:c1:73:c9:a1" > host=thinkpad01.local address=127.0.0.1 port=44621 > sysinfo="6.3.8-100.fc37.x86_64 x86_64" version=5.0 > certinfo="00:c1:73:c9:a1" > host=thinkpad01.local address=127.0.0.1 port=44621 > sysinfo="6.3.12-200.fc38.x86_64 x86_64" version=5.0 > certinfo="00:c1:73:c9:a1" > host=thinkpad01.local address=127.0.0.1 port=44621 > sysinfo="6.5.9-200.fc38.x86_64 x86_64" version=5.0 > certinfo="00:c1:73:c9:a1" > ... > > And I'm using Fedora 39, so I would like to test if stap can connect > to a server regardless the stap command ONLY accepting > hostname/ip/cert serial which they are all the same. > > # stap -vvv --use-server=127.0.0.1:44621 -e 'probe begin { exit() }' > ... > Session arch: x86_64 release: 6.5.10-300.fc39.x86_64 > Build tree: "/lib/modules/6.5.10-300.fc39.x86_64/build" > Using a compile server. > Running sh -c cd '/tmp/stapvTSXTA/client' && zip -qr > '/tmp/stapvTSXTA/client.zip' * > Spawn waitpid result (0x0): 0 > Servers matching 127.0.0.1:44621: > host=unknown address=127.0.0.1 port=44621 sysinfo="unknown" > version=unknown certinfo="unknown" > All specified servers: > host=unknown address=127.0.0.1 port=44621 sysinfo="unknown" > version=unknown certinfo="unknown" > Unable to connect to a server. > Passes: via server ? using 264956virt/19200res/16128shr/2424data kb, > in 0usr/0sys/4real ms. > Passes: via server failed. Try again with another '-v' option. > The kernel on your system requires modules to be signed for loading. > The module created by compiling your script must be signed by a > systemtap compile-server. [man stap-server] > ... > > What's the meaning of that error exactly? Why stap cannot match one > server in this case? I also did wireshark and I'm sure stap didn't > talk to the tcp port 44621 > > Is there any clue about this usage? Any help would be appreciated. I think you are missing a `stap --trust-servers ...` step. We have a simple testcase for stap server in Fedora CI: https://src.fedoraproject.org/rpms/systemtap/blob/rawhide/f/tests/Sanity/stap-server-basic-sanity/runtest.sh One of relatively fresh logs showing how it worked on Fedora 39 is here: https://artifacts.dev.testing-farm.io/9d3c8552-145d-424f-a4fb-ddda1f5ef58e/work-ci1wn81l3u/plans/ci/execute/data/guest/default-0/tests/Sanity/stap-server-basic-sanity-32/output.txt Hope this helps, Martin