[patch 09/16] kprobes/arm: fix cache flush address for instruction stub

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Greg KH
Date: Thursday, May 8, 2008 - 10:42 am

2.6.25-stable review patch.  If anyone has any objections, please let us
know.

------------------
From: Nicolas Pitre <nico@cam.org>

It is more useful to flush the cache with the actual buffer address
rather than the address containing a pointer to the buffer.

Mainline commit: 8f79ff0cb5330a92032c30ff586745d3016b34ca

Signed-off-by: Nicolas Pitre <nico@marvell.com>
Acked-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

---
 arch/arm/kernel/kprobes.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/arch/arm/kernel/kprobes.c
+++ b/arch/arm/kernel/kprobes.c
@@ -66,7 +66,7 @@ int __kprobes arch_prepare_kprobe(struct
 			return -ENOMEM;
 		for (is = 0; is < MAX_INSN_SIZE; ++is)
 			p->ainsn.insn[is] = tmp_insn[is];
-		flush_insns(&p->ainsn.insn, MAX_INSN_SIZE);
+		flush_insns(p->ainsn.insn, MAX_INSN_SIZE);
 		break;
 
 	case INSN_GOOD_NO_SLOT:	/* instruction doesn't need insn slot */

-- 
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 00/16] Linux 2.6.25 -stable review, Greg KH, (Thu May 8, 10:41 am)
[patch 02/16] mm: fix usemap initialization, Greg KH, (Thu May 8, 10:41 am)
[patch 08/16] b43: Fix dual-PHY devices, Greg KH, (Thu May 8, 10:42 am)
[patch 09/16] kprobes/arm: fix cache flush address for ins ..., Greg KH, (Thu May 8, 10:42 am)
[patch 11/16] b43: Fix some TX/RX locking issues, Greg KH, (Thu May 8, 10:42 am)
[patch 12/16] x86 PCI: call dmi_check_pciprobe(), Greg KH, (Thu May 8, 10:42 am)
Re: [patch 00/16] Linux 2.6.25 -stable review, Willy Tarreau, (Thu May 8, 10:51 am)
Re: [patch 00/16] Linux 2.6.25 -stable review, Willy Tarreau, (Thu May 8, 11:13 am)
Re: [patch 00/16] Linux 2.6.25 -stable review, Greg KH, (Thu May 8, 11:20 am)
Re: [patch 00/16] Linux 2.6.25 -stable review, Greg KH, (Thu May 8, 11:22 am)
Re: [patch 00/16] Linux 2.6.25 -stable review, Greg KH, (Thu May 8, 11:25 am)
Re: [patch 00/16] Linux 2.6.25 -stable review, Willy Tarreau, (Thu May 8, 11:33 am)
Re: [patch 00/16] Linux 2.6.25 -stable review, Len Brown, (Thu May 8, 12:16 pm)
Re: [patch 08/16] b43: Fix dual-PHY devices, John W. Linville, (Thu May 8, 12:38 pm)
Re: [patch 00/16] Linux 2.6.25 -stable review, Greg KH, (Thu May 8, 12:43 pm)
Re: [patch 11/16] b43: Fix some TX/RX locking issues, John W. Linville, (Thu May 8, 1:04 pm)
Re: [patch 00/16] Linux 2.6.25 -stable review, Li Zefan, (Thu May 8, 5:51 pm)