Files
linux/samples
Daniel T. Lee 335d4f8182 samples: bpf: fix: seg fault with NULL pointer arg
[ Upstream commit d59dd69d55 ]

When NULL pointer accidentally passed to write_kprobe_events,
due to strlen(NULL), segmentation fault happens.
Changed code returns -1 to deal with this situation.

Bug issued with Smatch, static analysis.

Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-11-06 13:05:30 +01:00
..
2010-10-29 13:14:39 -05:00
2018-03-16 10:56:03 +01:00