From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755575AbbDUSJJ (ORCPT ); Tue, 21 Apr 2015 14:09:09 -0400 Received: from mail-lb0-f173.google.com ([209.85.217.173]:36407 "EHLO mail-lb0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754530AbbDUSJE (ORCPT ); Tue, 21 Apr 2015 14:09:04 -0400 MIME-Version: 1.0 In-Reply-To: <1429633649-20169-1-git-send-email-dvlasenk@redhat.com> References: <1429633649-20169-1-git-send-email-dvlasenk@redhat.com> From: Andy Lutomirski Date: Tue, 21 Apr 2015 11:08:42 -0700 Message-ID: Subject: Re: [PATCH] x86/asm/entry/64: better check for canonical address To: Denys Vlasenko Cc: Ingo Molnar , Linus Torvalds , Steven Rostedt , Borislav Petkov , "H. Peter Anvin" , Oleg Nesterov , Frederic Weisbecker , Alexei Starovoitov , Will Drewry , Kees Cook , X86 ML , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 21, 2015 at 9:27 AM, Denys Vlasenko wrote: > This change makes the check exact (no more false positives > on "negative" addresses). Acked-by: Andy Lutomirski I'll take a full implementation of what Intel says over probably unmeasurable performance. If anyone in the AMD camp really cared, we could add X86_BUG_SYSRET_NEEDS_CANONICAL_RCX and use alternatives to patch this out on AMD. I doubt this would buy us much. --Andy