Commit Graph

5517 Commits

Author SHA1 Message Date
Tianling Shen
5683b6cde9
wireguard: bump to 1.0.20210424
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-21 01:31:39 +08:00
Philip Prindeville
4109228554 busybox: preserve crontabs
/etc/syslog.conf is used by sysklogd, and /etc/crontabs is used
by crond, both features of busybox.  Given this, ownership for
these files should be bound to busybox, especially if one day
there's a way to do an in-place opkg update of busybox.

There's also the busybox provided syslogd which uses this file
if CONFIG_BUSYBOX_FEATURE_SYSLOGD_CFG is set.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2021-05-19 23:28:58 +08:00
Nick Hainke
ebeb7355f7 busybox: remove nslookup_lede/openwrt.patch
The nslookup_lede/openwrt applet was introduced in de5b8e5. It was
introduced because:

  Add a new LEDE nslookup applet which is compatible with musl libc
  and providing more features like ability to specify query type.

  In contrast to busybox' builtin nslookup applet, this variant does
  not rely on libc resolver internals but uses explicit send logic
  and the libresolv primitives to parse received DNS responses.

In busybox this applet is added in 0dd3be8. In particular, this commit
introduces the variable NSLOOKUP_BIG. We set the default to true and
so nothing changes.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2021-05-19 23:24:29 +08:00
Paul Spooren
7488eea635 busybox: show reproducible timestamp
On login busybox shows a timestamp per default contianing the build
date. Since the build date isn't reproducible per default this behaviour
was disabled by default via 34df4d40 "busybox: disable timestamp in
version".

This commit modifies busybox so that the printed timestamp reproducible
using SOURCE_DATE_EPOCH and therefore shouldn't be disabled anymore.

Before:

    BusyBox v1.33.1 () built-in shell (ash)

After:

    BusyBox v1.33.1 (2021-05-13 09:34:34 UTC) built-in shell (ash)

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-05-19 23:24:04 +08:00
Paul Spooren
583739d220 busybox: use $(AUTORELEASE) and SPDX
use AUTORELEASE since BusyBox is often updaten and PKG_RELEASE is not
consistently bumped. Also use SPDX license headers to be machine
readable and bump the copyright year to 2021.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-05-19 23:23:40 +08:00
Stijn Tintel
0f17c0b485 grub2: bump to 2.06-rc1
When building GRUB with binutils 2.35.2 or later, an error occurs due to
a section .note.gnu.property that is placed at an offset such that
objcopy needs to pad the img file with zeros. This in turn causes the
following error: "error: Decompressor is too big.".

The fix accepted by upstream patches a python script that isn't executed
at all when building GRUB with OpenWrt buildroot. There's another patch
that patches the files generated by that python script directly, but by
including it we would deviate further from upstream. Instead of doing
that, simply bump to the latest release candidate.

As one of the fixes for the CVEs causes grub to crash on some x86
hardware using legacy BIOS when compiled with -O2, filter -O2 and
-O3 out of TARGET_CFLAGS.

Fixes the following CVEs:
- CVE-2020-14372
- CVE-2020-25632
- CVE-2020-25647
- CVE-2020-27749
- CVE-2020-27779
- CVE-2021-3418
- CVE-2021-20225
- CVE-2021-20233

Runtime-tested on x86/64.

Fixes: FS#3790

Suggested-by: Dirk Neukirchen <plntyk.lede@plntyk.name>
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2021-05-16 23:23:44 +08:00
Stijn Tintel
0efea4cc37 umdns: bump to git HEAD
777a0b service: fix compilation with GCC 10

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2021-05-16 23:15:10 +08:00
Tianling Shen
b9aa06e432
package lean: move to LuCI feeds
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-14 23:12:28 +08:00
Tianling Shen
ec4c3d0a75
package lean: move to packages
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-14 23:02:16 +08:00
Tianling Shen
f57645200f
luci-app-ssr-plus: improve description
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-14 18:49:34 +08:00
Bob zhang
cb22ff8ea2
luci-app-ttyd auto fit iframe height
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-14 17:44:30 +08:00
Leonardo Mörlein
2a821d862c
build: introduce $(MKHASH)
Before this commit, it was assumed that mkhash is in the PATH. While
this was fine for the normal build workflow, this led to some issues if

    make TOPDIR="$(pwd)" -C "$pkgdir" compile

