All of lore.kernel.org
 help / color / mirror / Atom feed
* [iproute2 PATCH 0/2] Fix segfault in lib/bpf.c
@ 2020-05-26 16:04 Andrea Claudi
  2020-05-26 16:04 ` [iproute2 PATCH 1/2] Revert "bpf: replace snprintf with asprintf when dealing with long buffers" Andrea Claudi
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Andrea Claudi @ 2020-05-26 16:04 UTC (permalink / raw)
  To: netdev; +Cc: stephen, dsahern, jhs

Jamal reported a segfault in bpf_make_custom_path() when custom pinning is
used. This is caused by commit c0325b06382cb ("bpf: replace snprintf with
asprintf when dealing with long buffers").

As the only goal of that commit is to get rid of a truncation warning when
compiling lib/bpf.c, revert it and fix the warning checking for snprintf
return value

Andrea Claudi (2):
  Revert "bpf: replace snprintf with asprintf when dealing with long
    buffers"
  bpf: Fixes a snprintf truncation warning

 lib/bpf.c | 155 +++++++++++++++---------------------------------------
 1 file changed, 41 insertions(+), 114 deletions(-)

-- 
2.25.4


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-05-28 11:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-26 16:04 [iproute2 PATCH 0/2] Fix segfault in lib/bpf.c Andrea Claudi
2020-05-26 16:04 ` [iproute2 PATCH 1/2] Revert "bpf: replace snprintf with asprintf when dealing with long buffers" Andrea Claudi
2020-05-26 16:04 ` [iproute2 PATCH 2/2] bpf: Fixes a snprintf truncation warning Andrea Claudi
2020-05-26 21:27 ` [iproute2 PATCH 0/2] Fix segfault in lib/bpf.c Daniel Borkmann
2020-05-27 22:13 ` Stephen Hemminger
2020-05-28 11:14   ` Jamal Hadi Salim

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.