From: Oleg Nesterov Date: Sun, 29 Jul 2012 18:22:29 +0000 (+0200) Subject: uprobes: Uprobe_mmap/munmap needs list_for_each_entry_safe() X-Git-Tag: v3.6-rc1~32^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=665605a2a207dbe1fa429b474f932d6ea138ba92;p=pandora-kernel.git uprobes: Uprobe_mmap/munmap needs list_for_each_entry_safe() The bug was introduced by me in 449d0d7c ("uprobes: Simplify the usage of uprobe->pending_list"). Yes, we do not care about uprobe->pending_list after return and nobody can remove the current list entry, but put_uprobe(uprobe) can actually free it and thus we need list_for_each_safe(). Reported-by: Srikar Dronamraju Signed-off-by: Oleg Nesterov Acked-by: Srikar Dronamraju Cc: Anton Arapov Link: http://lkml.kernel.org/r/20120729182229.GA20329@redhat.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed