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=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: from tb-ob0.topicbox.com (tb-ob0.topicbox.com [64.147.108.117]) by inbox.vuxu.org (Postfix) with ESMTP id F3588238AD for ; Wed, 24 Jul 2024 21:53:27 +0200 (CEST) Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob0.topicbox.com (Postfix) with ESMTP id 484C42AD98 for ; Wed, 24 Jul 2024 15:53:26 -0400 (EDT) (envelope-from bounce.mMb91c323511c37b5d7da47a39.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id 467292043924; Wed, 24 Jul 2024 15:53:26 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=CqEuGrtw header.a=rsa-sha256 header.s=20230601 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=rminnich@gmail.com smtp.helo=mail-lf1-f51.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type:list-help:list-id:list-post :list-subscribe:reply-to:content-transfer-encoding :list-unsubscribe; s=sysmsg-1; t=1721850806; bh=zuuSsYvPou51SiKW geMu5TixVrLg0YEM3Toq+JEPjs8=; b=cOWzEL0fmfTmoi8GBZs+SPW3vd9tp6Tk Wuc9pLuv5SevefvcmoGN3DEK6iKb7lpft08ah3ncG3k76qpucBgUAeEwksVeOsfJ Lp5kHbQV5nvd9Wvv9i5knh8YIxDt40zB6d+LUQ8kwfE5fw4jACf7iPSiysPLzrIP P7UFrHtkiVk= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1721850806; b=M+35XPMXDG+FYz9N056TIOzBkYFoh3EyWRQNL3qGjG24pCiY/m yygBHtTSuMONLGIPTTfN3XuoyESfI8iR1kbfwLto0NhL1X1W/QumrAkygl+eBk6e 28pobZ3OBRym1TiK6YhprjmcD1uLWOlYOMtbS/S51RIxeePOs10uzSQYU= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=CqEuGrtw header.a=rsa-sha256 header.s=20230601 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=rminnich@gmail.com smtp.helo=mail-lf1-f51.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=CqEuGrtw header.a=rsa-sha256 header.s=20230601 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.167.51 (mail-lf1-f51.google.com); spf=pass smtp.mailfrom=rminnich@gmail.com smtp.helo=mail-lf1-f51.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=KQQoAm7K; x-me-sender=none; x-ptr=pass smtp.helo=mail-lf1-f51.google.com policy.ptr=mail-lf1-f51.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h= mime-version:references:in-reply-to:from:date:message-id:subject :to:content-type:list-help:list-id:list-post:list-subscribe :reply-to:content-transfer-encoding:list-unsubscribe; s=dkim-1; t=1721850806; x=1721937206; bh=5XsaxLx2AZtjOcGo5tBqr7EPsWaxlo47 Eyw8amdKC0s=; b=TOIXdvDSFpwTt9GxPwPtGpD1D6iTTSly3NcBmv7aacUCL5YC ecBVtt4h5404QuheODKptXq4EI9SgQCXfIAzmMW1aBimKWRDaFj/mDo2PJVOBNz6 eLboQwJluI9jUjeE+lojHRcGXa1lAo0HshShFSB8HvSQNbuS/vUliF4w5r8= Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id 32AE82043477 for <9fans@9fans.net>; Wed, 24 Jul 2024 15:53:03 -0400 (EDT) (envelope-from rminnich@gmail.com) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id DD9E35A8BA7; Wed, 24 Jul 2024 15:53:03 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1721850782; b=ntHW78VTtlKzCxtTDw1q+gPnq3tI2Pw5LiJ2YDGobvMDQtaJF7 qVx5Om4l4bYOUW/eeGhzLwFogeDXNFgt/nsiqSbO1A3MfCGWka6fLlOg7jfIDX93 5gBRaE5AJ4ElTJDYXvMZsERTDPAEGoLIN7g+3S0AGxOZvsn9jSAorT65EJmgWaWm kFPXKxS+T200WmBr7Ev7IXigkxhja97b2KRmZAxCI9rd5vXFvutpyVlgiQb6FRKu NdwReKut0eehi4CHwIguV3KrKDrx1yEXrhRfWP7Q0vaRCIf1LlhHFaodzrhFMbXe tLjXv4vgPl0Sk13/iU1iXsg2EUuu2yfr6pIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; s=arcseal; t=1721850782; bh=Qqef+fzR2lak0kOVt0QK71rF3XBl9lR/giQxNzb28Wk=; b=gYjhYvJzwmY2 4wy423/hLVO4XIWrt27ng++021MNi2qIDNPx2YMP1U2wfxcO3uKWdDBbPzNPm6Jo tErrApAV7aZ9ElNUzqmHypH+YWwTxgJdIZGtDVvbR2/SKDvv6oasR3DJyBAwQ0Pg onvAEnpaBq7G8h+wKMhjeinLV9hXeBZkLfNqGH2TAEl2Rg4KHicugB6Yb8YkDp+T NqxkIhLM/nltOFjyZz1xP/IDLh3IiLMO/K6bDBnTCWknKGasJsP+ZDAAUN7E8Hju zxQEzcl5qVg+GkFn+LwbLPhd2kPxLhs34HNHJNO8Ma/YVnRPphnmHTe9DPsowNGq b7g4P0Zh/A== ARC-Authentication-Results: i=1; tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=CqEuGrtw header.a=rsa-sha256 header.s=20230601 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.167.51 (mail-lf1-f51.google.com); spf=pass smtp.mailfrom=rminnich@gmail.com smtp.helo=mail-lf1-f51.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=KQQoAm7K; x-me-sender=none; x-ptr=pass smtp.helo=mail-lf1-f51.google.com policy.ptr=mail-lf1-f51.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgeeftddriedugddugedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpeggfhgjhf ffkffuvfgtsegrtderredttdejnecuhfhrohhmpehrohhnuchmihhnnhhitghhuceorhhm ihhnnhhitghhsehgmhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpefhheetteeuvd egtdfhhfeigeffhfejfeejieetffffieduvdehhfffudeiuddtueenucffohhmrghinhep thhophhitggsohigrdgtohhmnecukfhppedvtdelrdekhedrudeijedrhedunecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvddtledrkeehrdduieejrdeh uddphhgvlhhopehmrghilhdqlhhfuddqfhehuddrghhoohhglhgvrdgtohhmpdhmrghilh hfrhhomhepoehrmhhinhhnihgthhesghhmrghilhdrtghomheqpdhnsggprhgtphhtthho pedupdhrtghpthhtohepoeelfhgrnhhsseelfhgrnhhsrdhnvghtqe X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (gmail.com ... _spf.google.com: Sender is authorized to use 'rminnich@gmail.com' in 'mfrom' identity (mechanism 'include:_netblocks.google.com' matched)) receiver=tb-mx0.topicbox.com; identity=mailfrom; envelope-from="rminnich@gmail.com"; helo=mail-lf1-f51.google.com; client-ip=209.85.167.51 Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx0.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Wed, 24 Jul 2024 15:53:02 -0400 (EDT) (envelope-from rminnich@gmail.com) Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-52f04c29588so117409e87.3 for <9fans@9fans.net>; Wed, 24 Jul 2024 12:53:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721850780; x=1722455580; h=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=Qqef+fzR2lak0kOVt0QK71rF3XBl9lR/giQxNzb28Wk=; b=KQQoAm7K4hIYyFAfDZjcV5JSV7RZpj2PMtpQtSCQA1Po1lDivgZDfZCbLcpAu41gVT AghBJz9RzxzayjGDHTFxLEYWeNNXritzHa/eWiepE94tyblb0cc+hzrU2XwfUj16rd8n tFqkG9Bch0d+c3Bus177/eADdG10asUrxjJnNxelDk+9aCt0H2QVGMVpotlIkPSc74Md 21d+C6KX5kSTlK0u5cuxAGf3gTiQQoiOTEJSveelwulNEuBcNn86YVI7fVo+MxOJlCjN XUgBR/J/wg8Tkfv1MN+omJjUMaxeMxlSrLB+BpNc3yDOe8HgUwKFmv7oQAukw+TSO8W/ Tapg== X-Gm-Message-State: AOJu0YxLCZSeyUf8VVbeL8KFAEk4Jik8pVfeK/rlladWb0vNQmYlUSVk oAyrRitTp7xcwbH0kkSgeJyKtmaEdtr92FSeoGo5U5OGY634NSEfq+0IPfFWRl/VtuXoEfpAbnz QlFCv1vr5Nhl7YLp1Iwgu1M/fjoEsEQ== X-Google-Smtp-Source: AGHT+IFhUT0pVr6mHNvzR0kJTkZEsIMBcsvAHq62hRIMiEhMCsvHVj18CVaQmcLHbIXyK0tWNEhd3vz9W3Dfq6s/j+I= X-Received: by 2002:a05:6512:15a2:b0:52f:cd03:a83b with SMTP id 2adb3069b0e04-52fd3f2cbd9mr582607e87.36.1721850779875; Wed, 24 Jul 2024 12:52:59 -0700 (PDT) MIME-Version: 1.0 References: <87bk2p3k86.fsf@rdklein.fr> In-Reply-To: <87bk2p3k86.fsf@rdklein.fr> From: ron minnich Date: Wed, 24 Jul 2024 12:52:48 -0700 Message-ID: Subject: Re: [9fans] Inferno: starting a process in a stopped state To: 9fans <9fans@9fans.net> Content-Type: multipart/alternative; boundary=000000000000173f21061e03a071 Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 5b8ffaf2-49f6-11ef-9582-850e028c7b06 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UNDI5N2Y0NTFiMThkNTk5YS1NYjkxYzMyMzUxMWMzN2I1ZDdkYTQ3?= =?UTF-8?B?YTM5Pg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Content-Transfer-Encoding: 7bit List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:Mb91c323511c37b5d7da47a39:1:QCTACb2T2KwiOere0UFoA3ZJMEA0IrhGoZKPNPtFBXE --000000000000173f21061e03a071 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I put a 1:jump 1 At the start, when I need to do this and have no other way. On Mon, Jul 22, 2024 at 01:28 Edouard Klein wrote: > Hi ! >=20 > I'm writing dis assembly, and I would like to debug my program right > from the entrypoint. >=20 > I intend to use the /prog filesystem for that, thanks to which one can > stop a program by echoing "stop" to dbgctl file. >=20 > However, what I need to do is stop the program at the very start. >=20 > I have multiple ideas, such as introducing a sleep or a read that would > let me enough time to stop the program, but they have the bad property > of modifying the program. >=20 > I could create a loader program that would exec the target program and > stop the loader right before the exec, and I suspect (but I'm not sure) > that would let me stop the target program. >=20 > But these all sound very rube goldbergy to me. >=20 > Is there a way to start a program in a stopped state that I have > overlooked ? >=20 > Thanks in advance, >=20 > Cheers, >=20 > Edouard. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T4297f451b18d599a-Mb91c3= 23511c37b5d7da47a39 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription --000000000000173f21061e03a071 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I put a 
1:jump 1=
At the start, when I need to do this and have no ot= her way.


<= div>
= On Mon, Jul 22, 2024 at 01:28 Edouard Klein <edou@rdklein.fr> wrote:
Hi !

I'm writing dis assembly, and I would like to debug my program right from the entrypoint.

I intend to use the /prog filesystem for that, thanks to which one can
stop a program by echoing "stop" to dbgctl file.

However, what I need to do is stop the program at the very start.

I have multiple ideas, such as introducing a sleep or a read that would
let me enough time to stop the program, but they have the bad property
of modifying the program.

I could create a loader program that would exec the target program and
stop the loader right before the exec, and I suspect (but I'm not sure)=
that would let me stop the target program.

But these all sound very rube goldbergy to me.

Is there a way to start a program in a stopped state that I have
overlooked ?

Thanks in advance,

Cheers,

Edouard.

------------------------------------------
9fans: 9fans
Permalink: https:= //9fans.topicbox.com/groups/9fans/T4297f451b18d599a-Md3642db0bae45288d5553d= f6
Delivery options: https://9fans.topicbox.com/gro= ups/9fans/subscription
= --000000000000173f21061e03a071--