Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | global: always find OOM unlikely | Jason A. Donenfeld | 2018-09-04 | 1 | -3/+3 |
| | | | | Suggested-by: Sultan Alsawaf <sultanxda@gmail.com> | ||||
* | global: prefer sizeof(*pointer) when possible | Jason A. Donenfeld | 2018-09-04 | 1 | -2/+2 |
| | | | | Suggested-by: Sultan Alsawaf <sultanxda@gmail.com> | ||||
* | global: satisfy check_patch.pl errors | Jason A. Donenfeld | 2018-09-03 | 1 | -2/+2 |
| | |||||
* | global: run through clang-format | Jason A. Donenfeld | 2018-08-28 | 1 | -17/+30 |
| | | | | | | | This is the worst commit in the whole repo, making the code much less readable, but so it goes with upstream maintainers. We are now woefully wrapped at 80 columns. | ||||
* | ratelimiter: prevent init/uninit race | Jason A. Donenfeld | 2018-07-31 | 1 | -4/+6 |
| | | | | | | | Fixes a classic ABA problem that isn't actually reachable because of rtnl_lock, but it's good to be correct anyway. Reported-by: Jann Horn <jann@thejh.net> | ||||
* | global: use fast boottime instead of normal boottime | Jason A. Donenfeld | 2018-06-23 | 1 | -3/+3 |
| | | | | Generally if we're inaccurate by a few nanoseconds, it doesn't matter. | ||||
* | global: use ktime boottime instead of jiffies | Jason A. Donenfeld | 2018-06-23 | 1 | -3/+3 |
| | | | | | | | | Since this is a network protocol, expirations need to be accounted for, even across system suspend. On real systems, this isn't a problem, since we're clearing all keys before suspend. But on Android, where we don't do that, this is something of a problem. So, we switch to using boottime instead of jiffies. | ||||
* | ratelimiter: do not allow concurrent init and uninit | Jason A. Donenfeld | 2018-06-19 | 1 | -0/+6 |
| | |||||
* | ratelimiter: mitigate reference underflow | Jason A. Donenfeld | 2018-06-19 | 1 | -1/+1 |
| | |||||
* | global: year bump | Jason A. Donenfeld | 2018-01-03 | 1 | -1/+1 |
| | |||||
* | global: add SPDX tags to all files | Greg Kroah-Hartman | 2017-12-09 | 1 | -1/+4 |
| | | | | | | | | | | | | | It's good to have SPDX identifiers in all files as the Linux kernel developers are working to add these identifiers to all files. Update all files with the correct SPDX license identifier based on the license text of the project or based on the license in the file itself. The SPDX identifier is a legally binding shorthand, which can be used instead of the full boiler plate text. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Modified-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | global: style nits | Jason A. Donenfeld | 2017-10-31 | 1 | -2/+4 |
| | |||||
* | global: infuriating kernel iterator style | Jason A. Donenfeld | 2017-10-31 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | | One types: for (i = 0 ... So one should also type: for_each_obj (obj ... But the upstream kernel style guidelines are insane, and so we must instead do: for_each_obj(obj ... Ugly, but one must choose his battles wisely. | ||||
* | global: satisfy bitshift pedantry | Jason A. Donenfeld | 2017-10-03 | 1 | -1/+1 |
| | | | | Suggested-by: Sultan Alsawaf <sultanxda@gmail.com> | ||||
* | ratelimiter: wait for destruction, not for read_unlock | Jason A. Donenfeld | 2017-10-02 | 1 | -1/+1 |
| | |||||
* | ratelimiter: use KMEM_CACHE macro | Jason A. Donenfeld | 2017-07-20 | 1 | -6/+6 |
| | | | | Suggested-by: Samuel Holland <samuel@sholland.org> | ||||
* | ratelimiter: consistently use non-bh rcu | Jason A. Donenfeld | 2017-07-07 | 1 | -1/+1 |
| | |||||
* | ratelimiter: add self-test | Jason A. Donenfeld | 2017-07-06 | 1 | -0/+2 |
| | |||||
* | ratelimiter: use IPv6 /64 instead of /96 | Jason A. Donenfeld | 2017-07-04 | 1 | -8/+8 |
| | |||||
* | ratelimiter: use kvzalloc for hash table allocation | Jason A. Donenfeld | 2017-07-04 | 1 | -9/+6 |
| | |||||
* | global: cleanup IP header checking | Jason A. Donenfeld | 2017-06-26 | 1 | -2/+2 |
| | | | | This way is more correct and ensures we're within the skb head. | ||||
* | ratelimiter: rewrite from scratch | Jason A. Donenfeld | 2017-06-26 | 1 | -96/+153 |
| | | | | | | | This not only removes the depenency on x_tables, but it also gives us much better performance and memory usage. Now, systems are able to have millions of WireGuard interfaces, without having to worry about a thundering herd of garbage collection. | ||||
* | data: big refactoring | Jason A. Donenfeld | 2017-03-20 | 1 | -1/+1 |
| | |||||
* | ratelimiter: 800ms too fast, decrease to 2s sustained rate | Jason A. Donenfeld | 2017-01-15 | 1 | -2/+2 |
| | |||||
* | Use __read_mostly attribute when possible | Jason A. Donenfeld | 2017-01-13 | 1 | -2/+2 |
| | |||||
* | Update copyright | Jason A. Donenfeld | 2017-01-10 | 1 | -1/+1 |
| | |||||
* | ratelimiter: remember newline in error | Jason A. Donenfeld | 2016-12-16 | 1 | -2/+2 |
| | |||||
* | ratelimiter: drop family from action for 4.10 | Jason A. Donenfeld | 2016-12-16 | 1 | -2/+0 |
| | | | | | This was never actually used, and now that member of the struct has been removed all together from the kernel. | ||||
* | compat: build dep errors belong here, since it's out of tree specific | Jason A. Donenfeld | 2016-12-09 | 1 | -8/+1 |
| | |||||
* | ratelimiter: load hashlimit at modinsert time | Jason A. Donenfeld | 2016-11-29 | 1 | -35/+46 |
| | | | | This fixes a potential race with net_lock and rtnl_lock. | ||||
* | headers: cleanup notices | Jason A. Donenfeld | 2016-11-21 | 1 | -1/+1 |
| | |||||
* | Rework headers and includes | Jason A. Donenfeld | 2016-09-29 | 1 | -2/+4 |
| | |||||
* | ratelimiter: hard-depend on runtime dependencies | Jason A. Donenfeld | 2016-08-09 | 1 | -0/+7 |
| | |||||
* | ratelimiter: do not require IPv6experimental-0.0.20160808 | Jason A. Donenfeld | 2016-08-08 | 1 | -4/+12 |
| | |||||
* | ratelimiter: correct comment | Jason A. Donenfeld | 2016-07-23 | 1 | -1/+1 |
| | |||||
* | Initial commit | Jason A. Donenfeld | 2016-06-25 | 1 | -0/+119 |