[PATCH v2 0/2] tracing: kprobe: Fix some bug in kprobe_event_gen_test.c

From: Shang XiaoJing
Date: Mon Nov 07 2022 - 20:52:55 EST


Due to lack of the checking and setting-NULL on pointer, there are some
null pointer dereference or page fault bugs were found when insert
module, and fixed by this patch set.

---
changes in v2:
- add cc tag.
- improvement on patch 2.

Shang XiaoJing (2):
tracing: kprobe: Fix potential null-ptr-deref on trace_event_file in
kprobe_event_gen_test_exit()
tracing: kprobe: Fix potential null-ptr-deref on trace_array in
kprobe_event_gen_test_exit()

kernel/trace/kprobe_event_gen_test.c | 48 ++++++++++++++++++----------
1 file changed, 32 insertions(+), 16 deletions(-)

--
2.17.1