All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] uprobes: mmap_region() corrupts mm->mm_rb if uprobe_mmap() fails
@ 2012-08-19 17:09 Oleg Nesterov
  2012-08-19 17:09 ` Oleg Nesterov
  2012-08-19 17:10 ` [PATCH 1/1] " Oleg Nesterov
  0 siblings, 2 replies; 5+ messages in thread
From: Oleg Nesterov @ 2012-08-19 17:09 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Anton Arapov, Ingo Molnar, Srikar Dronamraju, William Cohen,
	linux-kernel

Hello.

I guess this patch was forgotten due to the lengthy discussion,
see http://marc.info/?t=134349366100001

I am re-sending it because it fixes the serious and easy-to-trigger
problem. Just do something like

	# echo "p /bin/true:OFFSET_OF_INVALID_INSN" > tracing/uprobe_events
	# /bin/true

to crash the kernel. I think this is 3.6/stable material, the
patch is simple and obviously can't make any harm.


Just in case... Yes, this is not what we want in the long term,
but there is no simple fix for now and we need other changes in
uprobe.c before we can teach mmap_region() to handle the error
from uprobe_mmap().

Oleg.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-08-21 16:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-19 17:09 [PATCH 0/1] uprobes: mmap_region() corrupts mm->mm_rb if uprobe_mmap() fails Oleg Nesterov
2012-08-19 17:09 ` Oleg Nesterov
2012-08-19 17:13   ` Oleg Nesterov
2012-08-19 17:10 ` [PATCH 1/1] " Oleg Nesterov
2012-08-21 16:37   ` [tip:perf/urgent] uprobes: Fix mmap_region()'s mm-> mm_rb corruption " tip-bot for Oleg Nesterov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.