Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250808030336.GS1827@brightrain.aerifal.cx>
Date: Thu, 7 Aug 2025 23:03:37 -0400
From: Rich Felker <dalias@...c.org>
To: Thorsten Glaser <tg@...lvis.org>
Cc: musl@...ts.openwall.com, David Edelsohn <dje.gcc@...il.com>,
	Sertonix <sertonix@...teo.net>
Subject: Re: ctr registry after syscall on powerpc

On Fri, Aug 08, 2025 at 05:00:17AM +0200, Thorsten Glaser wrote:
> On Thu, 7 Aug 2025, Rich Felker wrote:
> 
> >There is no functional brk() in musl.
> >It's not a supported programming model for various reasons that mostly
> 
> Yes, of course.
> 
> >The brk() used internally in mallocng is a macro defined in the
> >host-environment-glue include file glue.h, and it expands to
> >essentially __syscall(SYS_brk,p) where __syscall is a macro expanding
> 
> Aaaah, so that’s why.

Yes, and the same applies basically anywhere in musl where a syscall
is used internally as part of some larger function. We generally don't
call out to the public function (which is often a namespace violation,
an unwanted cancellation point, etc.) but use the __syscall macro
where it'll get inlined. So anywhere this happens, the same breakage
could result if clobbers are not specified right.

Rich

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.