aboutsummaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAgeFilesLines
* curve25519-arm: simply call setendjd/bigendiancurveJason A. Donenfeld2018-10-082-3/+5
| | | | Probably not good if this runs on a v8 CPU.
* allowedips: remove control statement from macro by rewritingJason A. Donenfeld2018-10-081-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 nitsJason A. Donenfeld2018-10-085-3/+12
|
* global: rename struct wireguard_ to struct wg_Jason A. Donenfeld2018-10-0823-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 typeJason A. Donenfeld2018-10-084-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 minutesJason A. Donenfeld2018-10-081-1/+1
|
* compat: look in Kbuild and Makefile since they differ based on archJason A. Donenfeld2018-10-081-1/+1
|
* create-patch: blacklist instead of whitelistJason A. Donenfeld2018-10-081-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. Donenfeld2018-10-089-90/+95
| | | | Suggested-by: Jiri Pirko <jiri@resnulli.us>
* compat: don't output for grep errorsDavide Garberi2018-10-071-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.20181007Jason A. Donenfeld2018-10-072-2/+2
|
* global: style nitsJason A. Donenfeld2018-10-075-32/+30
|
* crypto: clean up remaining .h->.cJason A. Donenfeld2018-10-0711-14/+14
|
* allowedips: document additional nobsJason A. Donenfeld2018-10-071-0/+12
|
* makefile: do more generic wildcard so as to avoid rename issuesJason A. Donenfeld2018-10-072-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) & 1Jason A. Donenfeld2018-10-071-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 selftestsJason A. Donenfeld2018-10-071-9/+8
|
* compat: clang cannot handle __builtin_constant_pJason A. Donenfeld2018-10-071-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 existenceJason A. Donenfeld2018-10-075-23/+24
| | | | Android kernels backported it, complicating things.
* compat: account for ancient ARM assemblerJason A. Donenfeld2018-10-061-0/+25
|
* version: bump snapshot0.0.20181006Jason A. Donenfeld2018-10-062-2/+2
|
* crypto: test all SIMD combinationsJason A. Donenfeld2018-10-0620-40/+82
|
* global: rename include'd C files to be .cJason A. Donenfeld2018-10-0625-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_ENABLEDJason A. Donenfeld2018-10-062-20/+34
|
* wg-quick.8: add policy routing exampleJason A. Donenfeld2018-10-051-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 performanceJason A. Donenfeld2018-10-041-12/+12
| | | | Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
* curve25519-arm: writeback to base register when possibleJason A. Donenfeld2018-10-041-58/+27
| | | | Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
* blake2s: always put a simd, even if not use()'dJason A. Donenfeld2018-10-031-2/+5
|
* simd: introduce useful disabling macroJason A. Donenfeld2018-10-033-3/+4
|
* Kconfig: do now allow IPV6=m,WG=yJason A. Donenfeld2018-10-031-0/+1
|
* curve25519-arm: adjust commentJason A. Donenfeld2018-10-031-2/+2
|
* curve25519-arm: use new simd apiJason A. Donenfeld2018-10-031-6/+9
|
* chacha20-arm: use proper reteq macro instead of bxeqJason A. Donenfeld2018-10-021-1/+2
| | | | Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
* qemu: show more messages in console the right wayJason A. Donenfeld2018-10-021-1/+1
|
* qemu: support powerpc64leJason A. Donenfeld2018-10-022-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 worldJason A. Donenfeld2018-10-023-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_ENABLEDJason A. Donenfeld2018-10-021-3/+2
|
* global: change BUG_ON to WARN_ONJason A. Donenfeld2018-10-024-27/+19
| | | | Suggested-by: Andrew Lunn <andrew@lunn.ch>
* poly1305: document rationale for base 2^26->2^64/32 conversionJason A. Donenfeld2018-10-022-0/+20
|
* crypto: use ZINC_ARCH macrosJason A. Donenfeld2018-10-022-9/+9
|
* chacha20: no need to align ctxJason A. Donenfeld2018-10-021-1/+1
| | | | | | We don't use vmovdqa any more. Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
* chacha20: split chacha20_ctx into unionJason A. Donenfeld2018-10-025-45/+50
| | | | This avoids casts and makes counter increments obvious.
* qemu: support m68kJason A. Donenfeld2018-10-022-1/+18
|
* crypto: add missing static keyword to fpu init functionsJason A. Donenfeld2018-10-024-4/+3
|
* crypto: document what's used from <crypto/ beside #includeJason A. Donenfeld2018-10-024-4/+3
|
* crypto: WARN_ON in module_init if selftest failsJason A. Donenfeld2018-10-025-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 handlingJason A. Donenfeld2018-10-022-16/+24
|
* simd: return a bool from simd_relaxJason A. Donenfeld2018-10-021-1/+3
| | | | Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
* global: prefix all functions with wg_Jason A. Donenfeld2018-10-0228-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 assemblyJason A. Donenfeld2018-10-021-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>