]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86: kprobes: fix swapped segment registers in kretprobe
authorRoland McGrath <roland@redhat.com>
Sat, 17 Jul 2010 01:17:12 +0000 (18:17 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:29:56 +0000 (10:29 -0700)
commit43197d90b5c24db796ff4448b3ace7f46048dab3
tree97b75c05d4df6d22607380051da8abeb61f6c8d7
parentb55e938d07d4af42af8997a78bce880b5778f41d
x86: kprobes: fix swapped segment registers in kretprobe

commit a197479848a2f1a2a5c07cffa6c31ab5e8c82797 upstream.

In commit f007ea26, the order of the %es and %ds segment registers
got accidentally swapped, so synthesized 'struct pt_regs' frames
have the two values inverted.  It's almost sure that these values
never matter, and that they also never differ.  But wrong is wrong.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kernel/kprobes.c