[opensuse-kernel] [PATCH] unwind: update for vdso32 compat changes
Commit b0b49f2673f (x86, vdso: Remove compat vdso support) removed
the FIX_VDSO macro defining the vdso area.
This patch updates it to use the vdso pointer and size to define the area
instead.
Signed-off-by: Jeff Mahoney
On 28.04.14 at 14:46,
wrote: Commit b0b49f2673f (x86, vdso: Remove compat vdso support) removed the FIX_VDSO macro defining the vdso area. This patch updates it to use the vdso pointer and size to define the area instead.
Now that I look at it a second time I think the change can be _much_ smaller (and we won't need any backport):
@@ -141,8 +154,7 @@ static inline int arch_unw_user_mode(/*c #else return user_mode_vm(&info->regs) || info->regs.ip < PAGE_OFFSET - || (info->regs.ip >= __fix_to_virt(FIX_VDSO) - && info->regs.ip < __fix_to_virt(FIX_VDSO) + PAGE_SIZE) + || is_vdso32_area(info) || info->regs.sp < PAGE_OFFSET; #endif }
Afaict when is_vdso32_area() returns true, ->regs.ip can only ever be < PAGE_OFFSET, i.e. all we need is to delete the extra check. Jan -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
participants (2)
-
Jan Beulich
-
Jeff Mahoney