Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1296849 > unrolled thread

[PATCH] x86/LDT: fix a log message

Started by"Jan Beulich" <JBeulich@suse.com>
First post2015-12-22 16:50 +0100
Last post2015-12-29 12:40 +0100
Articles 3 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] x86/LDT: fix a log message "Jan Beulich" <JBeulich@suse.com> - 2015-12-22 16:50 +0100
    Re: [PATCH] x86/LDT: fix a log message Andy Lutomirski <luto@amacapital.net> - 2015-12-23 00:00 +0100
    [tip:x86/mm] x86/LDT: Print the real LDT base address tip-bot for Jan Beulich <tipbot@zytor.com> - 2015-12-29 12:40 +0100

#1296849 — [PATCH] x86/LDT: fix a log message

From"Jan Beulich" <JBeulich@suse.com>
Date2015-12-22 16:50 +0100
Subject[PATCH] x86/LDT: fix a log message
Message-ID<qIxmi-5MK-21@gated-at.bofh.it>
This was meant to print base address and entry count; make it do so
again.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
---
 arch/x86/kernel/process_64.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- 4.4-rc6/arch/x86/kernel/process_64.c
+++ 4.4-rc6-x86-LDT-message/arch/x86/kernel/process_64.c
@@ -125,7 +125,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();
 		}



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1297135

FromAndy Lutomirski <luto@amacapital.net>
Date2015-12-23 00:00 +0100
Message-ID<qIE4q-1tI-7@gated-at.bofh.it>
In reply to#1296849
On Tue, Dec 22, 2015 at 7:42 AM, Jan Beulich <JBeulich@suse.com> wrote:
> This was meant to print base address and entry count; make it do so
> again.

Acked-by: Andy Lutomirski <luto@kernel.org>

Lesson of the day: I should have renamed that variable.

--Andy

>
> Signed-off-by: Jan Beulich <jbeulich@suse.com>
> ---
>  arch/x86/kernel/process_64.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- 4.4-rc6/arch/x86/kernel/process_64.c
> +++ 4.4-rc6-x86-LDT-message/arch/x86/kernel/process_64.c
> @@ -125,7 +125,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();
>                 }
>
>
>



-- 
Andy Lutomirski
AMA Capital Management, LLC
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1298959 — [tip:x86/mm] x86/LDT: Print the real LDT base address

Fromtip-bot for Jan Beulich <tipbot@zytor.com>
Date2015-12-29 12:40 +0100
Subject[tip:x86/mm] x86/LDT: Print the real LDT base address
Message-ID<qL0Nc-8hx-3@gated-at.bofh.it>
In reply to#1296849
Commit-ID:  0d430e3fb3f7cdc13c0d22078b820f682821b45a
Gitweb:     http://git.kernel.org/tip/0d430e3fb3f7cdc13c0d22078b820f682821b45a
Author:     Jan Beulich <JBeulich@suse.com>
AuthorDate: Tue, 22 Dec 2015 08:42:44 -0700
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Tue, 29 Dec 2015 12:34:38 +0100

x86/LDT: Print the real LDT base address

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 <jbeulich@suse.com>
Acked-by: Andy Lutomirski <luto@kernel.org>
Link: http://lkml.kernel.org/r/56797D8402000078000C24F0@prv-mh.provo.novell.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
 arch/x86/kernel/process_64.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c
index e835d26..b9d99e0 100644
--- a/arch/x86/kernel/process_64.c
+++ b/arch/x86/kernel/process_64.c
@@ -125,7 +125,7 @@ void release_thread(struct task_struct *dead_task)
 		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();
 		}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web