Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp854225ybt; Tue, 7 Jul 2020 01:47:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcucA1oLKmrNXYszFnTU+ywdmVxXzNtLaqROYiU7thHpvKK6sH24O0IFNTbkOI+T45/qSj X-Received: by 2002:aa7:d04e:: with SMTP id n14mr36816339edo.161.1594111650047; Tue, 07 Jul 2020 01:47:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594111650; cv=none; d=google.com; s=arc-20160816; b=E56TrCAYgunWbS4TQITMfbLmwkVIEi4kRkjcCOCqyPFtRp7qgiiR5LzPYYA/kBrEhA rRdslNJlmnOkdXzsx0XyhMR/HgwAPWaYs2XuowUgv/akVoAWuOO0olku1tIQN0RmIgZp lix74bYVhuLzFsn0iXkDy9OJ3xIFYMEcVOqvhIJBLvV8GbxS8P5hhZKq4MTLHGjtgi4D 8JMGogxPh9/3Ms9VFs29hZAt7H07UHB9IvPcE9ebfs0ixNEX/sqFGcsyy2NQ5EmB738H F4w+KAXRNFkmPZBRUrODmwI+pwsKwcBX/5KCW6wlIand/lpxz8XT86DtlOdISC80s9JD KsXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=EA/3cNstrWMDO33kM+6w6yj9HV+JpNqfCcL3vex3MqA=; b=BYbYUAPRXnY3hsf9MCuH1vwsW28nGdevSNLToKf2MShs9H2Cm2aqwFOdeQ9Cz1dhsb /1O1sB8E9of8BPVhlypkx8RnLfYqCyTzWpRpuLfLjcpM4dUFeAoHKKuw1f2b1aOopN8H vYc0q8Vd6ayQJurnxTnOifW9WeLkPJM3prgU3ayhVd7e9RaorEYxb3z1S/adVRRgUxGw Rl0ejZMMDgGs7I7GVUUx1jhwlEDKEro7cfwnpwA7wcafWQMqK3LF154Kp8JJDbdkkQPj SOiWtg7fe+aLP8iEDla2dXs5SJpD3piU1xzltpT/3ryBpI9vMEze/YjSsXlq6ZQQTWCI 5VMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aurel32.net header.s=202004.hall header.b=NY41Kgrk; 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 lg17si14489998ejb.440.2020.07.07.01.47.05; Tue, 07 Jul 2020 01:47: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=@aurel32.net header.s=202004.hall header.b=NY41Kgrk; 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 S1727079AbgGGIq5 (ORCPT + 99 others); Tue, 7 Jul 2020 04:46:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725941AbgGGIq5 (ORCPT ); Tue, 7 Jul 2020 04:46:57 -0400 X-Greylist: delayed 1842 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 07 Jul 2020 01:46:56 PDT Received: from hall.aurel32.net (hall.aurel32.net [IPv6:2001:bc8:30d7:100::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D322FC061755 for ; Tue, 7 Jul 2020 01:46:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=aurel32.net ; s=202004.hall; h=In-Reply-To:Content-Type:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Content-Transfer-Encoding:From:Reply-To: Subject:Content-ID:Content-Description:X-Debbugs-Cc; bh=EA/3cNstrWMDO33kM+6w6yj9HV+JpNqfCcL3vex3MqA=; b=NY41KgrkrgsH2VNw4Wic5NBxK9 c433IFDrijCmG1B8UIlMAmnn6z5XT/rSqRN/mWZetxCKQPZpPI+GQPmNaRVCa+aRIIJHMa+jiETQX mr1BcuChG5I87In8K454cVqCgL5qxPMDnrBZ3c39F9zoBAVEPLXk+MNzFS94+07pP8anA941E6ou0 QN7Hp8M0IFTRmOegfKWxLNg4oipRcjKN4iNMfw1OWj7lM8sH5Yzi5BQGJDef+4CF95vsX3PM+u0D1 PJ+d1A8Famx0l00G7jd+937pJ+Yvnn7SUhs86TVTWNrpJAl8WlLkxV+ix9QdoGFrWcIvwcqHpm0VX 0AbvaWrA==; Received: from [2a01:e35:2fdd:a4e1:fe91:fc89:bc43:b814] (helo=ohm.rr44.fr) by hall.aurel32.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jsilv-00036X-9u; Tue, 07 Jul 2020 10:16:11 +0200 Received: from aurel32 by ohm.rr44.fr with local (Exim 4.94) (envelope-from ) id 1jsils-007vhX-RV; Tue, 07 Jul 2020 10:16:08 +0200 Date: Tue, 7 Jul 2020 10:16:08 +0200 From: Aurelien Jarno To: Andreas Schwab Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] riscv: use 16KB kernel stack on 64-bit Message-ID: <20200707081608.GA1889963@aurel32.net> Mail-Followup-To: Andreas Schwab , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.14.0 (2020-05-02) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-07-06 14:32, Andreas Schwab wrote: > With the current 8KB stack size there are frequent overflows in a 64-bit > configuration. > > Signed-off-by: Andreas Schwab > --- > arch/riscv/include/asm/thread_info.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/arch/riscv/include/asm/thread_info.h b/arch/riscv/include/asm/thread_info.h > index 1dd12a0cbb2b..464a2bbc97ea 100644 > --- a/arch/riscv/include/asm/thread_info.h > +++ b/arch/riscv/include/asm/thread_info.h > @@ -12,7 +12,11 @@ > #include > > /* thread information allocation */ > +#ifdef CONFIG_64BIT > +#define THREAD_SIZE_ORDER (2) > +#else > #define THREAD_SIZE_ORDER (1) > +#endif > #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) > > #ifndef __ASSEMBLY__ > -- > 2.26.2 Following the discussion on the mailing list, I have been trying this patch on my system for a few days, and it indeed seems more stable. I just wonder if you should Cc stable@ so that it is backported in older kernel versions. -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurelien@aurel32.net http://www.aurel32.net