Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2733897pxb; Sat, 23 Oct 2021 06:49:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzk8Y/8J7zNrei2hSp8gsHGGw/CCyvCXwus8xDga4jRZakHEQXUUWRK9Ebr4AGXrtrB/O0y X-Received: by 2002:a17:907:3c5:: with SMTP id su5mr7196386ejb.543.1634996980595; Sat, 23 Oct 2021 06:49:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634996980; cv=none; d=google.com; s=arc-20160816; b=bzi0QQndSb5oWG6NRxL7B1HZw3jfYnY6yDEWxR0+8N6Hqcaj2aCGfYxskBECQRjTgT pOwS3xukR5ur/eD4pFCPlVqQnNzoo1ISPLfypcs7CylYFT+HdpIPj1Y45Oe3cuuA3WeL LmAqTeChxsJI+IfZm+a6AzwbQhK5Pa8Ehnk42BzqRR54+Yg39rNXYYUJCQ9MHYwwGavG wab0OV9dgsMr/PfYbI160I/MlUlMKo7bypfLr0lvpt1a5feU9RIXzCMlC6vldLd0LQAM ZFndIJ2pt3V2kM7/U7bTCUsiCtNGb9UFuVV1ZRr5ccy4eFs72G7NnaaS2KmsKZqYquyO hTdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Js+Y0AIx0PDXdUFIfD1NxQdRR2tV4eNWOgFJdZbUiZA=; b=xI8PbA3k5dU+P9kaDUlwWsWdZ4urW9CI3J2p1fM9D38Q0V4I2gACx0ev++Uk783LA+ 0UQvQ26iwZLNVzIOPmIJ65MFO0RkSGJ5oUPKWCmHjxQzq5HzT624mXnfAZYybbrSMSzl plOWUB/t1mYC1nnJ0iSLlArVTGShZCJjBTo7xau7/WezefYHljy5tMVz9UcdlygC9TeJ iHDu8ck7ZTYQ3WP04e2a69r+9Kg9fd69rReK8Ub/ZZu63ooQF0La/6K5eVmlO+qzqkuz sfNbmju4Qga5RxoTPqXcrOIspiszpF45MO61yFo8gciW6qswPp8h6zbz7l3QV7xWVabG Sacg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hg4si2709697ejc.69.2021.10.23.06.49.06; Sat, 23 Oct 2021 06:49:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230516AbhJWNqk (ORCPT + 99 others); Sat, 23 Oct 2021 09:46:40 -0400 Received: from wtarreau.pck.nerim.net ([62.212.114.60]:44472 "EHLO 1wt.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229870AbhJWNqk (ORCPT ); Sat, 23 Oct 2021 09:46:40 -0400 Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 19NDhNMg005918; Sat, 23 Oct 2021 15:43:23 +0200 Date: Sat, 23 Oct 2021 15:43:23 +0200 From: Willy Tarreau To: Ammar Faizi Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Linux Kernel Mailing List , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , x86@kernel.org, "H. Peter Anvin" , David Laight , Peter Cordes , Bedirhan KURT , Louvian Lyndal Subject: Re: [PATCH 2/2] tools/nolibc: x86-64: Fix startup code bug Message-ID: <20211023134323.GA5881@1wt.eu> References: <20211023090246.GA4323@1wt.eu> <20211018045828.GA15329@1wt.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 23, 2021 at 08:27:15PM +0700, Ammar Faizi wrote: > Sorry for the delay, I got extra activities this week. Sorry for not > giving any update lately. No, really, don't be sorry, I'm myself quite busy, so I understnad, I was just inquiring to arrange my time, nothing more. > 1) I can send the %rsp alignment fix patch. I will send it today or > tomorrow (GMT+07 time). OK, no rush anyway. Even early next week is okay for me. > 2) I can't send the syscall change used for exit. Because I only > have x86 machine. So I can't apply the changes to other arch(s). I see. I can do it for the various archs then, as the ones that are supported are essentially the ones I can test. > For (2), basically sys_exit doesn't close the entire process. Instead > it only closes specific thread that calls that syscall. The libc uses > sys_exit_group to close the process and its threads. > > ^ It's not really an urgent thing, because the nolibc.h may not be > used for multithreaded app. Even so, I don't see something dangerous. Yep that's what I understood as well, so we may easily postpone this. > For (1), it's urgent, because the alignment violation causes segfault > if the compiler generates aligned move, often when we compile it > with -O3, usually that happens with SSE instructions, like `movdqa`, > `movaps`. Yes, that's what I saw from the other reports, I didn't notice it myself but I probably faced it and attributed it to anything else. > Preparing the patch... Great, thank you! Willy