From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84453C43214 for ; Thu, 26 Aug 2021 17:27:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6107C6108E for ; Thu, 26 Aug 2021 17:27:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233472AbhHZR2p (ORCPT ); Thu, 26 Aug 2021 13:28:45 -0400 Received: from mail.skyhub.de ([5.9.137.197]:37214 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229817AbhHZR2o (ORCPT ); Thu, 26 Aug 2021 13:28:44 -0400 Received: from zn.tnic (p200300ec2f131000d5458c5ba0c26ca5.dip0.t-ipconnect.de [IPv6:2003:ec:2f13:1000:d545:8c5b:a0c2:6ca5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 732D91EC0559; Thu, 26 Aug 2021 19:27:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1629998871; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7X9hy+BK0MrLN+oeN6aQ5lOMX3urBZA+yGYtxctLkPE=; b=qnSZuoWB5DiqTWlKZVhTTUXX5fDHmTwQKf69YtyR2gK7Okaxf51kEEXQRZ7yFdn7PwQHAB glYmFOZbCt2RGHOMxQymkOY92ddCqNcxJYamRl1mNIklK4lLYci3Dv/YkV7ZL8pnv7E6xb Z70jtdgdJqJVQksx/YGoAIFLokcvtes= Date: Thu, 26 Aug 2021 19:28:33 +0200 From: Borislav Petkov To: "H.J. Lu" Cc: Yu-cheng Yu , the arch/x86 maintainers , "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , LKML , "open list:DOCUMENTATION" , Linux-MM , linux-arch , Linux API , Arnd Bergmann , Andy Lutomirski , Balbir Singh , Cyrill Gorcunov , Dave Hansen , Eugene Syromiatnikov , Florian Weimer , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , Randy Dunlap , "Ravi V. Shankar" , Dave Martin , Weijiang Yang , Pengfei Xu , Haitao Huang , Rick P Edgecombe Subject: Re: [PATCH v29 25/32] x86/cet/shstk: Handle thread shadow stack Message-ID: References: <20210820181201.31490-1-yu-cheng.yu@intel.com> <20210820181201.31490-26-yu-cheng.yu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-api@vger.kernel.org On Thu, Aug 26, 2021 at 10:22:29AM -0700, H.J. Lu wrote: > > > + /* > > > + * Earlier clone() does not pass stack_size. Use RLIMIT_STACK and > > > > What is "earlier clone()"? > > clone() doesn't have stack size info which was added to clone3(). /me goes and reads the manpage... clone3() The clone3() system call provides a superset of the functionality of the older clone() interface. It also provides a number of API improvements, including: space for additional flags bits; cleaner separation in the use of various argu‐ ments; and the ability to specify the size of the child's stack area. Aha, Yu-cheng, pls use those words to make your comment understandable. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette