+ i386-fix-one-case-of-stuck-dwarf2-unwinder.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     i386: fix one case of stuck dwarf2 unwinder

has been added to the -mm tree.  Its filename is

     i386-fix-one-case-of-stuck-dwarf2-unwinder.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: i386: fix one case of stuck dwarf2 unwinder
From: Chuck Ebbert <76306.1226@xxxxxxxxxxxxxx>

When the dwarf2 unwinder does its thing, sometimes it ends up in kernel
startup code in head.S.  Changing arch_unw_user_mode() to treat that case
as if it were user mode is the easy fix.

Signed-off-by: Chuck Ebbert <76306.1226@xxxxxxxxxxxxxx>
Cc: Jan Beulich <jbeulich@xxxxxxxxxx>
Cc: Andi Kleen <ak@xxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 include/asm-i386/unwind.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff -puN include/asm-i386/unwind.h~i386-fix-one-case-of-stuck-dwarf2-unwinder include/asm-i386/unwind.h
--- a/include/asm-i386/unwind.h~i386-fix-one-case-of-stuck-dwarf2-unwinder
+++ a/include/asm-i386/unwind.h
@@ -71,13 +71,14 @@ extern asmlinkage int arch_unwind_init_r
                                                                           void *arg),
                                                void *arg);
 
+extern void stext(void); /* real start of kernel text */
 static inline int arch_unw_user_mode(const struct unwind_frame_info *info)
 {
 #if 0 /* This can only work when selector register and EFLAGS saves/restores
          are properly annotated (and tracked in UNW_REGISTER_INFO). */
 	return user_mode_vm(&info->regs);
 #else
-	return info->regs.eip < PAGE_OFFSET
+	return info->regs.eip < (unsigned long)stext
 	       || (info->regs.eip >= __fix_to_virt(FIX_VDSO)
 	            && info->regs.eip < __fix_to_virt(FIX_VDSO) + PAGE_SIZE)
 	       || info->regs.esp < PAGE_OFFSET;
_

Patches currently in -mm which might be from 76306.1226@xxxxxxxxxxxxxx are

ptrace-make-pid-of-child-process-available-for.patch
i386-print-stack-size-in-oops-messages.patch
sleazy-fpu-feature-i386-support.patch
i386-early-fault-handler.patch
i386-fix-recursive-faults-during-oops-when-current.patch
i386-show_registers-try-harder-to-print-failing.patch
i386-entryserror_code-is-not-safe-for-kprobes.patch
i386-fix-one-case-of-stuck-dwarf2-unwinder.patch
spinlock_debug-dont-recompute-jiffies_per_loop.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux