Fix: kretprobe: null ptr deref on session destroy
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Wed, 17 Mar 2021 14:40:56 +0000 (10:40 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 17 Mar 2021 17:46:04 +0000 (13:46 -0400)
commit92cc3e7f76a545a2cd4828576971f1eea83f4e68
tree081ea142767abddf78de06a5c59480b8a3de576c
parent49c603ef2dc6969f4454f0d849af00ee24bb7f04
Fix: kretprobe: null ptr deref on session destroy

The `filter_bytecode_runtime_head` list is currently not initialized for
the return event of the kretprobe. This caused a kernel null ptr
dereference when destroying a session. It can reproduced with the
following commands:

  lttng create
  lttng enable-event -k --function=lttng_test_filter_event_write my_event
  lttng start
  lttng stop
  lttng destroy

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I1162ce8b10dd7237a26331531f048346b984eee7
lttng-events.c
This page took 0.025542 seconds and 4 git commands to generate.