Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp295446pxu; Wed, 7 Oct 2020 03:24:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJLhlG74K25DHXQqxof3bdNIi4GsN/gmx3pVEzfItQV244vrfnwt49JP6HVKiVvMOhB6ee X-Received: by 2002:a50:d787:: with SMTP id w7mr2767805edi.296.1602066286101; Wed, 07 Oct 2020 03:24:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602066286; cv=none; d=google.com; s=arc-20160816; b=Cq2ZWCMyZo6gG2CFuXu33EHrQbi/2+a2A2FqKi4v1y/ZwbYY1XYFlSHczpq0QJevsc pB+F6UFaXmkku/FSMxrQ8pq1AKrR+t9gHiE4JK0yTQBMeuCnirynJhwP+4WS5PsnTA7D GjuhtM2bjMPGJRueg9wtEOdfB5tUrHXx70xgHXOOiQe1nURZlGPXMI2UJJn5wpQvFOrC ElLYhafsK0H5TrVHL6WlBTjT1mrw4gRUj6fYtXL+/P/kzDTdLw6JbxXfg0hcrH03W+/p INKptQ0wmUxxTZkGWSlsSvKofSrnwn6B2DD4QaQ1aquxr60m74VClkBJ6lr0XAwbz4OY WUZw== 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=EjlDcao8CF9HZ4JjBqgI5Gt7CsFtwoBb+21SYX5Jz1o=; b=o8WnPxhdOVDqHNkGAHbuWYcGtvh4t/B2tokCICpGrF9TcYU72DRbvyak9H1lSwgRws CWObr40M/wNGg9ZjxSvl+QjBhWAHTEtyGygX2+rIg6qe+u0Yy++H7Twz/TsW15a9cXQW KiwmObDWRwpf8juiUBLrfRLmK4zb3OrwNMTlyF4zYiD6WEoVbPeLZus9BczB9FiD2rLM SITIgPcLUsnOKedLua0yD1kpw0H/5Pvg+jTyE9KhrsPgiCkZWglkzaYvgEKtszqoeMCU zqCBxzFuB+j4sCepkthc2MvzQGmVYJVWjDPXOlyTrFp/iwK9CxA8gdEoBQlFI0nj8kxC rbMQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f25si1428130ejh.697.2020.10.07.03.24.22; Wed, 07 Oct 2020 03:24:46 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728135AbgJGKUk (ORCPT + 99 others); Wed, 7 Oct 2020 06:20:40 -0400 Received: from foss.arm.com ([217.140.110.172]:41422 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728102AbgJGKUW (ORCPT ); Wed, 7 Oct 2020 06:20:22 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7B3FB11B3; Wed, 7 Oct 2020 03:20:21 -0700 (PDT) Received: from arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7B80F3F71F; Wed, 7 Oct 2020 03:20:19 -0700 (PDT) Date: Wed, 7 Oct 2020 11:20:16 +0100 From: Dave Martin To: Dave Hansen Cc: "H.J. Lu" , "Chang S. Bae" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Andy Lutomirski , the arch/x86 maintainers , Len Brown , Michael Ellerman , Tony Luck , "Ravi V. Shankar" , GNU C Library , linux-arch , Linux API , LKML Subject: Re: [RFC PATCH 0/4] x86: Improve Minimum Alternate Stack Size Message-ID: <20201007102015.GG6642@arm.com> References: <20200929205746.6763-1-chang.seok.bae@intel.com> <20201005134534.GT6642@arm.com> <20201006092532.GU6642@arm.com> <20201006152553.GY6642@arm.com> <7663eff0-6c94-f6bf-f3e2-93ede50e75ed@intel.com> <20201006170020.GB6642@arm.com> <3545e3f3-a716-5e82-bd24-450eb74b4563@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3545e3f3-a716-5e82-bd24-450eb74b4563@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 06, 2020 at 11:30:42AM -0700, Dave Hansen wrote: > On 10/6/20 10:00 AM, Dave Martin wrote: > > On Tue, Oct 06, 2020 at 08:33:47AM -0700, Dave Hansen wrote: > >> On 10/6/20 8:25 AM, Dave Martin wrote: > >>> Or are people reporting real stack overruns on x86 today? > >> We have real overruns. We have ~2800 bytes of XSAVE (regisiter) state > >> mostly from AVX-512, and a 2048 byte MINSIGSTKSZ. > > Right. Out of interest, do you believe that's a direct consequence of > > the larger kernel-generated signal frame, or does the expansion of > > userspace stack frames play a role too? > > The kernel-generated signal frame is entirely responsible for the ~2800 > bytes that I'm talking about. > > I'm sure there are some systems where userspace plays a role, but those > are much less of a worry at the moment, since the kernel-induced > overflows mean an instant crash that userspace has no recourse for. Ack, that sounds pretty convincing. Cheers ---Dave