Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp941380imm; Fri, 22 Jun 2018 07:51:01 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIQMNzI63XXaJdfRuzRju2HqcsmwSN0aJBCN+C5piJQj3s9DYaVl58mGjwHti9Bu4uoQHeu X-Received: by 2002:a17:902:8f94:: with SMTP id z20-v6mr1984340plo.337.1529679061778; Fri, 22 Jun 2018 07:51:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529679061; cv=none; d=google.com; s=arc-20160816; b=JsS//2s7W0Yyd+werWZzeF9pCwcrRPQUPzevd4MvcTP1qF2YI9LiSUWD54OfyxKpmj EdZRnD9ZQ5eUkVVXc9/MHlTx7dlJ7ObdEYPp87Yd0aWjIQuGLBOq3uHOUeLQ4/F9td9s 0XoiAOWheDTd6XPD/TSXxvz/2L3xuilmMr/VvKjL+hnbkeetvdBguZbYjlvslMN3UgUu QMY71N/e4U36t9YBYD4+97fXflXoh3jcQzlSEyUK3wC9jWNgzXy1/Z6pbv12gj/PKZXY QCOr5Qpdprwipb2zQ2+z3knELwrr7YBtE2otEW88SCR0tRcgV8K3KcVRgAZNePUCgEXv /8nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=WQ/5ntQkIrbh3yPdzRHfIxElQS3+HO0a0GpyPRAACCM=; b=pa1xOZPu//ukPPvDhJnCkkNldao2oMXvvXCCwWU0lzA84AIGXeUmjnJfXcvnMnrAb/ HiS6dLMjecvB11RpIMTpE53xb/jVs6tPPLmQXVpkKJ0hdk8xtk/3PzUUHaojkF1opOCS RnUzJOJL44GyAhzhcvoOzhbjpB68pM22hYm22fMP9iumrC0XcZkDOzWUCwrn77GIuHAL SC4T1SaHEqOPSBXaoWNkbXX+tPxhoX4Di5EapusQ5mCDlAhs4RiFXpiDSWsCoU5xnOOq t+VxO3HJm4mJsgmmrKXRNl2o9kO6kb8gCIsRitgH5YHMyI4Cen6H5UgkiTJvTIwiDRUP oavw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nKc4nGlv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t9-v6si7512166pfm.136.2018.06.22.07.50.47; Fri, 22 Jun 2018 07:51:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nKc4nGlv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933585AbeFVOt2 (ORCPT + 99 others); Fri, 22 Jun 2018 10:49:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:47328 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932819AbeFVOt1 (ORCPT ); Fri, 22 Jun 2018 10:49:27 -0400 Received: from mail-wr0-f182.google.com (mail-wr0-f182.google.com [209.85.128.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C8A87243FA for ; Fri, 22 Jun 2018 14:49:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1529678967; bh=hFHhAZjn3CDgO2D1TP231BOAJv/5b3dIUwD4Po92XIA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=nKc4nGlvtYDd8v2iXoUpGtp6SNg21XOCXodRguE9d/07KbvG+JvH6/AqmpQsVjtbC rmhbxCtld7AUw/VCt2BnuKDBAX+gaFqBIY1lwU/+sAD0SbN1wgwGiSCN1T4eHY5LCT /Vr7zVAvI699e5188cta2zBRfx9JjJuRhHup4sHE= Received: by mail-wr0-f182.google.com with SMTP id l14-v6so1915591wrq.13 for ; Fri, 22 Jun 2018 07:49:26 -0700 (PDT) X-Gm-Message-State: APt69E1qP0rB8DX8qO4njveHwkLFD3LP5eHQAnnGKXV7FuTY1DsBV4vd rEX9b4VN5vkgObxZonJGrFx/wEuAnTCRnNffUEdHgA== X-Received: by 2002:adf:b1c2:: with SMTP id r2-v6mr1750804wra.221.1529678965320; Fri, 22 Jun 2018 07:49:25 -0700 (PDT) MIME-Version: 1.0 References: <20180621211754.12757-1-h.peter.anvin@intel.com> <20180621211754.12757-8-h.peter.anvin@intel.com> In-Reply-To: <20180621211754.12757-8-h.peter.anvin@intel.com> From: Andy Lutomirski Date: Fri, 22 Jun 2018 07:49:13 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 7/7] x86/ldt,ptrace: provide regset access to the LDT To: "H. Peter Anvin" Cc: LKML , "H. Peter Anvin" , "H. Peter Anvin" , Ingo Molnar , Thomas Gleixner , Andrew Lutomirski , "Bae, Chang Seok" , "Metzger, Markus T" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 21, 2018 at 2:18 PM H. Peter Anvin, Intel wrote: > > From: "H. Peter Anvin" > > Provide ptrace/regset access to the LDT, if one exists. This > interface provides both read and write access. The write code is > unified with modify_ldt(); the read code doesn't have enough > similarity so it has been kept made separate. For this and for the GDT, you've chosen to use struct user_desc as your format instead of using a native hardware descriptor format. Any particular reason why? If nothing else, it will bloat core files a bit more than needed.