Commit Graph

5495 Commits (2021.7)
 

Author SHA1 Message Date
pedro 39c10e27d4 kernel: netfilter: xt_recent: avoid high order page allocations
xt_recent can try high order page allocations and this can fail.

iptables: page allocation failure: order:9, mode:0xc0d0

It also wastes about half the allocated space because of kmalloc()
power-of-two roundups and struct recent_table layout.

Use vmalloc() instead to save space and be less prone to allocation
errors when memory is fragmented.

Reported-by: Miroslav Kratochvil <exa.exa@gmail.com>
Reported-by: Dave Jones <davej@redhat.com>
Reported-by: Harald Reindl <h.reindl@thelounge.net>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

Ported from upstream: 2727de7604
5 years ago
pedro 246bae014f kernel: netfilter: xt_recent: fix namespace destroy path
recent_net_exit() is called before recent_mt_destroy() in the
destroy path of network namespaces. Make sure there are no entries
in the parent proc entry xt_recent before removing it.

Signed-off-by: Vitaly E. Lavrov <lve@guap.ru>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

Ported from upstream: 665e205c16
5 years ago
pedro 88f0009c9d kernel: netfilter: xt_recent: avoid high order page allocations
xt_recent can try high order page allocations and this can fail.

iptables: page allocation failure: order:9, mode:0xc0d0

It also wastes about half the allocated space because of kmalloc()
power-of-two roundups and struct recent_table layout.

Use vmalloc() instead to save space and be less prone to allocation
errors when memory is fragmented.

Reported-by: Miroslav Kratochvil <exa.exa@gmail.com>
Reported-by: Dave Jones <davej@redhat.com>
Reported-by: Harald Reindl <h.reindl@thelounge.net>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

Ported from upstream: 2727de7604
5 years ago
pedro 09ac7fb24a kernel: netfilter: xt_recent: fix namespace destroy path
recent_net_exit() is called before recent_mt_destroy() in the
destroy path of network namespaces. Make sure there are no entries
in the parent proc entry xt_recent before removing it.

Signed-off-by: Vitaly E. Lavrov <lve@guap.ru>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

Ported from upstream: 665e205c16
5 years ago
pedro 70b7ec8083 patches: wsdd2: cosmetic 5 years ago
pedro 139fef8efc build: update logic how to apply patches 5 years ago
pedro b9da7edc4f httpd: update the way how failed GUI login attempts are added to log 5 years ago
pedro 136b217342 dnscrypt-proxy: update resolvers csv file 5 years ago
pedro 5c7696eb9a router: rom: Makefile: fix downloading dnscrypt-proxy resolvers file 5 years ago
pedro 13cb307aa8 Merge branch 'arm-master' into arm-sdk7 5 years ago
pedro a8b06b63a9 kernel: prepare for iptables fix (handling ICMPv6 reject --with-tcp-reset) 5 years ago
pedro c5e2d60f27 iptables: fix handling ICMPv6 reject --with-tcp-reset 5 years ago
Don Bushway 11a506b02f Merged in arm-master (pull request #25)
Update version to "V1.0.12.99" due to NETGEAR mandating no downgrades and having a limit on how high the new version can be.
5 years ago
pedro 5cf685756a iptables: fix match for ipt_account 5 years ago
pedro b16ab32ae4 iptables: fix save formatting for TRIGGER target 5 years ago
pedro 4f5fee17ea iptables: fix list formatting for ROUTE target 5 years ago
pedro 1683d929fd iptables: fix save formatting for ROUTE target 5 years ago
pedro edd24f1207 iptables: fix save formatting for libipt_account 5 years ago
pedro 1b29be3a62 iptables: fix save formatting for libipt_webst 5 years ago
pedro 6306efac09 kernel: netfilter: xt_recent: add address masking option (ported from upstream)
The mask option allows you put all address belonging that mask into
the same recent slot. This can be useful in case that recent is used
to detect attacks from the same network segment.

Tested for backward compatibility.

Signed-off-by: Denys Fedoryshchenko <denys@visp.net.lb>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

efdedd5426
5 years ago
pedro 604dca76aa kernel: netfilter: xt_recent: add address masking option (ported from upstream)
The mask option allows you put all address belonging that mask into
the same recent slot. This can be useful in case that recent is used
to detect attacks from the same network segment.

Tested for backward compatibility.

Signed-off-by: Denys Fedoryshchenko <denys@visp.net.lb>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

efdedd5426
5 years ago
snowman58 e5b0af1e4f Update version to "V1.0.12.99" due to NETGEAR mandating no downgrades and having a limit on how high the new version can be. 5 years ago
M_ars 5bc54580e2 SDK7: update part 1
Note: sync SDK7 with ASUS SRC and also stay closer to SDK6
5 years ago
pedro dc9cbd7e55 Bump version to 2020.6 5 years ago
pedro aa0de4b620 Merge branch 'arm-master' into arm-sdk7 5 years ago
pedro f1d61a7f8d Update CHANGELOG 5 years ago
pedro a5d373adb8 WL: update wireless driver for SDK7 to GPL 382.52287 (Kr00k)
$ dhd -i eth1 version
(null): 1.194 RC33.0
Dongle Host Driver, version 1.194.33 (r526004)
Compiled in drivers/net/wireless/bcmdhd on Jun 23 2020 at 18:27:39
5 years ago
M_ars afe4a65026 Asus RT-AC56U/R: do not unload wifi driver
Note: this is a workaround, to avoid a reboot after saving basic settings for example. (No change for all other routers)
The reboot problem for this older sdk6 router is independent of the SDK6 upgrade and wifi driver upgrade to *.126 (also happens with *.86)
(probably a combination of older cfe/hardware/driver)

tested, working correct now :)
5 years ago
M_ars 3af003dc6e Asus RT-AC56R: improve/fix support with new wifi driver (*.126)
see problem report:
https://www.linksysinfo.org/index.php?threads/fork-freshtomato-arm-development-discussion-only-for-support-always-open-your-own-thread.74117/page-203#post-317427

