mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86/LDT: fix a log message
@ 2015-12-22 15:42 Jan Beulich
  2015-12-22 22:50 ` Andy Lutomirski
  2015-12-29 11:39 ` [tip:x86/mm] x86/LDT: Print the real LDT base address tip-bot for Jan Beulich
  0 siblings, 2 replies; 3+ messages in thread
From: Jan Beulich @ 2015-12-22 15:42 UTC (permalink / raw)
  To: mingo, tglx, hpa; +Cc: Andy Lutomirski, linux-kernel

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();
 		}




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] x86/LDT: fix a log message
  2015-12-22 15:42 [PATCH] x86/LDT: fix a log message Jan Beulich
@ 2015-12-22 22:50 ` Andy Lutomirski
  2015-12-29 11:39 ` [tip:x86/mm] x86/LDT: Print the real LDT base address tip-bot for Jan Beulich
  1 sibling, 0 replies; 3+ messages in thread
From: Andy Lutomirski @ 2015-12-22 22:50 UTC (permalink / raw)
  To: Jan Beulich; +Cc: Ingo Molnar, Thomas Gleixner, H. Peter Anvin, linux-kernel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [tip:x86/mm] x86/LDT: Print the real LDT base address
  2015-12-22 15:42 [PATCH] x86/LDT: fix a log message Jan Beulich
  2015-12-22 22:50 ` Andy Lutomirski
@ 2015-12-29 11:39 ` tip-bot for Jan Beulich
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Jan Beulich @ 2015-12-29 11:39 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: mingo, hpa, JBeulich, linux-kernel, luto, tglx, jbeulich

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();
 		}

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-12-29 11:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-22 15:42 [PATCH] x86/LDT: fix a log message Jan Beulich
2015-12-22 22:50 ` Andy Lutomirski
2015-12-29 11:39 ` [tip:x86/mm] x86/LDT: Print the real LDT base address tip-bot for Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome