An error occurred while fetching folder content.
kprobes: initialize before using a hlist
Ananth N Mavinakayanahalli authored
commit d496aab5 upstream.

Commit ef53d9c5

 ("kprobes: improve kretprobe scalability with hashed
locking") introduced a bug where we can potentially leak
kretprobe_instances since we initialize a hlist head after having used
it.

Initialize the hlist head before using it.

Reported by: Jim Keniston <jkenisto@us.ibm.com>
Acked-by: default avatarJim Keniston <jkenisto@us.ibm.com>
Signed-off-by: default avatarAnanth N Mavinakayanahalli <ananth@in.ibm.com>
Acked-by: default avatarMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Srinivasa D S <srinivasa@in.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
6ee7663e
Name Last commit Last update
..
debug Merge branch 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux
events perf events: Fix ring_buffer_wakeup() brown paperbag bug
gcov gcov: disable CONSTRUCTORS for UML
irq genirq: Fix race condition when stopping the irq thread
power PM / Hibernate: Do not leak memory in error/test code paths
time Revert "clockevents: Set noop handler in clockevents_exchange_device()"
trace ftrace: Fix unregister ftrace_ops accounting
.gitignore Update kernel/.gitignore with new auto-generated files
Kconfig.freezer container freezer: implement freezer cgroup subsystem
Kconfig.hz sched: fix SCHED_HRTICK dependency
Kconfig.locks arch:Kconfig.locks Remove unused config option.
Kconfig.preempt sched: Isolate preempt counting in its own config option
Makefile Merge branch 'devel-stable' of http://ftp.arm.linux.org.uk/pub/linux/arm/kernel/git-cur/linux-2.6-arm
acct.c pass a struct path to vfs_statfs
async.c kernel: Map most files to use export.h instead of module.h
audit.c kernel: Map most files to use export.h instead of module.h
audit.h audit: make functions static
audit_tree.c audit_tree,rcu: Convert call_rcu(__put_tree) to kfree_rcu()
audit_watch.c kill path_lookup()
auditfilter.c netlink: kill loginuid/sessionid/sid members from struct netlink_skb_parms
auditsc.c kernel: Map most files to use export.h instead of module.h
backtracetest.c backtrace: replace timer with tasklet + completions
bounds.c memcg: remove direct page_cgroup-to-page pointer
capability.c kernel: Map most files to use export.h instead of module.h
cgroup.c cgroup: fix to allow mounting a hierarchy by name
cgroup_freezer.c
compat.c
configs.c
cpu.c
cpu_pm.c
cpuset.c
crash_dump.c
cred.c
delayacct.c
dma.c
elfcore.c
exec_domain.c
exit.c
extable.c
fork.c
freezer.c
futex.c
futex_compat.c
groups.c
hrtimer.c
hung_task.c
irq_work.c
itimer.c
jump_label.c
kallsyms.c
kexec.c
kfifo.c
kmod.c
kprobes.c
ksysfs.c
kthread.c
latencytop.c
lockdep.c
lockdep_internals.h
lockdep_proc.c
lockdep_states.h
module.c
mutex-debug.c
mutex-debug.h
mutex.c
mutex.h
notifier.c
nsproxy.c
padata.c
panic.c
params.c
pid.c
pid_namespace.c
posix-cpu-timers.c
posix-timers.c
printk.c
profile.c
ptrace.c
range.c
rcu.h
rcupdate.c
rcutiny.c
rcutiny_plugin.h
rcutorture.c
rcutree.c
rcutree.h
rcutree_plugin.h
rcutree_trace.c
relay.c
res_counter.c
resource.c
rtmutex-debug.c
rtmutex-debug.h
rtmutex-tester.c
rtmutex.c
rtmutex.h
rtmutex_common.h
rwsem.c
sched.c
sched_autogroup.c