was called manually. In most of the cases, I just saw warnings like this:

    make: Entering directory '/home/.../package/gluon-status-page'
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    bash: line 1: mkhash: command not found
    [...]

While these were only warnings and the package still compiled sucessfully,
I also observed that some package even fail to build because of this.

After applying this commit, the variable $(MKHASH) is introduced. This
variable points to $(STAGING_DIR_HOST)/bin/mkhash, which is always the
correct path.

Signed-off-by: Leonardo Mörlein <me@irrelefant.net>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-13 22:49:42 +08:00
Nick Hainke
423f86bc29
busybox: update to 1.33.1
Remove backports:
- 001-backport1330fix-ash-make-strdup-copy.patch
- 002-backport1330fix-traceroute.patch
- 005-backport-CVE-2021-28831.patch

Remove upstreamed:
- 010-fix-wrong-variable.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>
[don't use $(AUTORELEASE) for now]
Signed-off-by: Paul Spooren <mail@aparcar.org>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-13 22:43:03 +08:00
Perry Melange
a2b78a50b6 busybox: add SRV support to nslookup_lede.c patch
Add support for querying and parsing SRV DNS records to nslookup_lede.c

This patch is based on http://lists.busybox.net/pipermail/busybox/2019-June/087359.html

Signed-off-by: Perry Melange <isprotejesvalkata@gmail.com>
[reword subject, bump PKG_RELEASE]
Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-05-12 23:28:04 +08:00
Jo-Philipp Wich
5ef4117f4c base-files: shinit: properly handle dashes in service names
Fixes: FS#3801
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-05-12 23:27:43 +08:00
Alexander Egorenkov
aecd3a3c05 build: fix opkg install step for large package selection
When the list of packages to be installed in a built image exceeds a certain
number, then 'opkg install' executed for target '$(curdir)/install' in
package/Makefile fails with: /usr/bin/env: Argument list too long.

On Linux, the length of a command-line parameter is limited by
MAX_ARG_STRLEN to max 128 kB.

* https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/binfmts.h#L15
* https://www.in-ulm.de/~mascheck/various/argmax/

To solve the problem, store the package list being passed to 'opkg install'
in a temporary file and use the shell command substitution to pass the
content of the file to 'opkg install'. This guarantees that the length of
the command-line parameters passed to the bash shell is short.

The following bash script demonstrates the problem:
----------------------------------------------------------------------------
count=${1:-1000}

FILES=""
a_file="/home/egorenar/Repositories/openwrt-rel/bin/targets/alpine/generic/packages/base-files_1414-r16464+19-e887049fbb_arm_cortex-a15_neon-vfpv4.ipk"

for i in $(seq 1 $count); do
	FILES="$FILES $a_file"
done

env bash -c "echo $FILES >/dev/null"
echo "$FILES" | wc -c
----------------------------------------------------------------------------

Test run:
----------------------------------------------------------------------------
$ ./test.sh 916
130989
$ ./test.sh 917
./test.sh: line 14: /bin/env: Argument list too long
131132
----------------------------------------------------------------------------

Signed-off-by: Alexander Egorenkov <egorenar-dev@posteo.net>
[reword commit subject]
Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-05-12 23:27:23 +08:00
Keith T. Garner
470cb5d931 kernel: add kmod-leds-uleds
The allows userspace LEDs to be created and controlled. This can be useful
for testing triggers and can also be used to implement virtual LEDs.

Signed-off-by: Keith T. Garner <kgarner@kgarner.com>
[squash fixup commit and improve option wording]
Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-05-12 23:26:38 +08:00
Tianling Shen
3bfeca67fb
luci-app-cpufreq: fix tweak for ipq40xx/ipq806x
Reported-by: AmadeusGhost <amadeus@immortalwrt.org>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-12 21:26:55 +08:00
Tianling Shen
192721fc51
luci-app-cpufreq: add tweak for sunxi/cortexa53
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-12 04:18:20 +08:00
Tianling Shen
48afed7aef
luci-proto-bonding: remove useless files
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-11 22:31:03 +08:00
selboo
14b8674b49
vsftpd-alt: fix ftp banner doesn't work with LuCI
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-10 03:13:04 +08:00
Tianling Shen
f34b6af4e5
luci-app-cpufreq: increase boot order
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-10 02:57:49 +08:00
Tianling Shen
4ee39f0bf2
shadowsocksr-libev: reorder patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-10 02:39:29 +08:00
Tianling Shen
930cf44a05
luci-app-ssr-plus: remove naiveproxy from default dependencies
Only a few people use this.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-10 02:29:58 +08:00
Tianling Shen
eeb32ddee5
luci-app-ssr-plus: update dependencies
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-10 02:22:16 +08:00
Tianling Shen
d6c9ef9ae1
shadowsocksr-libev: add support for read listening mode from config
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-10 02:16:47 +08:00
Tianling Shen
0c4a35392b
luci-app-cpufreq: enable uci silent mode
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-09 21:56:25 +08:00
Tianling Shen
ff599c9d56
luci-app-cpufreq: add default tweak for firstboot
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-09 21:50:22 +08:00
Tianling Shen
6a3f101bc0
kernel: sysctl: increase max conns limit to 65536
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-09 20:01:58 +08:00
Thomas Richard
942f1d2aed uqmi: fix network registration loop
With some debug in qmi.sh using following patch, some errors are visible
in the registration step
@@ -29,6 +29,7 @@ proto_qmi_init_config() {
 }

 proto_qmi_setup() {
+       set -x
        local interface="$1"
        local dataformat connstat plmn_mode mcc mnc
        local device apn auth username password pincode delay modes pdptype
@@ -224,6 +225,8 @@ proto_qmi_setup() {
                fi
        done

+       registration=$(uqmi -s -d "$device" --get-serving-system)
+
        [ -n "$modes" ] && uqmi -s -d "$device" --set-network-modes "$modes" > /dev/null 2>&1

        echo "Starting network $interface"

During the boot of the system, modem could not start automatically its
network registration.
netifd: wan (9235): + echo 'Waiting for network registration'
netifd: wan (9235): Waiting for network registration
netifd: wan (9235): + local 'registration_timeout=0'
netifd: wan (9235): + uqmi -s -d /dev/cdc-wdm1 --get-serving-system
netifd: wan (9235): + grep '"searching"'
netifd: wan (9235): + uqmi -s -d /dev/cdc-wdm1 --get-serving-system
netifd: wan (9235): + registration='{"registration":"not_registered","plmn_mcc":208,"plmn_mnc":20,"plmn_description":"","roaming":true}'
netifd: wan (9235): + '[' -n  ]
netifd: wan (9235): + echo 'Starting network wan'

As the while loop checks only "searching" pattern, uqmi.sh script quits
searching loop and continues whereas the modem is not registered

Other issue, after X seconds modem stops searching.
netifd: wan (9213): + uqmi -s -d /dev/cdc-wdm0 --get-serving-system
netifd: wan (9213): + grep '"searching"'
netifd: wan (9213): + '[' -e /dev/cdc-wdm0 ]
netifd: wan (9213): + '[' 3 -lt 0 -o 0 '=' 0 ]
netifd: wan (9213): + let registration_timeout++
netifd: wan (9213): + sleep 1
netifd: wan (9213): + uqmi -s -d /dev/cdc-wdm0 --get-serving-system
netifd: wan (9213): + grep '"searching"'
netifd: wan (9213): + uqmi -s -d /dev/cdc-wdm0 --get-serving-system
netifd: wan (9213): + registration='{"registration":"not_registered"}'
netifd: wan (9213): + '[' -n  ]
netifd: wan (9213): + echo 'Starting network wan'
netifd: wan (9213): Starting network wan

