From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752964AbbDCMHW (ORCPT ); Fri, 3 Apr 2015 08:07:22 -0400 Received: from mail.skyhub.de ([78.46.96.112]:52001 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752903AbbDCMHU (ORCPT ); Fri, 3 Apr 2015 08:07:20 -0400 Date: Fri, 3 Apr 2015 14:05:17 +0200 From: Borislav Petkov To: Denys Vlasenko Cc: Ingo Molnar , LKML , Andy Lutomirski , Alexei Starovoitov , Frederic Weisbecker , "H. Peter Anvin" , Kees Cook , Linus Torvalds , Oleg Nesterov , Steven Rostedt , Will Drewry Subject: Re: [PATCH] x86/asm/entry/64: Fix MSR_IA32_SYSENTER_CS MSR value Message-ID: <20150403120516.GB3418@pd.tnic> References: <1428054130-25847-1-git-send-email-bp@alien8.de> <20150403112027.GA3418@pd.tnic> <551E7EE0.5010901@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <551E7EE0.5010901@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 03, 2015 at 01:52:00PM +0200, Denys Vlasenko wrote: > Why? Segment selectors aren't "long long", they are in fact "short" > (16-bit ints). > > The "ULL" is used here in wrmsrl not because it's a segment, > but because wrmsrl expects a u64 parameter. > > We can probably add a cast in its definition... Yeah, I meant to not use the naked 0. Cast should be fine. Let me do a patch. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. --