Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | curve25519-arm: simply call setendjd/bigendiancurve | Jason A. Donenfeld | 2018-10-08 | 2 | -3/+5 |
| | | | | Probably not good if this runs on a v8 CPU. | ||||
* | allowedips: remove control statement from macro by rewriting | Jason A. Donenfeld | 2018-10-08 | 1 | -68/+119 |
| | | | | | | | This is a significant rearrangement that makes things less clear, to satisfy a checkpatch.pl requirement. Suggested-by: Andrew Lunn <andrew@lunn.ch> | ||||
* | global: more nits | Jason A. Donenfeld | 2018-10-08 | 5 | -3/+12 |
| | |||||
* | global: rename struct wireguard_ to struct wg_ | Jason A. Donenfeld | 2018-10-08 | 23 | -236/+225 |
| | | | | | | This required a bit of pruning of our christmas trees. Suggested-by: Jiri Pirko <jiri@resnulli.us> | ||||
* | netlink: do not stuff index into nla type | Jason A. Donenfeld | 2018-10-08 | 4 | -34/+25 |
| | | | | | | | It's not used for anything, and LKML doesn't like the type being used as an index value. Suggested-by: Eugene Syromiatnikov <esyr@redhat.com> | ||||
* | qemu: kill after 20 minutes | Jason A. Donenfeld | 2018-10-08 | 1 | -1/+1 |
| | |||||
* | compat: look in Kbuild and Makefile since they differ based on arch | Jason A. Donenfeld | 2018-10-08 | 1 | -1/+1 |
| | |||||
* | create-patch: blacklist instead of whitelist | Jason A. Donenfeld | 2018-10-08 | 1 | -1/+2 |
| | | | | | | This will deal with filename changes more gracefully. Reported-by: Jordan Glover <Golden_Miller83@protonmail.ch> | ||||
* | global: prefix functions used in callbacks with wg_ | Jason A. Donenfeld | 2018-10-08 | 9 | -90/+95 |
| | | | | Suggested-by: Jiri Pirko <jiri@resnulli.us> | ||||
* | compat: don't output for grep errors | Davide Garberi | 2018-10-07 | 1 | -2/+2 |
| | | | | | | | | This will make it so that kernels not having arch/$(SRCARCH)/Kbuild no longer give any (non-fatal) grep errors such as "grep: arch/arm64/Kbuild: No such file or directory". Signed-off-by: Davide Garberi <dade.garberi@gmail.com> | ||||
* | version: bump snapshot0.0.20181007 | Jason A. Donenfeld | 2018-10-07 | 2 | -2/+2 |
| | |||||
* | global: style nits | Jason A. Donenfeld | 2018-10-07 | 5 | -32/+30 |
| | |||||
* | crypto: clean up remaining .h->.c | Jason A. Donenfeld | 2018-10-07 | 11 | -14/+14 |
| | |||||
* | allowedips: document additional nobs | Jason A. Donenfeld | 2018-10-07 | 1 | -0/+12 |
| | |||||
* | makefile: do more generic wildcard so as to avoid rename issues | Jason A. Donenfeld | 2018-10-07 | 2 | -2/+2 |
| | | | | | | | Commit ad5e4210 (global: rename include'd C files to be .c) breaks install target for dkms sources. Fix installing selftest/*.c. Suggested-by: Christian Hesse <mail@eworm.de> | ||||
* | crypto: use BIT(i) & bitmap instead of (bitmap >> i) & 1 | Jason A. Donenfeld | 2018-10-07 | 1 | -2/+2 |
| | | | | | | | | | | | Pros: clearer if you're not familiar with the shift idiom, uses kernel macro. Cons: doesn't work any more if the lvalue ever ceases to be a bool. Neutral: generates the same machine code. Suggested-by: Sultan Alsawaf <sultanxda@gmail.com> | ||||
* | crypto: disable broken implementations in selftests | Jason A. Donenfeld | 2018-10-07 | 1 | -9/+8 |
| | |||||
* | compat: clang cannot handle __builtin_constant_p | Jason A. Donenfeld | 2018-10-07 | 1 | -0/+7 |
| | | | | | | Or, put differently, we don't want to go chasing down random versions of clang used by XDA users, so we just disable this checking on clang all together. | ||||
* | compat: make asm/simd.h conditional on its existence | Jason A. Donenfeld | 2018-10-07 | 5 | -23/+24 |
| | | | | Android kernels backported it, complicating things. | ||||
* | compat: account for ancient ARM assembler | Jason A. Donenfeld | 2018-10-06 | 1 | -0/+25 |
| | |||||
* | version: bump snapshot0.0.20181006 | Jason A. Donenfeld | 2018-10-06 | 2 | -2/+2 |
| | |||||
* | crypto: test all SIMD combinations | Jason A. Donenfeld | 2018-10-06 | 20 | -40/+82 |
| | |||||
* | global: rename include'd C files to be .c | Jason A. Donenfeld | 2018-10-06 | 25 | -34/+34 |
| | | | | | | | | | This is done by 259 other files in the kernel tree: linux $ rg '#include.*\.c' -l | wc -l 259 Suggested-by: Sultan Alsawaf <sultanxda@gmail.com> | ||||
* | allowedips: remove ifdefs in favor of IS_ENABLED | Jason A. Donenfeld | 2018-10-06 | 2 | -20/+34 |
| | |||||
* | wg-quick.8: add policy routing example | Jason A. Donenfeld | 2018-10-05 | 1 | -0/+26 |
| | | | | | Suggested-by: Toke Høiland-Jørgensen <toke@toke.dk> Suggested-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org> | ||||
* | curve25519-arm: rearrange multiplications for better in-order performance | Jason A. Donenfeld | 2018-10-04 | 1 | -12/+12 |
| | | | | Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> | ||||
* | curve25519-arm: writeback to base register when possible | Jason A. Donenfeld | 2018-10-04 | 1 | -58/+27 |
| | | | | Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> | ||||
* | blake2s: always put a simd, even if not use()'d | Jason A. Donenfeld | 2018-10-03 | 1 | -2/+5 |
| | |||||
* | simd: introduce useful disabling macro | Jason A. Donenfeld | 2018-10-03 | 3 | -3/+4 |
| | |||||
* | Kconfig: do now allow IPV6=m,WG=y | Jason A. Donenfeld | 2018-10-03 | 1 | -0/+1 |
| | |||||
* | curve25519-arm: adjust comment | Jason A. Donenfeld | 2018-10-03 | 1 | -2/+2 |
| | |||||
* | curve25519-arm: use new simd api | Jason A. Donenfeld | 2018-10-03 | 1 | -6/+9 |
| | |||||
* | chacha20-arm: use proper reteq macro instead of bxeq | Jason A. Donenfeld | 2018-10-02 | 1 | -1/+2 |
| | | | | Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> | ||||
* | qemu: show more messages in console the right way | Jason A. Donenfeld | 2018-10-02 | 1 | -1/+1 |
| | |||||
* | qemu: support powerpc64le | Jason A. Donenfeld | 2018-10-02 | 2 | -2/+22 |
| | | | | | This uses ELFv2 ABI, which is the only ppc64 ABI musl supports. Big endian uses ELFv1 ABI, which musl doesn't support. | ||||
* | qemu: give up and accept a mips64r2 world | Jason A. Donenfeld | 2018-10-02 | 3 | -6/+8 |
| | | | | | | We can't do SMP this way, and we also fall back to using the default N32 ABI, which is a bummer. But the mips64r6 toolchain is too much of a hassle to build with Gentoo's crossdev, and at least this works. | ||||
* | ratelimiter: prefer IS_ENABLED | Jason A. Donenfeld | 2018-10-02 | 1 | -3/+2 |
| | |||||
* | global: change BUG_ON to WARN_ON | Jason A. Donenfeld | 2018-10-02 | 4 | -27/+19 |
| | | | | Suggested-by: Andrew Lunn <andrew@lunn.ch> | ||||
* | poly1305: document rationale for base 2^26->2^64/32 conversion | Jason A. Donenfeld | 2018-10-02 | 2 | -0/+20 |
| | |||||
* | crypto: use ZINC_ARCH macros | Jason A. Donenfeld | 2018-10-02 | 2 | -9/+9 |
| | |||||
* | chacha20: no need to align ctx | Jason A. Donenfeld | 2018-10-02 | 1 | -1/+1 |
| | | | | | | We don't use vmovdqa any more. Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> | ||||
* | chacha20: split chacha20_ctx into union | Jason A. Donenfeld | 2018-10-02 | 5 | -45/+50 |
| | | | | This avoids casts and makes counter increments obvious. | ||||
* | qemu: support m68k | Jason A. Donenfeld | 2018-10-02 | 2 | -1/+18 |
| | |||||
* | crypto: add missing static keyword to fpu init functions | Jason A. Donenfeld | 2018-10-02 | 4 | -4/+3 |
| | |||||
* | crypto: document what's used from <crypto/ beside #include | Jason A. Donenfeld | 2018-10-02 | 4 | -4/+3 |
| | |||||
* | crypto: WARN_ON in module_init if selftest fails | Jason A. Donenfeld | 2018-10-02 | 5 | -5/+5 |
| | | | | | | | If it's a built-in and initcall fails, it won't be fatal. So we should at least be loud. Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> | ||||
* | simd: refactor simd availability handling | Jason A. Donenfeld | 2018-10-02 | 2 | -16/+24 |
| | |||||
* | simd: return a bool from simd_relax | Jason A. Donenfeld | 2018-10-02 | 1 | -1/+3 |
| | | | | Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> | ||||
* | global: prefix all functions with wg_ | Jason A. Donenfeld | 2018-10-02 | 28 | -605/+627 |
| | | | | | | | | | | | | | I understand why this must be done, though I'm not so happy about having to do it. In some places, it puts us over 80 chars and we have to break lines up in further ugly ways. And in general, I think this makes things harder to read. Yet another thing we must do to please upstream. Maybe this can be replaced in the future by some kind of automatic module namespacing logic in the linker, or even combined with LTO and aggressive symbol stripping. Suggested-by: Andrew Lunn <andrew@lunn.ch> | ||||
* | poly1305-mips64: use compiler-defined macros in assembly | Jason A. Donenfeld | 2018-10-02 | 1 | -5/+10 |
| | | | | | | | Andy and I agreed it's more correct to use the compiler-defined macros in assembly code, and not the project specific macros. Suggested-by: Andy Polyakov <appro@openssl.org> |