Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp625741pxb; Thu, 26 Aug 2021 10:30:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAUg90jcVKuj+M8QxNIsogerA5DpJZ3YweaDyVYPW0lES1LYhdnc0NrSSZcRKGmCd52Kcd X-Received: by 2002:a05:6402:3d8:: with SMTP id t24mr5176457edw.214.1629999030175; Thu, 26 Aug 2021 10:30:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629999030; cv=none; d=google.com; s=arc-20160816; b=ZFTAQ9ioV/hYdHktmTwShQsNXol876pO73SaUpyxzOKfta4D5YaaXTFMc+mJ2vAt50 Ivt7sMXEmY/Vz46lzQeuCSlWgOFS520afh0zZ4S4gtaJaXSFnlGpKlCBTbRe5bkvRMzh tRdmsThlivmC985ScLx6DKU0JymlDIPkxlPIEC8IL5be8N/PjGID8nPHXmHPoshSe/kW ciLDiYRZrIUP2rXRkPLBDfuONSBahZwE3JksJFjbd+Sxr0R83J5f+C8nlJZC/uSIHiMx +Q4060XSC5josO2sNajVZQzbedjuOgcUo/ouNl1KiN15ZJsqWt99iQjgy2lRV9cJ1Doy V0hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7X9hy+BK0MrLN+oeN6aQ5lOMX3urBZA+yGYtxctLkPE=; b=aRkzSYcTUVtjnCXQkPJLix7A6bOz9oQpWF5O9E50V8z4JQxhxYnT1qoegsWD/NOSEF gaHzVdsXuuB/oqUZFP2S7bDJM5ck7Ea4JwncfVOjHKD65wsBmLjP2BklpvmEk6LaWLiy Xap/5rDhL2sg7el3iW/t75neAUaZY9/4tmlZnVl9g/FUGvZ/QeGr6TrDNfMHSxDrYC5Y eU0K1KSj67kP//jDjjAhOeSs42Wc4pgDGxI5qCjOm+Bp5Pfb/a+URwzDg0rJa+xFv4PY 94NIQHKfcXNoIz7JE2+VVm7vPKPyfhYGRVojq3KeXLEFRnVmAaIjeR8QHptfTwk/b3/X jVDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=qnSZuoWB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b20si3524305edw.120.2021.08.26.10.29.59; Thu, 26 Aug 2021 10:30:30 -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; dkim=pass header.i=@alien8.de header.s=dkim header.b=qnSZuoWB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243212AbhHZR2q (ORCPT + 99 others); Thu, 26 Aug 2021 13:28:46 -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-kernel@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