Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757211AbcDHAZ2 (ORCPT ); Thu, 7 Apr 2016 20:25:28 -0400 Received: from mail.kernel.org ([198.145.29.136]:52763 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752530AbcDHAZW (ORCPT ); Thu, 7 Apr 2016 20:25:22 -0400 MIME-Version: 1.0 From: Andy Lutomirski Date: Thu, 7 Apr 2016 17:24:54 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Does __KERNEL_DS serve a purpose? To: X86 ML , "linux-kernel@vger.kernel.org" Cc: kvm list , xen-devel , Borislav Petkov Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 318 Lines: 9 I can't see any reason that we need the __KERNEL_DS segment at all -- I think that everything that uses __KERNEL_DS could use __USER_DS instead. Am I missing anything? This has been bugging me for a while. I mulled over this a bit when trying to understand the sysret_ss_attrs bug and then forgot about it. --Andy