From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk1-xa30.google.com (mail-vk1-xa30.google.com [IPv6:2607:f8b0:4864:20::a30]) by sourceware.org (Postfix) with ESMTPS id C580A3858D28 for ; Mon, 4 Dec 2023 18:58:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C580A3858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C580A3858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::a30 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701716283; cv=none; b=Sxi93C6Y9xmOzIVPzuuR3LHbJlmCfHAwJmljfQ9a2a2JCBMIOXf7nnKFonCN1iq3bwZtYRCodoLvir9cQ8LcmvLQ7cNTamy5ZPUa3C9Yj+VJ5o0zMhLvCEe3Vmn9PhQWddhM1f73AtYX5fG86G1RIA5ilItZknLFqBDe+8JZ+oY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701716283; c=relaxed/simple; bh=oXnfdBKryoao+AWkovJIA2xyADCCRabD7b0uooyPGQ4=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=Sg6N4c3wnU1IK6byeZkwKqfS6HjEuYV1IzaIW38q1wqDXZ8fNxC3eZWUvv/f3J64i01D6VaUdxO+lEqWfY6m5jOx7sPeLEirYbcnqIcoxQV0KTEC+lCTbIKV1LldNyCqC6i2/1IxcD2zqW7oTo8qwMMsAdy0IzVzEUlGShHMosM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-vk1-xa30.google.com with SMTP id 71dfb90a1353d-4b2d64a368aso978618e0c.1 for ; Mon, 04 Dec 2023 10:58:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701716280; x=1702321080; darn=sourceware.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=OFC907VDvb17ouKgnexkO5wW+eNPcjqxWlM9XW+YFZM=; b=aSC8BFgeilXo5rEQsHK/p2nSJoJRJxhf1UseEepdkoo0jqBtDErux1YMNuj9Oozqgp XGWH1sukh4qsaYtZCbZIxIUoL+sjpBsxFtgmJnCsN7IevoIspQCMqxxXdUz0eigC+Rn+ MMWCtDicbjmrouPWQa5Z2IVqFuLwkTMEh1/qLl+Rp4JEOlNSSCWb1uLGcr6TlAr3Z/mr kYpjRZ+kzys5W1MFmoOpz4MuczfzBp5t3P8RJahdaBPl5CgOt9d24vf+VVdmXxKVl8Ae w4oXeNQSuyNCN/UnhASAFZ90IfbtobRqf2tdya4swq7oOtu8TrjiTObzYPLFDZT6q+nT cFnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701716280; x=1702321080; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OFC907VDvb17ouKgnexkO5wW+eNPcjqxWlM9XW+YFZM=; b=R+ChVUZlcN1SLUL0xeh6syG1Y5UNh7u8A7ShTpntDl0oJbqRXU1JhiOlSa69BJMTFS mop2sv324jB/wrzvez23Di0doC6iNuMSnEuy3VO8CjXdLiuOI8DmpvvQZnawoC1lp7ZH FZqs54sS+DvaGNoL9KTajN3i7kpi+hHcaYErIxTpI3ywcROnuzw+gClY/CFuiScnfQE6 14ot+OVWpKZ6ZBRLL509wHRX8todLT0r9gJhqwj+qXCHE9KUkCm6SttHCbfExywvnJa4 c2GT1oCi+yjBfKLfeWf3HjONRxJgyl1EvFn1hd7w//vmgjiikZeF8vW+T14gmesvtkpO glHg== X-Gm-Message-State: AOJu0Yy9MjMNXvwP4fFP+yg/2hByrpT4MscI17vf1DZ/HQvVV2mHW6Sy HaEU0T0kjTjqGKznT3mzo25fG++zwDrbcKlZPJPN4dh4Pxg= X-Google-Smtp-Source: AGHT+IHL63v1LRr8RMTp9P1wA5EeCYkPlrWenOzBX8cQI2QtQQ92seQa7IiiHSJXRfhlk7DfOM6fAYgTVuduKX4+iiY= X-Received: by 2002:a05:6122:2515:b0:4b2:c573:ed57 with SMTP id cl21-20020a056122251500b004b2c573ed57mr395997vkb.9.1701716280310; Mon, 04 Dec 2023 10:58:00 -0800 (PST) MIME-Version: 1.0 References: <20231204090848.aue4z3iydlyl43id@lida.tpb.lab.eng.brq.redhat.com> In-Reply-To: <20231204090848.aue4z3iydlyl43id@lida.tpb.lab.eng.brq.redhat.com> From: Lee Eric Date: Mon, 4 Dec 2023 13:57:49 -0500 Message-ID: Subject: Re: stap server is not able to use To: Martin Cermak Cc: systemtap@sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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 Martin, Thanks for your reply and it seems no connection error on the compile server. However, do we have any updated steps on how to install kernel debuginfo RPM packages? I searched a lot and seems old methods to use debuginfo-install command does not work. Hui On Mon, Dec 4, 2023 at 4:08=E2=80=AFAM Martin Cermak w= rote: > > 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=3Dall > > ... > > host=3Dthinkpad01.local address=3D127.0.0.1 port=3D44621 > > sysinfo=3D"6.5.10-300.fc39.x86_64 x86_64" version=3D5.0 > > certinfo=3D"00:c1:73:c9:a1" > > host=3Dthinkpad01.local address=3D127.0.0.1 port=3D44621 > > sysinfo=3D"6.5.10-200.fc38.x86_64 x86_64" version=3D5.0 > > certinfo=3D"00:c1:73:c9:a1" > > host=3Dthinkpad01.local address=3D127.0.0.1 port=3D44621 > > sysinfo=3D"6.3.8-200.fc38.x86_64 x86_64" version=3D5.0 > > certinfo=3D"00:c1:73:c9:a1" > > host=3Dthinkpad01.local address=3D127.0.0.1 port=3D44621 > > sysinfo=3D"6.3.8-100.fc37.x86_64 x86_64" version=3D5.0 > > certinfo=3D"00:c1:73:c9:a1" > > host=3Dthinkpad01.local address=3D127.0.0.1 port=3D44621 > > sysinfo=3D"6.3.12-200.fc38.x86_64 x86_64" version=3D5.0 > > certinfo=3D"00:c1:73:c9:a1" > > host=3Dthinkpad01.local address=3D127.0.0.1 port=3D44621 > > sysinfo=3D"6.5.9-200.fc38.x86_64 x86_64" version=3D5.0 > > certinfo=3D"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=3D127.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=3Dunknown address=3D127.0.0.1 port=3D44621 sysinfo=3D"unknown" > > version=3Dunknown certinfo=3D"unknown" > > All specified servers: > > host=3Dunknown address=3D127.0.0.1 port=3D44621 sysinfo=3D"unknown" > > version=3Dunknown certinfo=3D"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-ddda1f5ef58= e/work-ci1wn81l3u/plans/ci/execute/data/guest/default-0/tests/Sanity/stap-s= erver-basic-sanity-32/output.txt > > Hope this helps, > Martin >