Commit Graph

120 Commits

Author SHA1 Message Date
riastradh 5784999e1a argon2: Silence -Wmissing-noreturn in thread.c on clang.
Saves the trouble of patching it away in external code.
2022-05-21 19:57:06 +00:00
christos 5fc96d7ad8 Move guts of the Makefile into Makefile.inc so it can be re-used. 2022-05-17 18:55:41 +00:00
joerg 2a95db84d8 When MKDEBUG is use, build LLVM with -g1 to significantly reduce debug
information. This still includes types and line tables, but skips e.g.
local variables and inline tracking.
2022-02-28 16:30:10 +00:00
nia 1569bcc0b3 cgdconfig(8): Add an argon2id password-based key generation method
This provides an extra level of side-channel and cracking resistance
compared to the pre-existing pkcs5_pbkdf2/sha1 method used for
password-based disk encryption.

Several new keygen parameters are supported:

	memory (integer, in kilobytes)
	parallelism (integer, usually the number of CPU cores)
	version (integer, usually 19...)

We do our best to calibrate these automatically when the paramsfile
is initially generated.

lgtm riastradh@
2021-11-22 14:34:35 +00:00
agc 2c1df105e9 Remove the
COPTS.*+=       -Wno-error=.*

lines for building argon2 sources, by fixing the problems at source.

Addresses Rin Okuyama's concerns on tech-userlevel/tech-crypto in

	Message-ID: <f1eab199-3607-bb05-15cc-033e38721ba4@gmail.com>
2021-11-01 03:09:58 +00:00
nia 33f778c0b8 Teach argon2 about explicit_memset(3). Should be upstreamed. 2021-10-17 10:44:21 +00:00
nia 87c3d6fe5c Fix release builds with MKARGON2=yes
This changes argon2 from a separately built library into a private
dependency of libcrypt and removes the argon2(1) utility (we already
have pwhash(1)). Giving libcrypt more library dependencies
complicates things (e.g. libcrypt is a dependency of openssl).
pthreads support gets disabled in argon2 for similar reasons.

For testing argon2, we rely on the libcrypt test suite.
2021-10-12 17:24:36 +00:00
joerg a34819e0d3 Remove files no longer used by 249b40b558955afe5ac2b549edcf2d7f859c8cc9 2021-05-30 02:58:06 +00:00
joerg 53d1339bf7 Update LLVM build system for 249b40b558955afe5ac2b549edcf2d7f859c8cc9
This enables the use of modules for a significant build performance gain
when building with clang as host compiler or when using HAVE_LLVM=yes.
Switch libc++ to using the copy from the mono-repo.
2021-05-30 01:56:44 +00:00
joerg 4d6fc14bc9 Import libc++ 249b40b558955afe5ac2b549edcf2d7f859c8cc9 2021-05-30 01:29:16 +00:00
joerg 82d56013d7 Import LLVM 249b40b558955afe5ac2b549edcf2d7f859c8cc9. 2021-05-30 01:26:32 +00:00
joerg e038c9c467 Import clang 249b40b558955afe5ac2b549edcf2d7f859c8cc9. 2021-05-30 01:25:15 +00:00
christos 962e2e4b64 MACHINE_CPU is always mips (no functional change) 2021-04-25 15:06:49 +00:00
mrg 97b36aa771 more GCC 10 fixes.
mDNSResponder: another wrong return local address

dhcp: ignore a seemingly impossible stringop overflow

hpacel: avoid maybe uninitialised error that is wrong.

rsh: avoid impossible malloc(0)

udf: cast pointers through (uintptr_t) to fool invalid boundary checks
2021-04-13 06:25:48 +00:00
rin 06f9eb9427 Add NetBSD/aarch64eb support to */config.guess for self-building and mknative.
XXX
Instead of patching each file, it would be better to maintain single
config.*'s as done in pkgsrc...

Patch provided by ryo@.
OK mrg@.
2020-10-20 10:41:49 +00:00
christos 625508a57b Disable an init-list-lifetime warning from gcc-9. 2020-09-07 19:05:41 +00:00
mrg e7ac2a8b5b apply some GCC 9 -Wno-error* 2020-09-07 00:18:25 +00:00
mrg cb93b81028 add support for new GCC 9 warnings that may be too much to fix
right now.  new address-of-packed-member and format-overflow
warnings have new GCC_NO_ADDR_OF_PACKED_MEMBER amd
GCC_NO_FORMAT_OVERFLOW variables to remove these warnings.

apply to a bunch of the tree.  mostly, these are real bugs that
should be fixed, but in many cases, only by removing the 'packed'
attribute from some structure that doesn't really need it.  (i
looked at many different ones, and while perhaps 60-80% were
already properly aligned, it wasn't clear to me that the uses
were always coming from sane data vs network alignment, so it
doesn't seem safe to remove packed without careful research for
each affect struct.)  clang already warned (and was not erroring)
for many of these cases, but gcc picked up dozens more.
2020-09-06 07:20:26 +00:00
roy a61295aa80 mdnsd: Make the unable to parse resolv.conf message informative
resovconf will SIGHUP mdnsd when resolv.conf changes so this message
should not be an error.
2020-07-22 19:05:14 +00:00
roy 1c95b6ce56 mdnsd: starting and stopping are informational messages 2020-07-21 14:11:39 +00:00
roy b27c70cad6 mdnsd: Treat EADDRNOTAVAIL as a transient error 2020-07-21 14:04:07 +00:00
kamil 4228f24a2e Build and install llvm-symbolizer for MKLLVM=yes
llvm-symbolizer is an alternative for GNU addr2line(1), heavily used by the
LLVM sanitizers.