Note: set country to US by default for that router
5 years ago
pedro d4373ca3c7 GUI: advanced-wireless.asp: when changing country for WL driver, also change its short version - 'ccode' 5 years ago
pedro 8208f872e6 firewall: fix commit 31a8eb0 (brute force mitigation rule on port defined for GUI remote access) - increase hitcount / lower period of time (hardcoded) 5 years ago
pedro 1ad8d4bd5f libevent: update to 2.1.12-stable 5 years ago
pedro 81947100df tor: update to 0.4.3.6 5 years ago
pedro ec61cf1279 libcurl: update to 7.71.1 5 years ago
pedro 3f5e4b9b10 httpd: add to log failed GUI login attempts 5 years ago
pedro 4926a1818a kernel: r2q change message from priority WARNING to priority DEBUG 5 years ago
pedro f3c8387e34 kernel: r2q change message from priority WARNING to priority DEBUG 5 years ago
M_ars 1295fa6634 shared: defaults: wl clean-up (part 3) / remove wl_radarthrs for ARM branch
Note: the radar thrs params are not valid and not complete for SDK6.37 (and up)
--> do not provide them and use driver default values (no change)
5 years ago
M_ars 9c0b914cc9 Netgear Router (all supported): Raise revision level (again)
see original commit:
0c2fb23a97

changed / lowered (ooops)... ;-)
a30b1e86ab (chg-release)/src-rt-6.x.4708/wnrtool/tomato_cfg.h
5 years ago
pedro e0580ff9a7 www: clearcookies.asp: remove the comment left when debugging 5 years ago
pedro 5b765f1e1a www: tomato.js: add SameSite=Lax when creating cookies 5 years ago
pedro 7dfc2ad925 Bump version to 2020.5 5 years ago
pedro 2db50c1638 Merge branch 'arm-master' into arm-sdk7 5 years ago
pedro 48cb28e5ca Update CHANGELOG 5 years ago
pedro c871772e89 router: Makefile: fix diskdev_cmds install 5 years ago
pedro 02c0ae7303 build: fix processor count for parallel building
Ported from @Merlin: b87c07288f
5 years ago
pedro bde4feba38 build: kernel: enable HIDRAW for UPS support in apcupsd 5 years ago
pedro 6ee943d6af patches: getdns: fix commit 767220d 5 years ago
pedro d3bf34c4b9 rc: mtd.c: skip bad blocks during erase 5 years ago
pedro 767220d55b patches: getdns: rename the patches according to the function 5 years ago