Re: [PATCH 2/2] perf trace: Handle NULL pointer dereference in trace__syscall_info()

2019-06-17 Thread Leo Yan
On Mon, Jun 17, 2019 at 02:32:03PM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Jun 17, 2019 at 05:11:40PM +0800, Leo Yan escreveu: > > trace__init_bpf_map_syscall_args() invokes trace__syscall_info() to > > retrieve system calls information, it always passes NULL for 'evsel' > > argument; when

Re: [PATCH 2/2] perf trace: Handle NULL pointer dereference in trace__syscall_info()

2019-06-17 Thread Arnaldo Carvalho de Melo
Em Mon, Jun 17, 2019 at 05:11:40PM +0800, Leo Yan escreveu: > trace__init_bpf_map_syscall_args() invokes trace__syscall_info() to > retrieve system calls information, it always passes NULL for 'evsel' > argument; when id is an invalid value then the logging will try to > output event name, this tri

[PATCH 2/2] perf trace: Handle NULL pointer dereference in trace__syscall_info()

2019-06-17 Thread Leo Yan
trace__init_bpf_map_syscall_args() invokes trace__syscall_info() to retrieve system calls information, it always passes NULL for 'evsel' argument; when id is an invalid value then the logging will try to output event name, this triggers NULL pointer dereference. This patch directly uses string "un