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=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 15077 invoked from network); 10 Apr 2022 10:31:34 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 10 Apr 2022 10:31:34 -0000 Received: (qmail 1251 invoked by uid 550); 10 Apr 2022 10:31:30 -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 1219 invoked from network); 10 Apr 2022 10:31:29 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649586677; bh=XNfqqb7wJnjfMufs2h/UsQtrcotawDNfxoGziJiAjE0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=OxwSnmj4v8imKta8wVZu+1fSUNSbMELGTpT5KljYKP5j/YaqS8bm+QWr8a7SNuOIB pGxBNb7p+HHnjtGC5mo7zVcMj0MS02rzgP3prJjunE2vNnRBYLu+nAlRs6Nhar4kjp NP7f+Z9oUE8JJlZQmf2Wf/RBmK/BvLUBVC+FV7AbqNl224/xZLc4R5z/9ASzGWHZSq Ldbj3rL5tPyYj/J6eJYzhENcSnO6oDZWge8E0BrZqAiSIjaSm4hNDIakIPp6j8TTtr se4XemmUXF8XfmN3r+Y3cViqeEQyWA6PnfsYBVCKJ2xtBxFDhKKsHFMV+8y+B0gAnC JN4CYySb0N4Xg== X-Gm-Message-State: AOAM533gvPF7+Iw3/42p5oNZZUgEeaaUI0hzq5PCMgNOluAx90qugHs/ uF5wRYqFOY9/qgaWn343Xb962aFW8A0b2BUIRiY= X-Google-Smtp-Source: ABdhPJxjCy5rY9GW/plzyHOnK6iURSx0UDghYYPDH+1WKpplsjKeqcSvl+cSjFLlOuMUfB39tKozoWThA+WJJVRo6Aw= X-Received: by 2002:a05:6000:10c7:b0:206:135e:c84e with SMTP id b7-20020a05600010c700b00206135ec84emr20503574wrx.12.1649586675478; Sun, 10 Apr 2022 03:31:15 -0700 (PDT) MIME-Version: 1.0 References: <64c0ef49-4618-8eca-c826-bd2a840c284b@loongson.cn> <20220331184719.GH7074@brightrain.aerifal.cx> <1fec7c01-ea91-aa7c-d6d5-474c00d9347c@loongson.cn> <20220406160042.GB8499@voyager> <8dfcd620-4143-7450-8429-a89ed2264620@loongson.cn> <20220409131939.GK7074@brightrain.aerifal.cx> <20220409133044.GL7074@brightrain.aerifal.cx> In-Reply-To: <20220409133044.GL7074@brightrain.aerifal.cx> From: Arnd Bergmann Date: Sun, 10 Apr 2022 12:30:59 +0200 X-Gmail-Original-Message-ID: Message-ID: To: musl@lists.openwall.com Cc: Christian Brauner Content-Type: text/plain; charset="UTF-8" Subject: Re: [musl] Re: add loongarch64 port On Sat, Apr 9, 2022 at 3:31 PM Rich Felker wrote: > > Actually, if there aren't yet archs lacking SYS_clone, this API > regression may be a good argument not to drop SYS_clone on new archs > yet until there's a way for new archs to get the same behavior > (unspecified stack size). That is a good point, but it also appears that the behavior of clone3() is unintentional here, I'm fairly sure it was meant to be a drop-in replacement for clone() with additional features. Not sure what the best fix for this is, as the check for size==0 was clearly intentional, but seems to prevent this from working. A special flag to ignore the size, or a magic size value like -1ull might work, but neither of them is a great interface. Arnd