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

Message ID 20221108015130.28326-1-shangxiaojing@huawei.com
Headers
Series tracing: kprobe: Fix some bug in kprobe_event_gen_test.c |

Message

Shang XiaoJing Nov. 8, 2022, 1:51 a.m. UTC
  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(-)