The FRRouting Protocol Suite
Find a file
Louis Scalbert 520518c3ad bgpd: fix bgp_pbr_match_entry memory leak
> ==238132==ERROR: LeakSanitizer: detected memory leaks
>
> Direct leak of 160 byte(s) in 1 object(s) allocated from:
>     #0 0x7fd79f0b4a57 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:154
>     #1 0x7fd79ea6f8dd in qcalloc lib/memory.c:105
>     #2 0x5586b26995f9 in bgp_pbr_match_entry_alloc_intern bgpd/bgp_pbr.c:1155
>     #3 0x7fd79ea17d79 in hash_get lib/hash.c:147
>     #4 0x5586b26a551d in bgp_pbr_policyroute_add_to_zebra_unit bgpd/bgp_pbr.c:2522
>     #5 0x5586b26a6436 in bgp_pbr_policyroute_add_to_zebra bgpd/bgp_pbr.c:2672
>     #6 0x5586b26a8089 in bgp_pbr_handle_entry bgpd/bgp_pbr.c:2876
>     #7 0x5586b26a8912 in bgp_pbr_update_entry bgpd/bgp_pbr.c:2939
>     #8 0x5586b2829472 in bgp_zebra_announce bgpd/bgp_zebra.c:1618
>     #9 0x5586b282ab4b in bgp_zebra_announce_table bgpd/bgp_zebra.c:1766
>     #10 0x5586b2824b99 in bgp_zebra_tm_connect bgpd/bgp_zebra.c:1091
>     #11 0x7fd79eb7798e in event_call lib/event.c:2011
>     #12 0x7fd79ea42ff1 in frr_run lib/libfrr.c:1216
>     #13 0x5586b2503a15 in main bgpd/bgp_main.c:545
>     #14 0x7fd79e429d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58

