From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 2806 invoked from network); 9 Nov 2020 21:59:50 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 9 Nov 2020 21:59:50 -0000 Received: (qmail 8105 invoked by uid 550); 9 Nov 2020 21:59:48 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 8085 invoked from network); 9 Nov 2020 21:59:47 -0000 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yqxmail.com; s=dkim; t=1604959175; bh=DaPfAckwobDofcRQWiv3JEjyZUwEC6DNhHKDOJpPllg=; h=Date:From:To:Subject:In-Reply-To:References:From; b=l1d/Fd+Tjx27E4e0RgQl2+XZubDjZEPmnXplKiodEF82ZaRPT4Pyrxw952YY5Q0Aq qrwYxSNtWNbYjpDjwN/lSpPGvPBAOYGaQKcMl24l0cWZPFXiXRe89coeOmA0t98jcq t69/2njniHg8kCLS1S+4m3mvkto2XKWWFYfiTYUO+Rb+AgXigXMwCE2JrDJvUrAVcu /5b8L6Yj2B9z/xXEYnUL9O+ZUyxBmIx1RrB52Q1Ksdc09ND/repL/T8SvT9E9VWqp9 CxdaxA5goxzIrf3rzfo5fdIftPq/RSYZLd5qlPafInzTpJTu8yuYX6VZkGleImvD6A 1z0RMn0MobDKw== Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 09 Nov 2020 13:59:34 -0800 From: Hydro Flask To: musl@lists.openwall.com In-Reply-To: References: Message-ID: Subject: Re: [musl] 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.