Page MenuHomeFreeBSD

security/tor: Unbreaking on systems without timingsafe_memcmp(3)
ClosedPublic

Authored by yuri on Dec 15 2017, 7:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Mar 9, 4:11 PM
Unknown Object (File)
Jan 17 2024, 5:44 AM
Unknown Object (File)
Jan 7 2024, 4:38 PM
Unknown Object (File)
Dec 25 2023, 9:06 PM
Unknown Object (File)
Dec 20 2023, 2:21 AM
Unknown Object (File)
Nov 1 2023, 6:37 AM
Unknown Object (File)
Nov 1 2023, 6:37 AM
Unknown Object (File)
Nov 1 2023, 6:37 AM
Subscribers

Details

Summary

The user has reported that tor breaks when timingsafe_memcmp(3) is missing, because it has only been added in 12.0 and backported to 11.1

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This should probably also go to the quarterly ports tree?

security/tor/files/patch-orconfig.h.in
7 ↗(On Diff #36637)

how about using __FreeBSD_version and only undefine it for too old ones?

yuri marked an inline comment as done.Dec 15 2017, 7:27 PM
In D13502#282311, @yuri wrote:

Used __FreeBSD_version

didn't you mention that it was backported to 11.1 too?

In D13502#282311, @yuri wrote:

Used __FreeBSD_version

didn't you mention that it was backported to 11.1 too?

But manpage doesn't say this. It works on my 11.1, so I assumed that it has been backported, but this isn't documented.

In D13502#282322, @yuri wrote:
In D13502#282311, @yuri wrote:

Used __FreeBSD_version

didn't you mention that it was backported to 11.1 too?

But manpage doesn't say this. It works on my 11.1, so I assumed that it has been backported, but this isn't documented.

This is also a very minor matter, so it isn't worth it to put more efforts into enabling it on 11 even if possible, IMHO. :)

This revision is now accepted and ready to land.Dec 18 2017, 9:40 PM
This revision was automatically updated to reflect the committed changes.

Come on

with the patch multiple warnings generated, like:

./orconfig.h:521:5: warning: 'FreeBSD_version' is not defined, evaluates to 0 [-Wundef]
#if
FreeBSD_version >= 1200000 // disabled: timingsafe_memcmp(3) has been added only in 12.0, and isn't yet available on older systems

^

3 warnings generated.

$ make -V PKGNAME
tor-0.3.1.9_1
$ uname -r
11.1-RELEASE-p1