From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, MIME_HTML_ONLY,MIME_HTML_ONLY_MULTI,MPART_ALT_DIFF,RCVD_IN_DNSWL_NONE, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED, URIBL_DBL_BLOCKED_OPENDNS,URIBL_ZEN_BLOCKED_OPENDNS autolearn=ham autolearn_force=no version=3.4.4 Received: from txout-a4-smtp.messagingengine.com (txout-a4-smtp.messagingengine.com [103.168.172.227]) by inbox.vuxu.org (Postfix) with ESMTP id D59282CA51 for ; Wed, 4 Jun 2025 18:52:16 +0200 (CEST) Received: from localhost.localdomain (kubehost01.phl.internal [10.202.3.1]) by mailtxout.phl.internal (Postfix) with ESMTP id AA351238020E for ; Wed, 4 Jun 2025 12:52:15 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=quintile.net header.i=@quintile.net header.b=HNDIfUvo header.a=rsa-sha256 header.s=mythic-beasts-k1 x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=quintile.net; spf=pass smtp.mailfrom=steve@quintile.net smtp.helo=mx1.mythic-beasts.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (body has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=content-type:content-transfer-encoding:from :mime-version:subject:date:message-id:references:in-reply-to:to :list-help:list-id:list-post:list-subscribe:reply-to :list-unsubscribe; s=sysmsg-1; t=1749055935; bh=GlptqnkYTmLcflX8 9f1K4BWxuMkkOI0WIQVhauuYwJo=; b=ieU0GWrxgJNlP47tHIuLZuC/zIQy7Rxl zTA88SmaJ5KD2/pma3Ucx/+QoxxolIMxbLdnPtaOjKGYj/9zEezBswUupakNKd0K Lpj8inv6h/H5jPTDWrSZtWGnO9TjGmvE2zCfRAYlbNZGWpHduqamID1zGtLHDJIw +xS7ItW6Bks= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1749055935; b=HP0DWcuEE5arf483ShUgw2LWZUbzghKHZw+icgLhT62Cv6cHK/ Y/XNv64dAiCP+PDycy08Bt4e8CpJDcQMYrfteC2nKlBcpbgBCM8S+mhH3eOheTmC u5ts/QnFPgmmRPePf/++Odye9ediO19YnINq+HdphfOo2nAjEuIL6CS+c= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=quintile.net header.i=@quintile.net header.b=HNDIfUvo header.a=rsa-sha256 header.s=mythic-beasts-k1 x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=quintile.net; spf=pass smtp.mailfrom=steve@quintile.net smtp.helo=mx1.mythic-beasts.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (body has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: mx.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC did not pass); dkim=pass (2048-bit rsa key sha256) header.d=quintile.net header.i=@quintile.net header.b=HNDIfUvo header.a=rsa-sha256 header.s=mythic-beasts-k1 x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=quintile.net; iprev=pass smtp.remote-ip=46.235.224.141 (mx1.mythic-beasts.com); spf=pass smtp.mailfrom=steve@quintile.net smtp.helo=mx1.mythic-beasts.com; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=mx1.mythic-beasts.com policy.ptr=mx1.mythic-beasts.com; x-return-mx=pass header.domain=quintile.net policy.is_org=yes (MX Records found: mx.mythic-beasts.com); x-return-mx=pass smtp.domain=quintile.net policy.is_org=yes (MX Records found: mx.mythic-beasts.com); x-tls=pass smtp.version=TLSv1.3 smtp.cipher=TLS_AES_256_GCM_SHA384 smtp.bits=256/256; x-vs=clean score=51 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h= content-type:content-transfer-encoding:from:mime-version:subject :date:message-id:references:in-reply-to:to:list-help:list-id :list-post:list-subscribe:reply-to:list-unsubscribe; s=dkim-1; t=1749055935; x=1749142335; bh=20oQMiu0TYsu6H4KcNQaWw6UefLk6dn8 SXfMYWrIPc8=; b=iHH8owRj9mse0ZbjlW49Z9ZCFQALChZRuby/Tk046NlZb9ur 2CnuESYSszXoeD93GR6FhZjHK3KEkWrr8HumQZkXUuloSrO9DGR1En1FFH3nrp1h wJaAEBIETDb5BG23urQViePwBsSSJ/byIt9LGQy8bnoDKWJgiYIAA1h3ktY= Received: from mx.topicbox.com (10-0-3-37.authmilter.topicbox-prod.svc.cluster.local [10.0.3.37]) by tb-mx-1.topicbox.com (Postfix) with ESMTP id 5E209100241831C5 for <9fans@9fans.net>; Wed, 4 Jun 2025 16:50:49 +0000 (UTC) Received: from tb-mx-1.topicbox.com (10.0.0.143 [10.0.0.143]) by mx.topicbox.com (Authentication Milter) with ESMTP id 394719E3B29; Wed, 4 Jun 2025 16:50:49 +0000 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1749055849; b=HNGcOOU0nR/Rmwej/2xUmWswk1nXRWXky1EOSv+U0zZz8KrSnh p15PYrjpErlsHUxjx8ek/QvuW6O89zu3Ckkte5hnQqug9M9foXEDwZigk47CW7CV fnF2hDpumJ7fSNKVE3UR25iCwk0I7D0rB/pLhvNoOPKYtjXaP7kMru1hHzmewjtE 7COTuyOzkK/sQsRZs/r4iFOEYSKSfKw0hRkSBzm0RhJyfacCiw9rnzWymGR3wUPK 9kfLpZ18FK7fKuQ5hqgUrdLz/N6lzS9cF7whcMXOZQg1o3w4uZrbiqoRPN/YXSyb H8ZJ8tHuA1GucbJ7ZvE761BwY7lWd0v1CuHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=content-type:content-transfer-encoding:from :mime-version:subject:date:message-id:references:in-reply-to:to; s=arcseal; t=1749055849; bh=ZKN1SRyn7WcJLXTvLCqtZf3+4xHIb/PXU1t ve6yKMA8=; b=l1gUX374jNB71BrsyXEA8V32YAlH6yrCqE+sa4ptCky/1G3azTI Oy5AW7jlPonwDBJNZNup4AykuGtjn7KrGiAOr+uRLbnnjYexyBzPIwfnsFS9V1TE 8qwx4NqeLVWWZP/qRaosIW4R99EpyG8Qzv71rw8Uwj+Wa7ezCxbsv6PwwqbwmkPO GmGpkD03icdWhMIpUOAeuBYw6NYJvhaIcrfO9orgXNaLqJhd/7SuGsNqP++aMbJR xF+1AlMBfiXPHPB0YdBo2efr5lMY1V1Ao1sinunpKO9r5hEU/v8kQfGtZAdKhVPl U41qs3YyhI5sIY4fVYAsruyL2vzETCovWTw== ARC-Authentication-Results: i=1; mx.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC did not pass); dkim=pass (2048-bit rsa key sha256) header.d=quintile.net header.i=@quintile.net header.b=HNDIfUvo header.a=rsa-sha256 header.s=mythic-beasts-k1 x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=quintile.net; iprev=pass smtp.remote-ip=46.235.224.141 (mx1.mythic-beasts.com); spf=pass smtp.mailfrom=steve@quintile.net smtp.helo=mx1.mythic-beasts.com; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=mx1.mythic-beasts.com policy.ptr=mx1.mythic-beasts.com; x-return-mx=pass header.domain=quintile.net policy.is_org=yes (MX Records found: mx.mythic-beasts.com); x-return-mx=pass smtp.domain=quintile.net policy.is_org=yes (MX Records found: mx.mythic-beasts.com); x-tls=pass smtp.version=TLSv1.3 smtp.cipher=TLS_AES_256_GCM_SHA384 smtp.bits=256/256; x-vs=clean score=51 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddugddvgeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucfqnhhlhicuohhnvgcuph grrhhtucdlhedumdenucfjughrpegtgffhggfufffkfhgjvffosegrjehmrehhtdejnecu hfhrohhmpefuthgvvhgvucfuihhmohhnuceoshhtvghvvgesqhhuihhnthhilhgvrdhnvg htqeenucggtffrrghtthgvrhhnpeekleevhfehudekkeevfeehhfdttdefledtueffkeet vddtveehfefhgfekkeeuteenucffohhmrghinhepghhithhhuhgsrdgtohhmpdhtohhpih gtsghogidrtghomhenucfkphepgeeirddvfeehrddvvdegrddugedunecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehinhgvthepgeeirddvfeehrddvvdegrddugedupd hhvghlohepmhiguddrmhihthhhihgtqdgsvggrshhtshdrtghomhdpmhgrihhlfhhrohhm peeoshhtvghvvgesqhhuihhnthhilhgvrdhnvghtqedpnhgspghrtghpthhtohepuddprh gtphhtthhopeeolehfrghnsheslehfrghnshdrnhgvtheq X-ME-VSScore: 51 X-ME-VSCategory: clean Received-SPF: pass (quintile.net: Sender is authorized to use 'steve@quintile.net' in 'mfrom' identity (mechanism 'include:_spf.mythic-beasts.com' matched)) receiver=mx.topicbox.com; identity=mailfrom; envelope-from="steve@quintile.net"; helo=mx1.mythic-beasts.com; client-ip=46.235.224.141 Received: from mx1.mythic-beasts.com (mx1.mythic-beasts.com [46.235.224.141]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by tb-mx-1.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Wed, 4 Jun 2025 16:50:48 +0000 (UTC) Received: by mailhub-cam-d.mythic-beasts.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uMrHm-009vpt-8t for 9fans@9fans.net; Wed, 04 Jun 2025 17:48:18 +0100 Content-Type: multipart/alternative; boundary=Apple-Mail-B2E13CB3-4527-4C58-9F14-AB71C92740C2 Content-Transfer-Encoding: 7bit From: Steve Simon Mime-Version: 1.0 (1.0) Subject: Re: [9fans] using GitHub.com/u-root/cpu on plan9 to connect to linux guests in vmx Date: Wed, 4 Jun 2025 17:48:06 +0100 Message-Id: References: In-Reply-To: To: 9fans <9fans@9fans.net> X-Mailer: iPhone Mail (22F76) X-BlackCat-Spam-Score: 36 Topicbox-Policy-Reasoning: moderate: sender is a member; group holds all messages Topicbox-Message-UUID: 12edd182-4164-11f0-a121-e1270bd64eb0 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UOWIwZmY5MzUwMmVlNDEzMC1NYzdlMzcwNTU5MmUzZTU5YTFjNDc0?= =?UTF-8?B?ZjY0Pg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:Mc7e3705592e3e59a1c474f64:1:WupUhrrX8_JezNbgNvvEQwC8ZxC1tgkh2V-19H0AvC0 --Apple-Mail-B2E13CB3-4527-4C58-9F14-AB71C92740C2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
maybe i am remembering ancient unix but isn't the zero t= he inter-variable separator?

-Steve


On 4 Jun 2025, at 5:37 pm, ron minnich <rminn= ich@gmail.com> wrote:


anyway, I found it, when yo= u do this in rc:
x=3Dy
rc writes a trailing null. 
=

Not sure that's needed, but it's what it does= . I'm going to strip trailing nulls in the cpu command.

On Wed, Jun 4, 2025 at 7:55 AM ron minnich <rminnich@gmail.com> wrote:
I'll be submitting a PR to fix it, w= e'll see how that goes, because the code, as written, doesn't even = give you some idea how many variables had the problem. 

I don't see that exposing those names is that big a deal, but we= 'll see.


<= div class=3D"gmail_attr" dir=3D"ltr">On Tue, Jun 3, 2025 at 5:15 PM = Daniel Maslowski via 9fans <9fans@9fans.net> wrote:
The author of that error message might have chos= en to not expose/disclose the information.

Anyway, interesting - would be really nice to see both systems = integrate seamlessly!
I have a good collection of hardware by now= that would really like to see this.

=
On Wed, Jun 4, 2025 at 1:57 AM= ron minnich <rm= innich@gmail.com> wrote:
well, here's a fun one. 

I've got my go= lang cpu command working on plan 9. So I'm working to have my plan 9 cp= u connect to a linux vmx guest running my golang cpud.

The linux kernel has the initramfs builtin, so ... one file for vmx = to worry about, and 0 disk images.

side note: qe= mu was choking on this kernel somehow, but vmx ran it just fine. I like vmx= much more than qemu at this point. I prefer to test these linux kernels on= vmx now.

The goal is to have a linux appliance = process, where it is easy to (e.g.) run python3. So the only thing embedded= in the linux kernel is u-root programs and a cpud. You should be able to c= d to the root of a linux file system, and say
linux usr/bin/pytho= n3
where linux is a wrapper for vmx, and have it work. We ha= d this on akaros. It's handy. 

The only= big problem will be the plethora of symlinks in linux images, but I have a= workaround for that, so we'll see. 

An= yway, plan 9 cpu was connecting to linux cpud, mounts were happening, and s= o on, then I got this on the cpud side:
"exec: environment v= ariable contains NUL"
and the cpud exec failed.
<= div>WTH? Well, it turns out, it's this in src/os/exec/exec.go.

              &n= bsp; // Reject NUL in environment variables to prevent security issues (#56= 284);
                // excep= t on Plan 9, which uses NUL as os.PathListSeparator (#56544).

The problem is, this doesn't work if you are commun= icating plan 9 environment variables to Linux, and that's what we'r= e doing. You kind of have to for cpu. I will guess I'm the first person= to see this ... kind of funny. Working on it. 

=
I'm a bit annoyed that whoever wrote the test and error did this:<= /div>
err =3D errors.New("exec: environment variable contains NUL&= quot;
instead of this:
err =3D fmt.Errorf"%q= :exec: environment variable contains NUL", kv)
since it'= s always kind of nice to produce useful error messages :-)
but at= least I got something!

btw, my talk, the paper,= and the code for vmthreads is mirrored to github.com/rminnich/vmproc.
<= br />


= --Apple-Mail-B2E13CB3-4527-4C58-9F14-AB71C92740C2--