From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934094Ab3GPWRY (ORCPT ); Tue, 16 Jul 2013 18:17:24 -0400 Received: from terminus.zytor.com ([198.137.202.10]:59814 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933295Ab3GPWRW (ORCPT ); Tue, 16 Jul 2013 18:17:22 -0400 Message-ID: <51E5C65A.9010605@zytor.com> Date: Tue, 16 Jul 2013 15:16:58 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Yinghai Lu CC: Kees Cook , Steven Rostedt , Linux Kernel Mailing List , Thomas Gleixner , Ingo Molnar , the arch/x86 maintainers , Seiji Aguchi , Fenghua Yu , Frederic Weisbecker , "Paul E. McKenney" , Suresh Siddha , PaX Team Subject: Re: [PATCH v5] x86: make sure IDT is page aligned References: <20130716183441.GA14232@www.outflux.net> <1374006818.6458.62.camel@gandalf.local.home> <51E5C31C.8000606@zytor.com> In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/16/2013 03:13 PM, Yinghai Lu wrote: > > ok, then should change > >> +/* No need to be aligned, but done to keep all IDTs defined the same way. */ >> +gate_desc trace_idt_table[NR_VECTORS] __page_aligned_bss; > > ==> > >> +/* Only need to be cacheline aligned, but keep all IDTs defined the same way to be page aligned. */ >> +gate_desc trace_idt_table[NR_VECTORS] __page_aligned_bss; It doesn't need to be cacheline aligned, either, to the best of my knowledge. The former comment is more correct. -hpa