Message ID | 20170519212636.30440-4-riel@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D61DC601C2 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 19 May 2017 21:27:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BD01C206AC for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 19 May 2017 21:27:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B1886284AF; Fri, 19 May 2017 21:27:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 657D2206AC for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 19 May 2017 21:27:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Q8Oi4f+GEnVOvU1zMQHNfqeiXNt/h5rSYNIDhnwNph8=; b=ioQsTCbHtLhRr7LPEFkNsEX4X2 x6lv1B9Y8Z3m5XehZcfV01lZI/Th8yLW+gSQDa9is6DTYxXEQH5NAsgWWk0H2q6atHmouPSw4VuFv XWWH0ZCqU/qqjlGxbnjAP6bAxz2scgw4qncUsJzwzhhNe5/R5eFgg4M8L7rqU5WBqNoN1/GEcotyc nLRJSiz/y62/I3osAzhQ2hGfkrNm0y5Ap0yAF8T7alIFMuYqcJoJGAssole7KYwurZxeI9SDGcFUb BpL8Z1An1D3qj/JbLFNgpBJDbw1Bs2nAG7JslESZxP5u/zPbrnbqvetluBDMULN9C6ZNrGOIwZ8ti 1UarAswA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dBpRC-0001f8-PJ; Fri, 19 May 2017 21:27:54 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dBpR0-0001TC-5l for linux-arm-kernel@bombadil.infradead.org; Fri, 19 May 2017 21:27:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=j7s1aWHx9MpwcBjTiksunYuv20wnpfjG7F7ywF+DC7o=; b=PTU8eCh2REbxnEnuvRxJH0slx 0N5+OQEgICskIhb592qv62PE7YnKybNbK91W/W5GOaVlvaejd8sE9ECA10WMW61Uk0aP0Dkbg8/lb J3ijkZDEPRCiVzT4jymVme6fG2uBTRewd4dPes2kE7zTgR2uznfPTWUQmxPiNWUwOeTE7nK7Q3T4h CSxiVLej1wcmpxo756XURKGpRDzvn6JFrrychket17CQcgFnecAun3/+leX+7lQImUSpbbG5tCGt6 FFjOdVJFZQ0ci6mNJ3sRjghPmmf3/lIzmRiBtiyxdg3rjVUiz62ADRRMqBsJY8Px8W9042fcw/nRp INc9rMj5A==; Received: from shelob.surriel.com ([96.67.55.147]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dBpQw-0000Mv-J1 for linux-arm-kernel@lists.infradead.org; Fri, 19 May 2017 21:27:40 +0000 Received: from [2603:3005:d05:2b00:224:e8ff:fe38:995c] (helo=annuminas.surriel.com) by shelob.surriel.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from <riel@redhat.com>) id 1dBpQ0-00048z-Ku; Fri, 19 May 2017 17:26:40 -0400 Received: from annuminas.surriel.com (localhost.localdomain [127.0.0.1]) by annuminas.surriel.com (8.15.2/8.14.5) with ESMTP id v4JLQeGM000761; Fri, 19 May 2017 17:26:40 -0400 Received: (from riel@localhost) by annuminas.surriel.com (8.15.2/8.15.2/Submit) id v4JLQe09000760; Fri, 19 May 2017 17:26:40 -0400 X-Authentication-Warning: annuminas.surriel.com: riel set sender to riel@redhat.com using -f From: riel@redhat.com To: linux-kernel@vger.kernel.org Subject: [PATCH 3/5] x86: ascii armor the x86_64 boot init stack canary Date: Fri, 19 May 2017 17:26:34 -0400 Message-Id: <20170519212636.30440-4-riel@redhat.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170519212636.30440-1-riel@redhat.com> References: <20170519212636.30440-1-riel@redhat.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170519_222738_721170_FB595C62 X-CRM114-Status: UNSURE ( 8.99 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: tytso@mit.edu, keescook@chromium.org, ysato@users.sourceforge.jp, linux-sh@vger.kernel.org, catalin.marinas@arm.com, x86@kernel.org, luto@amacapital.net, danielmicay@gmail.com, hpa@zytor.com, mingo@kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/x86/include/asm/stackprotector.h b/arch/x86/include/asm/stackprotector.h index dcbd9bcce714..8abedf1d650e 100644 --- a/arch/x86/include/asm/stackprotector.h +++ b/arch/x86/include/asm/stackprotector.h @@ -74,6 +74,7 @@ static __always_inline void boot_init_stack_canary(void) get_random_bytes(&canary, sizeof(canary)); tsc = rdtsc(); canary += tsc + (tsc << 32UL); + canary &= CANARY_MASK; current->stack_canary = canary; #ifdef CONFIG_X86_64