From: Keshavamurthy Anil S Date: Tue, 22 Nov 2005 22:15:49 +0000 (-0800) Subject: [IA64] Remove getting break_num by decoding instruction X-Git-Tag: v2.6.15-rc4~4^2~14^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a94bcfd2a18edcf368b3128c7df07b58e529932;p=pandora-kernel.git [IA64] Remove getting break_num by decoding instruction break.b always sets cr.iim to 0 and the current code tries to get the break_num by decoding instruction. However, their seems to be a race condition while reading the regs->cr_iip, as on other cpu the break.b at regs->cr_iip might have been replaced with the original instruction as a result of unregister_kprobe() and hence decoding instruction to obtain break_num will result in wrong value in this case. Also includes changes to kprobes.c which now has to handle break number zero. Signed-off-by: Anil S Keshavamurthy Signed-off-by: Tony Luck --- Reading git-diff-tree failed