Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp120725ybt; Mon, 6 Jul 2020 05:35:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZn0VTaAkfRRgkGEmJrilZMywEHog5CjKYdGt3ECZZhNbzvutje6ir8LTOGhAWvIdD8pL7 X-Received: by 2002:a05:6402:888:: with SMTP id e8mr57429998edy.210.1594038938729; Mon, 06 Jul 2020 05:35:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594038938; cv=none; d=google.com; s=arc-20160816; b=TyBH3a3TYO3DR9Qg3PR37jxKzu31BkTC5q+HEBZnlfN71T/1HIfQx9evfXFQJo8WX2 Y/aeTkTq3famdZty3JQrOxSurUX16azyWRoincqfEHJy4C7S+MaMRwDzS6LV0w5vj549 t4zxyG4J4gTpBiKAWb9QOoB58SFIY+6K0uhfgtzrilXeVjABKtqRdykPzlTgS6mi0Vv1 mZyN5jGQbQez9JLEAkx/kb5NLXjZvXJSTq2CZDJFCLCLRSDqTBBhiAbG2wnZbrYT2+i0 uHgYot8c0E/NzIjxfir3yDIqI5ek+h7JE4Bb1AtkSv93AQKzV8R4Lh68PQyiP1eYhamp GpmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id:date :cc:subject:to:from; bh=6nxjHhOtJ9mjeuBR2WyCzUGfA3TlL+XJgTmN4mARefY=; b=L4M3fWzxp4COddAzX37dswWYerd8LyGiCh8e1MWimgstxTCWP3u4mrmn6S2w0CduaH 7OLVEHeGzFAnp6swBMZSFpVxkJcJCrSBC6Gmq+NisQdMKc6uP0lqkymxS/vvH8QqjrKS 7vMcchSNB0fCQW+lzJpwU2u00vDcYgVY3wO/mEzuG6fHBuLceI44RGDFTURjF5RcMXHr BazNVh8OPOwVGzxXZ4c4OtVeCXNwq0sIJQI4CvvSCJRyU1YlHuGKnMD2Eks2t8rj3Sja HaaHqqHcN3//Vsj4QyyVzK/D33TTxFP4H7p8Ww3TQ0ZnxtwQdl5tV9i7xg4RgQEM5iue ZP+w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j28si14560371edj.142.2020.07.06.05.35.15; Mon, 06 Jul 2020 05:35:38 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729109AbgGFMc2 (ORCPT + 99 others); Mon, 6 Jul 2020 08:32:28 -0400 Received: from mx2.suse.de ([195.135.220.15]:57772 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728414AbgGFMc1 (ORCPT ); Mon, 6 Jul 2020 08:32:27 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 1C59DAC46; Mon, 6 Jul 2020 12:32:27 +0000 (UTC) From: Andreas Schwab To: linux-riscv@lists.infradead.org Subject: [PATCH] riscv: use 16KB kernel stack on 64-bit CC: linux-kernel@vger.kernel.org X-Yow: There's a lot of BIG MONEY in MISERY if you have an AGENT!! Date: Mon, 06 Jul 2020 14:32:26 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."