Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c7fc041cc9f112e595ef236882ae1975@yqxmail.com>
Date: Mon, 09 Nov 2020 13:59:34 -0800
From: Hydro Flask <hydroflask@...mail.com>
To: musl@...ts.openwall.com
Subject: Re: x86_64/__set_thread_area clobber of rcx and r11

On 2020-11-09 13:48, Harald Hoyer wrote:
> In src/thread/x86_64/__set_thread_area.s, I don't see any special
> handling of the registers rcx and r11,
> which will be clobbered by the syscall. Is that an oversight, or am I
> missing something?

The x86_64 ABI states that code should assume all caller-saved 
registers, which include rcx and r11, are clobbered
after the function call. __set_thread_area itself doesn't use rcx or 
r11, so no other special handling is needed.

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.