git: 935fc93af157 - main - libalias: Switch to efficient data structure for outgoing traffic

Lutz Donnerhacke lutz at donnerhacke.de
Wed Jun 23 17:47:16 UTC 2021


On Wed, Jun 23, 2021 at 11:08:13AM +0100, Alexander Richardson wrote:
> On Sat, 19 Jun 2021 at 21:10, Lutz Donnerhacke <donner at freebsd.org> wrote:
> > commit 935fc93af157dee352eb4b6c83f8a2a9e7fd9a4e
> > Author:     Lutz Donnerhacke <donner at FreeBSD.org>
> > AuthorDate: 2021-05-27 21:42:54 +0000
> > Commit:     Lutz Donnerhacke <donner at FreeBSD.org>
> > CommitDate: 2021-06-19 20:09:44 +0000
> >
> >     libalias: Switch to efficient data structure for outgoing traffic
[shorten the output to make the messages readable]

> This commit appears to have introduced a SIGBUS when running some of the tests:
> 
> Program terminated with signal SIGBUS, Bus error.
> #0  cmp_out (a=0x80180e080, b=0x5a5a5a5a5a5a5a5a) at
> /usr/src/sys/netinet/libalias/alias_db.c:413
> 413 /usr/src/sys/netinet/libalias/alias_db.c: No such file or directory.
> #0  cmp_out (a=0x80180e080, b=0x5a5a5a5a5a5a5a5a) at
> /usr/src/sys/netinet/libalias/alias_db.c:413
> #1  splay_out_SPLAY (head=head at entry=0x8018100e0,
> elm=elm at entry=0x80180e080) at
> /usr/src/sys/netinet/libalias/alias_db.c:425
> #2  0x00000008010908d9 in splay_out_SPLAY_REMOVE (head=0x8018100e0,
> elm=0x80180e080) at /usr/src/sys/netinet/libalias/alias_db.c:425
> #3  DeleteLink (plnk=plnk at entry=0x7fffffffd530,
> deletePermanent=<optimized out>, deletePermanent at entry=1) at
> /usr/src/sys/netinet/libalias/alias_db.c:883
> #4  0x0000000801091251 in CleanupAliasData (la=0x8018100c0,
> deletePermanent=1) at /usr/src/sys/netinet/libalias/alias_db.c:819
> #5  LibAliasUninit (la=0x8018100c0) at
> /usr/src/sys/netinet/libalias/alias_db.c:2542
[...]

A use after free in the final cleanup.
Thank you for catching this.
It will delay the MFC until this issue is solved.

> Source: https://ci.freebsd.org/job/FreeBSD-main-amd64-test/18438/testReport/junit/sys.netinet.libalias/3_natin/1_portforward/
> See https://ci.freebsd.org/job/FreeBSD-main-amd64-test/18438/#showFailuresLink
> Could you have a look?

Yep, try to reproduce.


More information about the dev-commits-src-main mailing list