From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751823AbdAaK7q (ORCPT ); Tue, 31 Jan 2017 05:59:46 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:38255 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751482AbdAaK7g (ORCPT ); Tue, 31 Jan 2017 05:59:36 -0500 Reply-To: nicolas.dichtel@6wind.com Subject: Re: [PATCH v4 3/7] x86: put msr-index.h in uapi References: <1484304406-10820-1-git-send-email-nicolas.dichtel@6wind.com> <1485183521-13002-1-git-send-email-nicolas.dichtel@6wind.com> <1485183521-13002-4-git-send-email-nicolas.dichtel@6wind.com> <20170123165245.7zy7nf3cx5o4vvh3@pd.tnic> <20170130145151.GW27312@n2100.armlinux.org.uk> To: Russell King - ARM Linux , Borislav Petkov Cc: arnd@arndb.de, mmarek@suse.com, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, airlied@linux.ie, davem@davemloft.net, slash.tmp@free.fr, daniel.vetter@ffwll.ch, msalter@redhat.com, jengelh@inai.de, hch@infradead.org, tklauser@distanz.ch, mpe@ellerman.id.au, Ingo Molnar From: Nicolas Dichtel Organization: 6WIND Message-ID: <3d68da69-353d-2fd0-ee1d-6ec3a0285607@6wind.com> Date: Tue, 31 Jan 2017 11:58:57 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <20170130145151.GW27312@n2100.armlinux.org.uk> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 30/01/2017 à 15:51, Russell King - ARM Linux a écrit : > On Mon, Jan 23, 2017 at 05:52:45PM +0100, Borislav Petkov wrote: >> On Mon, Jan 23, 2017 at 03:58:37PM +0100, Nicolas Dichtel wrote: >>> This header file is exported, thus move it to uapi. >> >> Why? Why is this damn thing exported in the first place? >> >> The moment we decide to change an MSR name or even remove it from that >> file, we break userspace. And what for, because userspace is using some >> arbitrary header file which was meant to be for the kernel solely. >> >> NAKed-by: Borislav Petkov > > Here on my Fedora system: > > $ less /usr/include/asm/msr-index.h > #ifndef _ASM_X86_MSR_INDEX_H > #define _ASM_X86_MSR_INDEX_H > > /* CPU model specific register (MSR) numbers */ > > /* x86-64 specific MSRs */ > #define MSR_EFER 0xc0000080 /* extended feature register */ > #define MSR_STAR 0xc0000081 /* legacy mode SYSCALL target */ > #define MSR_LSTAR 0xc0000082 /* long mode SYSCALL target */ > ... > > Like it or not, it is _already_ exported to userspace, so it forms > part of the user ABI. You can try to remove it from userspace view, > but if anyone has already started to use it, removing it will already > cause a userspace regression. > > So, I don't think we have any grounds to NAK these patches on the > basis of "we don't want this to be visible to userspace because it > may cause a userspace regression." Removing it from userspace view > is likely to cause a userspace regression. > > This patch just makes sure that such a regression doesn't happen when > kbuild stops exporting files in _non_-uapi directories. Yes, it was the only goal. My patch changes nothing! Is it possible to find a consensus about this patch? Ingo ?