Fixes: d114b0d739 ("bgpd: inject policy route entry from bgp into zebra pbr entries.")
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
2025-04-14 13:09:34 +02:00
.github tests: ci: add ARM to docker based CI test 2025-01-18 01:59:47 +00:00
alpine docker: Set ABUILD_APK_INDEX_OPTS for frr build 2024-06-14 16:33:32 +03:00
babeld Merge pull request #16735 from zmw12306/babel_nonzeroMBZ 2025-04-11 08:42:45 -04:00
bfdd Merge pull request #18586 from zmw12306/bfd_find_disc 2025-04-10 10:30:05 -04:00
bgpd bgpd: fix bgp_pbr_match_entry memory leak 2025-04-14 13:09:34 +02:00
debian Merge pull request #17375 from opensourcerouting/fix/use_pcre2 2024-11-18 12:34:18 -05:00
doc doc: add a diagram for config datastore cleanup on file reads 2025-04-08 07:04:19 +00:00
docker docker: add ubuntu24-ci docker image support 2025-01-12 02:48:29 +00:00
eigrpd eigrpd: clean up variable-shadow warnings 2025-04-08 14:41:27 -04:00
fpm fpm: guard against garbage in unused address bytes 2025-01-29 16:48:37 +01:00
gdb lib: add simplified native msg support 2023-12-26 08:34:56 -05:00
grpc build: throw in a few more XREF_SETUP 2024-05-09 18:02:49 +02:00
include isisd: vlan-subif isis neighbor 2024-08-01 09:09:35 +08:00
isisd Merge pull request #18597 from pguibert6WIND/end_b6_encaps_extensions 2025-04-11 17:00:13 +02:00
ldpd ldpd: clean up warnings from -Wshadow 2025-04-08 14:41:27 -04:00
lib lib, staticd, isisd: add B6.Encaps codepoint extensions 2025-04-11 09:36:29 +02:00
m4 m4: Update ax_lua to support Lua 5.4 2025-01-13 14:13:36 +02:00
mgmtd Merge pull request #18601 from LabNConsulting/chopps/mgmtd-candidate-overwrite 2025-04-09 09:51:47 -04:00
mlag build: throw in a few more XREF_SETUP 2024-05-09 18:02:49 +02:00
nhrpd Merge pull request #17915 from mjstapp/compile_wshadow 2025-04-09 09:59:06 +02:00
ospf6d ospf6: clean up -Wshadow warnings 2025-04-08 14:41:27 -04:00
ospfclient tools,pceplib,ospfclient: clean up variable-shadow warnings 2025-04-08 14:41:27 -04:00
ospfd ospfd: clean up -Wshadow warnings 2025-04-08 14:41:27 -04:00
pathd pathd: clean up variable-shadow warnings 2025-04-08 14:41:27 -04:00
pbrd pbrd,staticd,vrrpd: clean up variable-shadow warnings 2025-04-08 14:41:27 -04:00
pceplib tools,pceplib,ospfclient: clean up variable-shadow warnings 2025-04-08 14:41:27 -04:00
pimd Merge pull request #17915 from mjstapp/compile_wshadow 2025-04-09 09:59:06 +02:00
pkgsrc build: homologize path handling 2024-01-27 19:02:52 +01:00
python tools: Fix syntax raw parsing for make-foobar helper 2024-11-18 11:04:27 +02:00
qpb *: add XREF_SETUP() to libraries and utilites 2024-05-02 23:03:08 +02:00
redhat redhat: Make sure zeromq is always disabled 2025-03-19 13:51:54 +01:00
ripd lib,ripd: resolve clang SA warnings 2025-04-08 14:41:27 -04:00
ripngd ripng: clean up -Wshadow compiler warnings 2025-04-08 14:41:27 -04:00
sharpd sharpd: clean up variable-shadowing compiler warnings 2025-04-08 14:41:27 -04:00
snapcraft bfdd: remove control socket obsolete code 2024-07-25 10:37:11 -03:00
staticd lib, staticd, isisd: add B6.Encaps codepoint extensions 2025-04-11 09:36:29 +02:00
tests tests: Add more tests to bgp_rpki_topo1 test 2025-04-12 17:00:02 -04:00
tools Merge pull request #18628 from raja-rajasekar/rajasekarr/fix_frr_reload_srv6 2025-04-11 17:07:05 +02:00
vrrpd pbrd,staticd,vrrpd: clean up variable-shadow warnings 2025-04-08 14:41:27 -04:00
vtysh vtysh: clean up variable-shadow warnings 2025-04-08 14:41:27 -04:00
watchfrr watchfrr: increase restart timer 20s -> 90s 2024-12-09 12:35:42 -05:00
yang yang: Pyang errors in frr-bfdd.yang 2025-04-08 14:27:28 +05:30
zebra Merge pull request #18645 from louis-6wind/fix-zebra-pbr-leak 2025-04-11 19:54:03 -04:00
.clang-format *: Modify clang-format column limit to 100 2024-09-26 09:58:32 -04:00
.dockerignore docker: Make docker image on CentOS 7 2019-11-26 19:29:30 +00:00
.flake8 style: add format checker config that matches FRR style standards 2023-04-18 05:18:26 -04:00
.git-blame-ignore-revs tools: Add black formatting commit to .git-blame-ignore-revs 2024-04-28 12:50:51 +03:00
.gitignore python: add tool to expand typesafe definitions 2024-04-29 17:37:49 +02:00
.isort.cfg style: add format checker config that matches FRR style standards 2023-04-18 05:18:26 -04:00
.pylintrc tests: add another directory to search path for pylint 2025-03-24 05:10:36 +00:00
.travis.yml lib: libyang2 add missed conversion 2021-05-17 22:13:59 -04:00
bootstrap.sh build: turn on automake warnings (& symlinks) 2021-04-21 15:42:37 +02:00
buildtest.sh build: update packaging & docs for dir changes 2024-01-27 19:01:19 +01:00
config.version.in build: carry --with-pkg-extra-version into tarballs 2018-10-24 15:11:50 +02:00
configure.ac configure: add -Wshadow option 2025-04-08 14:41:26 -04:00
COPYING *: sort out & explain licenses used in FRR 2023-02-09 12:46:13 +01:00
Makefile.am build: homologize path handling 2024-01-27 19:02:52 +01:00
README.md doc: Fix the link that points to Slack invitation in README 2022-03-24 13:13:37 +02:00
stamp-h.in Initial revision 2002-12-13 20:15:29 +00:00
version.h build: make builddir include path consistent 2021-04-21 15:42:33 +02:00

Icon

FRRouting

FRR is free software that implements and manages various IPv4 and IPv6 routing protocols. It runs on nearly all distributions of Linux and BSD and supports all modern CPU architectures.

FRR currently supports the following protocols:

  • BGP
  • OSPFv2
  • OSPFv3
  • RIPv1
  • RIPv2
  • RIPng
  • IS-IS
  • PIM-SM/MSDP
  • LDP
  • BFD
  • Babel
  • PBR
  • OpenFabric
  • VRRP
  • EIGRP (alpha)
  • NHRP (alpha)

Installation & Use

For source tarballs, see the releases page.

For Debian and its derivatives, use the APT repository at https://deb.frrouting.org/.

Instructions on building and installing from source for supported platforms may be found in the developer docs.

Once installed, please refer to the user guide for instructions on use.

Community

The FRRouting email list server is located here and offers the following public lists:

Topic List
Development dev@lists.frrouting.org
Users & Operators frog@lists.frrouting.org
Announcements announce@lists.frrouting.org

For chat, we currently use Slack. You can join by clicking the "Slack" link under the Participate section of our website.

Contributing

FRR maintains developer's documentation which contains the project workflow and expectations for contributors. Some technical documentation on project internals is also available.

We welcome and appreciate all contributions, no matter how small!

Security

To report security issues, please use our security mailing list:

security [at] lists.frrouting.org