If registration_timeout is not expired, registration can be restarted

Signed-off-by: Thomas Richard <thomas.richard@kontron.com>
Tested-by: Florian Eckert <fe@dev.tdt.de>
2021-05-09 00:37:14 +08:00
Tianling Shen
ed8b277f27 Revert "kernel: video: add multimedia-input driver"
However, this commit still has some issues.
2021-05-09 00:33:56 +08:00
Tianling Shen
fe01c9e9e5
Merge branch '1806-mt76-updates' into openwrt-18.06-dev
Compile-tested-on: ramips
Runtime-tested-on: mt7621 newifi-d2

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-07 20:04:02 +08:00
Lucian Cristian
dabe73bc08
kernel: video: add multimedia-input driver
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
[rebase commit, apply review recommendations]
Signed-off-by: AmadeusGhost <amadeus@immortalwrt.org>
[rebase commit, only apply generic part]
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-07 18:44:41 +08:00
David Bauer
72ff571876
mt76: update to the latest version
5c768de mt76: mt76x0: disable GTK offloading

Signed-off-by: David Bauer <mail@david-bauer.net>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-07 18:36:35 +08:00
David Bauer
6680b7efac
mt76: update to the latest version
4ba1709 mt76: mt7603: add additional EEPROM chip ID

Signed-off-by: David Bauer <mail@david-bauer.net>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-07 18:36:31 +08:00
Mattraks
4690eb0097
luci-app-ssr-plus: add vless gRPC support
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-07 17:32:48 +08:00
Tianling Shen
b1723be7bf
luci-app-ssr-plus: add basic ss server support
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Co-authored-by: Mattraks <mattraks@gmail.com>
2021-05-07 17:16:27 +08:00
Tianling Shen
0aaa145e34
qt: add missing dependencies
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-05 22:27:36 +08:00
AmadeusGhost
d887cecd15 dnsmasq: refresh patches 2021-05-05 21:08:03 +08:00
Alan Swanson
37590aa02a dnsmasq: Update to version 2.85
Fixes issue with merged DNS requests in 2.83/2.84 not being
retried on the firsts failed request causing lookup failures.

