Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4676905imm; Tue, 9 Oct 2018 03:35:22 -0700 (PDT) X-Google-Smtp-Source: ACcGV60zSuHHo2rUkCVTkOY4Pit4nzOL4msFuRmZBoXUIwvDSwNgW2bIzz/rawRewORGn8xwAXml X-Received: by 2002:a63:d208:: with SMTP id a8-v6mr23224331pgg.99.1539081322402; Tue, 09 Oct 2018 03:35:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539081322; cv=none; d=google.com; s=arc-20160816; b=yy+uIGdU8xjSY3SzZyKbdVYfUHntJP1S7+cR89Yy4LZ2u5eYmwDlfE2ZJA/vOjxZQJ bbUtb9wqMpukmQe8dtNNHxUTdefVxU/7rvqPaoSQ81/17dTVFyc760mdgj4AdHwZVarI Sw+vFVJkBBgmk8FKTgxhKa0bBrGMhZSA05S2ZxsdE6oxfN9EiEe4gqyHSk1heF0g5E5+ 7sIj+h3CxsConMTxd6zmmO0mLq8uALdpmE3vh/cJ/i1PbkARpJH92W6UQ60sOWNOp5Hf DpnwNRA+yIkXmZAOpNLfkamOZSag6zN58eghoxHHkBc30tbYXyVBPLL71TolN8qbdnR0 /feQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Q1mkjTQ9qRcdd6GpH2V2QofvTNOOlkJCm0/pN7I4uSM=; b=t8zsmDSiVifN6pDmwLVtQlhiKhonnaX9+2R+tIHwYpm4AW9VZTPGz6SW6PHcvYxBgR TpCVFoRN9YaRKzZs4erjVTNlX116FK/p5lLIxegIho4pkonHxVOFg/12EJAIIE/BWoDx FIRl9vyhnDQs1lxRZ6ZNsmBLq6YSPfEsRhKqWEdghTMhNSYTRugi4HvP0jKG/rKNzlS9 10Uy75TFCHmfZt7UYsK/rLIlpDcUcpC28q9emNvg3LV9ykM9LKLS2RoKPe9bAQcLhxmo pyq7pckYuf8CSVTiru1YgYnGAUlmYRcEqh+xoTraUZCgy88xiwhpKOX9zvHr/sKHqJIt WwgA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k192-v6si19995544pgc.415.2018.10.09.03.35.07; Tue, 09 Oct 2018 03:35:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726672AbeJIRtc (ORCPT + 99 others); Tue, 9 Oct 2018 13:49:32 -0400 Received: from smtp03.citrix.com ([162.221.156.55]:47494 "EHLO SMTP03.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726418AbeJIRtc (ORCPT ); Tue, 9 Oct 2018 13:49:32 -0400 X-IronPort-AV: E=Sophos;i="5.54,360,1534809600"; d="scan'208";a="67353696" From: Roger Pau Monne To: CC: Roger Pau Monne , Boris Ostrovsky , Juergen Gross , Subject: [PATCH] xen/pvh: increase early stack size Date: Tue, 9 Oct 2018 12:32:37 +0200 Message-ID: <20181009103237.52527-1-roger.pau@citrix.com> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While booting on an AMD EPYC box the stack canary would detect stack overflows when using the current PVH early stack size (256). Switch to using the value defined by BOOT_STACK_SIZE, which prevents the stack overflow. Signed-off-by: Roger Pau Monné --- Cc: Boris Ostrovsky Cc: Juergen Gross Cc: xen-devel@lists.xenproject.org --- arch/x86/xen/xen-pvh.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/xen/xen-pvh.S b/arch/x86/xen/xen-pvh.S index ca2d3b2bf2af..58722a052f9c 100644 --- a/arch/x86/xen/xen-pvh.S +++ b/arch/x86/xen/xen-pvh.S @@ -181,7 +181,7 @@ canary: .fill 48, 1, 0 early_stack: - .fill 256, 1, 0 + .fill BOOT_STACK_SIZE, 1, 0 early_stack_end: ELFNOTE(Xen, XEN_ELFNOTE_PHYS32_ENTRY, -- 2.19.0