Do not install it as tools as it is not necessary as of today in that
stage.
2020-06-09 21:50:32 +00:00
joerg 953536060d Fix harmless syntax error. 2020-02-23 02:01:17 +00:00
joerg 8beab7f7a8 Revert last. It was objected to pre-commit, there is no actual error
analysis or report and there is existing logic supposed to handle this.
2020-02-19 13:32:40 +00:00
kamil 88fd427e3b Disable HAVE_TERMINFO and HAVE_TERMIOS_H for ./build.sh tools build
These headers enable optional features and are not portable to all host
Operating Systems.

Speculative fix for certain Linux distributions.
2020-02-19 09:59:39 +00:00
jmcneill c91ab881ac Build radeon and nouveau drivers on evbarm. 2020-01-19 00:58:13 +00:00
joerg c091bb989f Use -fno-strict-aliasing unconditionally for the cross compiler. 2019-11-28 23:01:22 +00:00
joerg 404ee5b933 Build some more LLVM components for Gallium. Switch it to -Wl,-z,defs 2019-11-18 22:26:14 +00:00
joerg 5ad18e3550 Use a big hammer and disabling strict aliasing for the tools build or
when using GCC.
2019-11-18 19:54:23 +00:00
joerg c21ab1a1a0 Build libclangAST with -O1 when the host compiler is GCC 7 to avoid
miscompiles.
2019-11-16 15:51:26 +00:00
martin cced830f6a For gcc < 9 disable stringop-overflow warnings - they are broken. 2019-11-14 13:16:35 +00:00
joerg 76c7fc5f6b Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da) 2019-11-11 22:44:56 +00:00
joerg 7330f729cc Import 01f3a59fb3e2542fce74c768718f594d0debd0da from the LLVM mono-repo:
clang (without test/, unittests/, www/)
llvm (without test/, unittests/)
2019-11-08 14:28:07 +00:00
jhigh b302373f87 adding argon2 support to libcrypt. argon2 user authentication now
available via MKARGON2=yes (3 variants supported; argon2id recommended)
before using, please read argon2 paper at
https://github.com/P-H-C/phc-winner-argon2
2019-10-21 02:36:48 +00:00
wiz ebde28641d Fix date. 2019-10-09 13:25:20 +00:00
jhigh 0090dad153 added backend support for argon2 password scheme 2019-10-09 13:13:08 +00:00
thorpej 5d5d89b89e Get the very generically-named put_uint32(), etc. out of the application
namespace.  These symbols are not intended to be used outside of the
dns_sd library.
2019-07-04 15:54:09 +00:00
christos 7521fc28e7 Don't hard-code the path 2018-12-09 19:03:42 +00:00
christos 0f33703f35 It is not an error if we did not find any IPv4 interfaces. It could
be the case we never have V4 interfaces (in a V6 system) so this
is bogus. The code was recently changed to ignore loopback interfaces.
If mdnsd was started too early, this means that no interfaces would
be found (since interfaces down, with no addresses, or tentative
are ignored). I put back the loopback interfaces yesterday to avoid
this error, but this seems like the left hand not knowing what the
right hand does because whoever removed the loopback interfaces
from the list, did not read the 'self discovery' comment and the
special code that deals with loopback in this file. Nevertheless,
I think it is better to ignore the loopback interfaces in the long
run, but it is ok to keep them around since the code is handling
them just fine (and works both with and without them).
2018-11-19 08:14:28 +00:00
christos 96efac35b4 Use our getifaddrs version 2018-11-18 18:58:44 +00:00
christos 73617236ff print the path of the unix socket we could not create. 2018-11-18 18:58:05 +00:00
christos 50d2c4317f NFC: Fix commit message: Include the loopback so that we don't return an
empty address list before addresses are configured.
2018-11-18 18:57:12 +00:00
christos 29fb438a54 Add a simpler version to do interface enumeration that uses getifaddrs(3) 2018-11-18 18:55:49 +00:00
christos f1096f3c6c initialize addr to 0. 2018-05-02 12:12:13 +00:00
christos 0c6b6224b4 Add the missing lock. 2018-04-11 18:34:18 +00:00
christos d0c4b2c3b3 Add the location of the last lock to help debugging. 2018-04-11 18:33:48 +00:00
christos 03fd2bea72 instead of short-circuiting the test, set auto target host on by default. 2018-04-11 18:33:21 +00:00
christos 4fd06914cd remove format checker; cannot work because of %#a (ip address printing). 2018-04-08 13:43:29 +00:00
christos 067ca08c91 show how to turn on debugging. 2018-04-07 19:18:44 +00:00
christos 70d8d7a03a put back handling for SIOCGIFAFLAG_IN -- should not matter. 2018-04-07 19:18:16 +00:00