From patchwork Fri May 8 12:30:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 226072 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CCEF9C38A2A for ; Fri, 8 May 2020 13:23:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A5083208DB for ; Fri, 8 May 2020 13:23:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588944218; bh=pVVlKO1UvyZw+Re9QxKjrJrqRNOU00yFDpihtZAWbrQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=gv05vrvd3Nsq03x/XJ3BAgb0dmkga8Drgh1OcnTbafeXZERe8BXglLvi9bkWRkk4y aKLfQnsWHpgMB3SpLc4oT5OXDHatQXQP7WeClOwYT1sn6vUJg6AW9yLEYTOEhMOhNe M45hhESsW6SmY2b+/5+F1bCdPzm3lD9Y7bzO2fOU= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728277AbgEHMh4 (ORCPT ); Fri, 8 May 2020 08:37:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:52590 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728272AbgEHMhy (ORCPT ); Fri, 8 May 2020 08:37:54 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2199B21473; Fri, 8 May 2020 12:37:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588941474; bh=pVVlKO1UvyZw+Re9QxKjrJrqRNOU00yFDpihtZAWbrQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0zoRjKOw0/wfSSsaJeG5nPVZWoS8bsKYkscipLTzMtWsa3UaMdsfa/oVIimONNSiF yfvBc8kEX7RzxwizTyPXcJ1yvwSV9vM4R7TgSq4p3W9/nhxlLMNKwCDI1okLsr1nRP 84hSbJTuzliULa8WAvB4aQiaj4SMRdTjnb1Lyt7o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jan Beulich , Andy Lutomirski , Thomas Gleixner Subject: [PATCH 4.4 046/312] x86/LDT: Print the real LDT base address Date: Fri, 8 May 2020 14:30:37 +0200 Message-Id: <20200508123127.795627191@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200508123124.574959822@linuxfoundation.org> References: <20200508123124.574959822@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Jan Beulich commit 0d430e3fb3f7cdc13c0d22078b820f682821b45a upstream. This was meant to print base address and entry count; make it do so again. Fixes: 37868fe113ff "x86/ldt: Make modify_ldt synchronous" Signed-off-by: Jan Beulich Acked-by: Andy Lutomirski Link: http://lkml.kernel.org/r/56797D8402000078000C24F0@prv-mh.provo.novell.com Signed-off-by: Thomas Gleixner Signed-off-by: Greg Kroah-Hartman --- arch/x86/kernel/process_64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/kernel/process_64.c +++ b/arch/x86/kernel/process_64.c @@ -128,7 +128,7 @@ void release_thread(struct task_struct * if (dead_task->mm->context.ldt) { pr_warn("WARNING: dead process %s still has LDT? <%p/%d>\n", dead_task->comm, - dead_task->mm->context.ldt, + dead_task->mm->context.ldt->entries, dead_task->mm->context.ldt->size); BUG(); }