linux-mips
[Top] [All Lists]

[PATCH] fix stack range checking in unwind_stack()

To: linux-mips@linux-mips.org
Subject: [PATCH] fix stack range checking in unwind_stack()
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Wed, 02 Aug 2006 20:52:31 +0900 (JST)
Cc: ralf@linux-mips.org, vagabon.xyz@gmail.com
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Remove wrong division by sizeof(long).

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>

diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c
index 8709a46..9f367a0 100644
--- a/arch/mips/kernel/process.c
+++ b/arch/mips/kernel/process.c
@@ -472,7 +472,7 @@ unsigned long unwind_stack(struct task_s
                return 0;
        }
        if ((unsigned long)*sp < stack_page ||
-           (unsigned long)*sp + info.frame_size / sizeof(long) >
+           (unsigned long)*sp + info.frame_size >
            stack_page + THREAD_SIZE - 32)
                return 0;
 

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] fix stack range checking in unwind_stack(), Atsushi Nemoto <=