aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/go-patches (follow)
Commit message (Collapse)AuthorAgeFilesLines
* global: update to go 1.18 beta1Jason A. Donenfeld2021-12-164-508/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: update to go 1.17.4 and drop upstreamed patchesJason A. Donenfeld2021-12-024-281/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* go-patches: support non-cooperative preemption on arm and arm64Jason A. Donenfeld2021-11-252-0/+124
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* go-patches: return correct nanosec param on arm64Jason A. Donenfeld2021-11-061-0/+81
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* go-patches: read nanotime in 1 instruction on 64bitJason A. Donenfeld2021-11-063-6/+200
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* go-patches: make unsafe.Slice fastJason A. Donenfeld2021-10-112-1/+332
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: bump to go 1.17Jason A. Donenfeld2021-08-181-47/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* go-patches: add exception search fix, CL340070Jason A. Donenfeld2021-08-052-1/+48
| | | | | | | | | https://go-review.googlesource.com/c/go/+/340070 Also, move to using `git format-patch --no-numbered --zero-commit` so that there's less churn when adding patches. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: use official go builds and patch locallyJason A. Donenfeld2021-08-021-0/+59
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: port to arm64Jason A. Donenfeld2021-02-186-561/+0
| | | | | | | | | | We build Go from modified-source with a bootstrap version, rather than shipping so many patches in this repo. This commit also removes the previous WOW hacks, and goes back to strictly forbidding WOW. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* manager: use stricter handle inheritabilityJason A. Donenfeld2021-02-026-2/+504
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: use go 1.16rc1Jason A. Donenfeld2021-02-012-343/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: update to go 1.16 beta1Jason A. Donenfeld2021-01-0415-2353/+145
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ringlogger: hook into global panic writerJason A. Donenfeld2020-12-0914-13/+45
| | | | | | | | | | | This is a grotesque hack, and hopefully upstream Go will provide a nicer way of doing this, but already it seems quite adept at catching panics. See https://github.com/golang/go/issues/42888 for more info. This requires us to rewrite the ringlogger path to avoid all allocations. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* go-patches: add ARM TST fixJason A. Donenfeld2020-12-0213-12/+1287
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* go-patches: fix isAbort calculation on armJason A. Donenfeld2020-11-2712-11/+55
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* go-patches: force PIE mode on armJason A. Donenfeld2020-11-2711-10/+54
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* go-patches: add back hires windows timer patchesJason A. Donenfeld2020-11-2210-19/+529
| | | | | | | | This adds back the high resolution timer patches, but with the addition of Alex's recent fix to branch to the old code in the event that 0x28(%gs) is zeroed out. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: bump golang version to 1.15.5Jason A. Donenfeld2020-11-198-26/+26
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* go-patches: drop CreateWaitableTimerExJason A. Donenfeld2020-11-161-406/+0
| | | | | | It causes mysterious crashes. We'll revisit for 1.16. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* go-patches: support 8 callback arguments on armJason A. Donenfeld2020-11-139-8/+68
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: add linker patches for llvm-rcJason A. Donenfeld2020-11-138-77/+545
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* go: update to 1.15.2Jason A. Donenfeld2020-09-112-8/+148
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* go: use highres timer on newer Windows 10Jason A. Donenfeld2020-08-181-0/+395
| | | | | | | | | | | WireGuard makes heavy use of timers, and the low precision of Windows timers as currently used in Go isn't very nice, and also seems to result in worse battery life because of the gross winmm.dll timerBeginPeriod trick. John Starks suggested this new parameter to make a high resolution timer on NT, and Alex implemented it, so import Alex's test patch to see how this goes. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* go: remove exit(2) from ctrl+c handlerJason A. Donenfeld2020-08-181-0/+44
Simon reported that he'd have hard to diagnose exits at boot time with Go 1.14 but not with 1.13. It turns out that the ctrl+c handler added by 1.14 at some point in the cycle includes some wrong behavior forcing exits on various services signals. In an attempt to address this, this commit backports my patch from 1.16 that removes this errant path. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>