Also fixes the following security problem in dnsmasq:
* CVE-2021-3448:
  If specifiying the source address or interface to be used
  when contacting upstream name servers such as:
  server=8.8.8.8@1.2.3.4, server=8.8.8.8@1.2.3.4#66 and
  server=8.8.8.8@eth0 then all would use the same socket
  bound to the explicitly configured port. Now only
  server=8.8.8.8@1.2.3.4#66 will use the explicitly
  configured port and the others random source ports.

Remove upstreamed patches and update remaining patch.

Signed-off-by: Alan Swanson <reiver@improbability.net>
[refreshed old runtime support patch]
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2021-05-05 21:05:57 +08:00
Hauke Mehrtens
842d799bb4
mac80211: Update to backports version 4.19.189-1
The removed patches were applied upstream.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-05 16:29:30 +08:00
lean
669bb7ac30
luci-app-kodexplorer: fix libxml dependence
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-05 16:25:45 +08:00
Hauke Mehrtens
0107a192d5
ltq-dsl-base: Make package nonshared to fix image builder
This package depends on the lantiq target and is only build for that
target. A normal package would be build by the SDK builder probably
under a different target and then this package will not be selected.
Mark it as nonshared to build it when the lantiq target gets build.

Fixes: FS#3773, FS#3774
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-05 16:25:18 +08:00
Hauke Mehrtens
71e1901781 busybox: backport fix for CVE-2021-28831
This backports a fix for the low priority CVE-2021-28831:
  decompress_gunzip.c in BusyBox through 1.32.1 mishandles the error bit
  on the huft_build result pointer, with a resultant invalid free or
  segmentation fault, via malformed gzip data.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2021-05-05 12:00:30 +08:00
Álvaro Fernández Rojas
cf553d1b84
bcm27xx-gpu-fw: update to latest version
This is needed to add support for CM4 and RPI 400.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-05 01:18:01 +08:00
Tianling Shen
9433ca3567
luci-app-ssr-plus: drop ss stream-cipher support
They're totally unsafe, and deprecated in new designs.
All of your data encrypted in these way could be replayed and decrypted.

For details, see:
https://shadowsocks.org/assets/whitepaper.pdf
https://phuker.github.io/shadowsocks-active-probing.html
https://github.com/edwardz246003/shadowsocks

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-05 01:12:38 +08:00
lean
795397e7dd
luci-app-kodexplorer: fix php7-mod-dom support
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-04 22:22:02 +08:00
kuma
a47038d83f
luci-app-ssr-plus: bug fixes
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-03 17:18:46 +08:00
Tianling Shen
f75fc2554f
luci-app-ssr-plus: correct protocol place for ss
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-03 15:45:26 +08:00
greekstreet
703b0e04f6
luci-app-ssr-plus: make it compatible with procps-ng-ps
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-03 15:44:14 +08:00