diff options
| author | Linus Torvalds <torvalds@woody.osdl.org> | 2006-11-28 20:28:41 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-11-28 20:28:41 -0500 |
| commit | 707badb80b90d15d97f46155e6af432bd52789a3 (patch) | |
| tree | 56f4aea5043aa4473e67412208b51230e497239a /kernel/unwind.c | |
| parent | b6a10886442364ceb20115bb3836764a7d99a83b (diff) | |
| parent | c547c77ee4d0408907847f64c403df1bf2f9c7a0 (diff) | |
Merge branch 'for-linus' of git://one.firstfloor.org/home/andi/git/linux-2.6
* 'for-linus' of git://one.firstfloor.org/home/andi/git/linux-2.6:
[PATCH] x86-64: Use stricter in process stack check for unwinder
[PATCH] i386: Fix compilation with UP genericarch
[PATCH] x86-64: Fix warning in io_apic.c
[PATCH] x86-64: work around gcc4 issue with -Os in Dwarf2 stack unwind
[PATCH] x86_64: Align data segment to PAGE_SIZE boundary
Diffstat (limited to 'kernel/unwind.c')
| -rw-r--r-- | kernel/unwind.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/kernel/unwind.c b/kernel/unwind.c index f7e50d16dbf6..ed0a21d4a902 100644 --- a/kernel/unwind.c +++ b/kernel/unwind.c | |||
| @@ -938,8 +938,11 @@ int unwind(struct unwind_frame_info *frame) | |||
| 938 | else { | 938 | else { |
| 939 | retAddrReg = state.version <= 1 ? *ptr++ : get_uleb128(&ptr, end); | 939 | retAddrReg = state.version <= 1 ? *ptr++ : get_uleb128(&ptr, end); |
| 940 | /* skip augmentation */ | 940 | /* skip augmentation */ |
| 941 | if (((const char *)(cie + 2))[1] == 'z') | 941 | if (((const char *)(cie + 2))[1] == 'z') { |
| 942 | ptr += get_uleb128(&ptr, end); | 942 | uleb128_t augSize = get_uleb128(&ptr, end); |
| 943 | |||
| 944 | ptr += augSize; | ||
| 945 | } | ||
| 943 | if (ptr > end | 946 | if (ptr > end |
| 944 | || retAddrReg >= ARRAY_SIZE(reg_info) | 947 | || retAddrReg >= ARRAY_SIZE(reg_info) |
| 945 | || REG_INVALID(retAddrReg) | 948 | || REG_INVALID(retAddrReg) |
| @@ -963,9 +966,7 @@ int unwind(struct unwind_frame_info *frame) | |||
| 963 | if (cie == NULL || fde == NULL) { | 966 | if (cie == NULL || fde == NULL) { |
| 964 | #ifdef CONFIG_FRAME_POINTER | 967 | #ifdef CONFIG_FRAME_POINTER |
| 965 | unsigned long top, bottom; | 968 | unsigned long top, bottom; |
| 966 | #endif | ||
| 967 | 969 | ||
| 968 | #ifdef CONFIG_FRAME_POINTER | ||
| 969 | top = STACK_TOP(frame->task); | 970 | top = STACK_TOP(frame->task); |
| 970 | bottom = STACK_BOTTOM(frame->task); | 971 | bottom = STACK_BOTTOM(frame->task); |
| 971 | # if FRAME_RETADDR_OFFSET < 0 | 972 | # if FRAME_RETADDR_OFFSET < 0 |
