Commit Graph

4901 Commits (2021.1.082)
 

Author SHA1 Message Date
pedro 82d7a9aa78 Merge branch 'arm-master' into arm-sdk7 5 years ago
pedro f1472e119a rc: qos.c: code optimization and clean-up. One version for ARM and MIPS branch.
- in PRs please use #ifdef TCONFIG_BCMARM/#ifndef TCONFIG_BCMARM/etc to distinguish different branches
5 years ago
snowman 5586444903 Merged in arm-master (pull request #35)
Add RT-AC67U support
5 years ago
M_ars 27f8f3cf5f pppd: fix/correction for commit IPv6: split IPv6 / IPv4 up and down logic (see d365748b8f)
fix for: PPTP Server and Client not working anymore

Note: V2 (with adjusted patch)
5 years ago
pedro 2eec459d8a kernel: net_sched: fix datalen for ematch
syzbot reported an out-of-bound access in em_nbyte. As initially
analyzed by Eric, this is because em_nbyte sets its own em->datalen
in em_nbyte_change() other than the one specified by user, but this
value gets overwritten later by its caller tcf_em_validate().
We should leave em->datalen untouched to respect their choices.

I audit all the in-tree ematch users, all of those implement
->change() set em->datalen, so we can just avoid setting it twice
in this case.

Reported-and-tested-by: syzbot+5af9a90dad568aa9f611@syzkaller.appspotmail.com
Reported-by: syzbot+2f07903a5b05e7f36410@syzkaller.appspotmail.com
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarCong Wang <xiyou.wangcong@gmail.com>
Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    [bwh: Backported to 3.16: adjust context]
Signed-off-by: Ben Hutchings's avatarBen Hutchings <ben@decadent.org.uk>

Fix from upstream: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=61678d28d4a45ef376f5d02a839cc37509ae9281
5 years ago
pedro 41202425e7 kernel: netfilter: ebtables: compat: reject all padding in matches/watchers
syzbot reported following splat:

BUG: KASAN: vmalloc-out-of-bounds in size_entry_mwt net/bridge/netfilter/ebtables.c:2063 [inline]
BUG: KASAN: vmalloc-out-of-bounds in compat_copy_entries+0x128b/0x1380 net/bridge/netfilter/ebtables.c:2155
Read of size 4 at addr ffffc900004461f4 by task syz-executor267/7937

Reported-by: syzbot+f68108fed972453a0ad4@syzkaller.appspotmail.com
Fixes: 81e675c227ec ("netfilter: ebtables: add CONFIG_COMPAT support")

Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Ben Hutchings's avatarBen Hutchings <ben@decadent.org.uk>

Fix from upstream: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e608f631f0ba5f1fc5ee2e260a3a35d13107cbfe
5 years ago
pedro a57380832a kernel: netfilter: ebtables: fix a memory leak bug in compat
In compat_do_replace(), a temporary buffer is allocated through vmalloc()
to hold entries copied from the user space. The buffer address is firstly
saved to 'newinfo->entries', and later on assigned to 'entries_tmp'. Then
the entries in this temporary buffer is copied to the internal kernel
structure through compat_copy_entries(). If this copy process fails,
compat_do_replace() should be terminated. However, the allocated temporary
buffer is not freed on this path, leading to a memory leak.

To fix the bug, free the buffer before returning from compat_do_replace().

Signed-off-by: Wenwen Wang's avatarWenwen Wang <wenwen@cs.uga.edu>
Reviewed-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>

Fix from upstream: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=15a78ba1844a8e052c1226f930133de4cef4e7ad
5 years ago
pedro 02f7a49f72 kernel: netfilter: ebtables: convert BUG_ONs to WARN_ONs
All of these conditions are not fatal and should have
been WARN_ONs from the get-go.

Convert them to WARN_ONs and bail out.

Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Ben Hutchings's avatarBen Hutchings <ben@decadent.org.uk>

Fix from upstream: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fc6a5d0601c5ac1d02f283a46f60b87b2033e5ca
5 years ago
pedro 4fbb37dcc5 kernel: net_sched: fix datalen for ematch
syzbot reported an out-of-bound access in em_nbyte. As initially
analyzed by Eric, this is because em_nbyte sets its own em->datalen
in em_nbyte_change() other than the one specified by user, but this
value gets overwritten later by its caller tcf_em_validate().
We should leave em->datalen untouched to respect their choices.

I audit all the in-tree ematch users, all of those implement
->change() set em->datalen, so we can just avoid setting it twice
in this case.

Reported-and-tested-by: syzbot+5af9a90dad568aa9f611@syzkaller.appspotmail.com
Reported-by: syzbot+2f07903a5b05e7f36410@syzkaller.appspotmail.com
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarCong Wang <xiyou.wangcong@gmail.com>
Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    [bwh: Backported to 3.16: adjust context]
Signed-off-by: Ben Hutchings's avatarBen Hutchings <ben@decadent.org.uk>

Fix from upstream: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=61678d28d4a45ef376f5d02a839cc37509ae9281
5 years ago
pedro cee7c9f02b kernel: netfilter: ebtables: compat: reject all padding in matches/watchers
syzbot reported following splat:

BUG: KASAN: vmalloc-out-of-bounds in size_entry_mwt net/bridge/netfilter/ebtables.c:2063 [inline]
BUG: KASAN: vmalloc-out-of-bounds in compat_copy_entries+0x128b/0x1380 net/bridge/netfilter/ebtables.c:2155
Read of size 4 at addr ffffc900004461f4 by task syz-executor267/7937

Reported-by: syzbot+f68108fed972453a0ad4@syzkaller.appspotmail.com
Fixes: 81e675c227ec ("netfilter: ebtables: add CONFIG_COMPAT support")

Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Ben Hutchings's avatarBen Hutchings <ben@decadent.org.uk>

Fix from upstream: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e608f631f0ba5f1fc5ee2e260a3a35d13107cbfe
5 years ago
pedro 3c4b85f02d kernel: netfilter: ebtables: fix a memory leak bug in compat
In compat_do_replace(), a temporary buffer is allocated through vmalloc()
to hold entries copied from the user space. The buffer address is firstly
saved to 'newinfo->entries', and later on assigned to 'entries_tmp'. Then
the entries in this temporary buffer is copied to the internal kernel
structure through compat_copy_entries(). If this copy process fails,
compat_do_replace() should be terminated. However, the allocated temporary
buffer is not freed on this path, leading to a memory leak.

To fix the bug, free the buffer before returning from compat_do_replace().

Signed-off-by: Wenwen Wang's avatarWenwen Wang <wenwen@cs.uga.edu>
Reviewed-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>

Fix from upstream: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=15a78ba1844a8e052c1226f930133de4cef4e7ad
5 years ago
pedro 92b41c0952 kernel: netfilter: ebtables: convert BUG_ONs to WARN_ONs
All of these conditions are not fatal and should have
been WARN_ONs from the get-go.

Convert them to WARN_ONs and bail out.

Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Ben Hutchings's avatarBen Hutchings <ben@decadent.org.uk>

Fix from upstream: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fc6a5d0601c5ac1d02f283a46f60b87b2033e5ca
5 years ago
snowman a67c11e1f3 Merged pedro311/freshtomato-arm into arm-master 5 years ago
snowman58 f0797aec31 Correct AC67U to align with AC66U_B1 small case style 5 years ago
pedro 58c1140b23 Merge branch 'arm-master' into arm-sdk7 5 years ago
pedro c50a2ee776 build: harmonize BW Limiter filenames, service name, variables names, etc., also in NVRAM; it was a real mess...
Note: those using BW Limiter must either manually rename the variables in NVRAM or enter the values from scratch
5 years ago
pedro 4477c59998 GUI: tinc: properly format the display of information on the Status page; fixes #71 5 years ago
pedro 14b785edea kernel sdk7: QoS: fix definitely ingress system
- mirred sched needed patch
5 years ago
Stefan Wrobel e49ba8e82b Merged in Stefan-Wrobel/motd-only-display-wireless-info-if-that--1604424736884 (pull request #36)
MOTD: only display Wireless info if that radio is enabled
5 years ago
M_ars 7ab0dadf70 kernel SDK6: netfilter: nf_conntrack_core.c - small update and add one more check
Note: align/sync with asus src
5 years ago
pedro c0710b5940 kernel sdk7: QoS: fix (partially) ingress system
- two modules needed for operation were not built
- further investigation is needed as all incoming traffic only goes to the default class, but at least enabling/disabling QoS returns no errors and a graph of incoming bandwidth distribution appears
5 years ago
Stefan Wrobel 5f9e1f8832 MOTD: only display Wireless info if that radio is enabled 5 years ago
pedro 723c989c83 libcurl: update CA certificate bundle as of 2020-10-14 5 years ago
pedro 07314fde25 Merge branch 'arm-master' into arm-sdk7 5 years ago
pedro a8aa2e6637 Makefile: remove references to CONFIG_LINUX26 5 years ago
pedro 67d35a5e95 build: syslog: introduce and use logmsg()
- built-in debug messages only in 'beta' images (those with TOMATO_EXPERIMENTAL set to 1) - we don't need debug info in regular builds
- this feature allows to disable/enable debugging in given script by setting appropriate value in nvram (if built with debugging)
- add possibility to build a given script without any logging (e.g. for the smallest MIPS images)
- replace _dprintf() with logmsg() (what a mess...) with level LOG_DEBUG (at least in the rc subdir for now)
- changes in subsequent scripts (subdirs) will follow
5 years ago
pedro fc01551e30 rc: qos.c: fix illegal match, no SELECTOR like ipv6 5 years ago
pedro 3d69c4496f GUI: QoS Graphs: fix displaying correct number of connections for the lowest priority class in BW Distribution 5 years ago
pedro 80c662d9bf rc: qos.c: fix typo in DEV name 5 years ago
pedro 59836bba8c httpd: ctnf.c: use ifb instead of imq for ARM as ingress system not only for default WAN 5 years ago
pedro e008f55c68 rc: services.c: fix typo 5 years ago
snowman58 b83e758268 Merge branch 'arm-master' of https://bitbucket.org/snowman58/rt67u into arm-master 5 years ago
snowman58 5c6f1d2a4a Cosmetic comment update 5 years ago
snowman 2d231efea4 Merged pedro311/freshtomato-arm into arm-master 5 years ago
pedro 2f4796f1a8 GUI: MultiWAN Routing: extend Domain field to 70 characters 5 years ago
pedro 812a6817b3 Merge branch 'arm-master' into arm-sdk7 5 years ago
edrikk 88a4eec300 build: fix build error following busybox patches
Fix courtesy of st_ty_ --> https://www.linksysinfo.org/index.php?threads/fork-freshtomato-arm-development-discussion-only-for-support-always-open-your-own-thread.74117/post-319365
5 years ago
pedro 41177b9a6a adblock: update blacklist URLs 5 years ago
M_ars e61b2d6ed7 kernel SDK6: small update for bridge (sync with asus src)
Note: small addendum for the following commit a1997cd768
5 years ago
pedro a5d8e03f86 build: remove TRACE_PT macro completely 5 years ago
pedro 92680e04fc dropbear: update to 2020.81 5 years ago
pedro 6c8df05b8a openvpn: update to 2.5.0 5 years ago
M_ars a1997cd768 SDK6: small update for et (sync with asus src)
Note: ARP skip ctf
5 years ago
pedro ef6e38a28e rc: services.c: clean up rest of samba logs again 5 years ago
snowman 939dcf3f30 Merged pedro311/freshtomato-arm into arm-master 5 years ago
pedro c7804409a1 rc: services.c: clean up all temporary files created by samba in /tmp/var/log 5 years ago
snowman 3257e30b64 Merged pedro311/freshtomato-arm into arm-master 5 years ago
pedro bc2090de8e rc: services.c: fix logging 5 years ago
snowman 4e98d26fd7 Merged pedro311/freshtomato-arm into arm-master 5 years ago
pedro 75fa05c5ea Merge branch 'arm-master' into arm-sdk7 5 years ago