Commit Graph

4810 Commits

Author SHA1 Message Date
Petr Štetiar
27befb47d9 zlib: backport null dereference fix
The curl developers found test case that crashed in their testing when
using zlib patched against CVE-2022-37434, same patch we've backported
in commit 7df6795d4c25 ("zlib: backport fix for heap-based buffer
over-read (CVE-2022-37434)"). So we need to backport following patch in
order to fix issue introduced in that previous CVE-2022-37434 fix.

References: https://github.com/curl/curl/issues/9271
Fixes: 7df6795d4c25 ("zlib: backport fix for heap-based buffer over-read (CVE-2022-37434)")
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2022-08-10 11:06:52 +08:00
Reto Schneider
1463a9598f ramips: mt7628: fix memory controller reset bit
According to MediaTek MT7688 Datasheet v1.4, as well as the MT7628
counterpart, the memory controller reset bit (MC_RST) is 10, not 20.
Reset bit 20 is used for for UART 2 (UART2_RST).

Please note: Due to the lack of hardware, I was not able to test this
change.

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
2022-08-10 11:05:05 +08:00
Jiaxun Yang
665970a97d ramips: mt7530: Implement set_port_link
set_port_link is required by swconfig to setup link mode.
Here we implemented set_port_link by touching MII PHY registers.
For autoneg enabled case, we set advertise registers to let
autoneg reach the target mode and then retrigger autoneg. For
non autoneg case, we set BMCR register to force PHY enter
desired mode.

This patch have been tested on both MT7620 and MT7621.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
2022-08-09 11:21:28 +08:00
Koen Vandeputte
9d7fe3f316 kernel: add missing 5.15 symbols
Found while testing various platforms

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2022-08-09 11:20:42 +08:00
cuiyf5516
09eb2e90cd
uboot-rockchip: refresh rk3328 rkbin verdor atf (#9903) 2022-08-08 23:51:35 +08:00
coolsnowwolf
f1b4ddefd4 target: add silicon mk place holder 2022-08-08 10:16:13 +00:00
coolsnowwolf
8dbff7b4f8 uboot-rockchip: add rk3568 board support 2022-08-08 09:25:58 +00:00
coolsnowwolf
13b92d9b2b arm-trusted-firmware-rockchip-vendor: add rk3568/rk3588 rkbin verdor atf 2022-08-08 06:18:05 +00:00
coolsnowwolf
d05a98ba99 arm-trusted-firmware-rockchip-vendor: bump to v2022-08-01 2022-08-08 03:38:29 +00:00
coolsnowwolf
40548d8a95 phy: update RK3568 rockchip-snps-pcie3 fw when init 2022-08-08 02:53:04 +00:00
Petr Štetiar
0efde5c7f7 zlib: backport fix for heap-based buffer over-read (CVE-2022-37434)
zlib through 1.2.12 has a heap-based buffer over-read or buffer overflow
in inflate in inflate.c via a large gzip header extra field. NOTE: only
applications that call inflateGetHeader are affected. Some common
applications bundle the affected zlib source code but may be unable to
call inflateGetHeader.

Fixes: CVE-2022-37434
References: https://github.com/ivd38/zlib_overflow
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2022-08-08 10:28:17 +08:00
Petr Štetiar
17c7b4cbe0 generic: 5.15: disable CONFIG_DEBUG_INFO_REDUCED symbol
This came up during build testing of mvebu/cortexa9 target with 5.15
kernel.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2022-08-08 10:27:52 +08:00
coolsnowwolf
bbdcf9095c target: add Apple Silicon SoC platform (M1/M2) family init support 2022-08-07 03:58:27 +00:00
coolsnowwolf
960844ee21 x86: add kmod-i915-gvt package 2022-08-06 16:49:16 +00:00
coolsnowwolf
1ed3597b92 x86: add suuport for Intel gen 11/12/13th GPU GVT-g capability 2022-08-06 16:46:59 +00:00
aakkll
3c316115f9
kernel: bump 5.18 to 5.18.16 (#9892)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-08-06 00:23:26 +08:00
aakkll
dad62d5fb5
kernel: bump 5.15 to 5.15.59 (#9891)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-08-06 00:23:05 +08:00
aakkll
e99155a6e1
kernel: refresh 5.19 patch (#9890)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2022-08-06 00:22:41 +08:00
cuiyf5516
2e53ea6741
rockchip: 5.19: disable ntfs option (#9889) 2022-08-06 00:21:54 +08:00
coolsnowwolf
f861ce8a61 rockchip: refresh 5.19 patch 2022-08-05 06:38:54 +00:00
lean
766e12fcd5 rockchip: add kernel 5.19 support 2022-08-05 12:00:06 +08:00
lovehackintosh
cabbef2b4e
kernel: bump 5.10 to 5.10.135 (#9887)
All patches automatically rebased.

Signed-off-by: John Audia <therealgraysky@proton.me>

Co-authored-by: John Audia <therealgraysky@proton.me>
2022-08-05 11:19:25 +08:00
coolsnowwolf
bda5611e48
ntfs3-mount : add support kernel 5.19 2022-08-05 11:18:08 +08:00
coolsnowwolf
3f09969e86 kernel: refresh RTL 5.19 patch 2022-08-04 19:47:00 +00:00
coolsnowwolf
729dcd5bca linux-atm: add kernel 5.19 support 2022-08-04 19:13:26 +00:00
coolsnowwolf
ba6dc2427f r8168: add kernel 5.19 support 2022-08-04 17:53:43 +00:00
coolsnowwolf
07adaa5beb r8152: add kernel 5.19 support 2022-08-04 17:49:52 +00:00
coolsnowwolf
84f9ec62e2 r8125: add kernel 5.19 support 2022-08-04 17:30:38 +00:00
lean
6c96f8dc92 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-08-05 00:36:25 +08:00
lean
785fe8dbb8 x86: fix 5.19 modules.mk 2022-08-05 00:36:00 +08:00
coolsnowwolf
cfc113b29f
Update README.md 2022-08-04 21:23:28 +08:00
lean
962a1027cc x86: switch test kernel to 5.19 2022-08-04 21:11:02 +08:00
lean
a50ffe87c6 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2022-08-04 19:36:24 +08:00
lean
db9659b5db Version update to R22.8.2 2022-08-04 19:36:06 +08:00
coolsnowwolf
1258152bd7
Update README.md 2022-08-04 19:33:49 +08:00
lean
15df97d309 Update README.md 2022-08-04 19:32:08 +08:00
lean
94f7c18695 linux: fix 5.19 patch build error 2022-08-04 19:19:25 +08:00
Nick Hainke
690ee8c181 libcap: update to 2.65
Changes:
a47d86d Up the release version to 2.65
fc99e56 Include more signatures in pgp.keys.asc.
52288cc Close out this comment in the go/Makefile
eb0f1df Prevent 'capsh --user=xxx --' from generating a bash error.
9a95791 Improve documentation for cap_get_pid and cap_reset_ambient.
21d08b0 Fix syntax error in DEBUG protected setcap.c code.
9425048 More useful captree usage string and man page.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-08-04 10:16:44 +08:00
Nick Hainke
fab893c9d6 libcap: update to 2.64
Changes:
38cfa2e Up the release version to 2.64
7617af6 Avoid a deadlock in forked psx thread exit.
fc029cb Include LIBCAP_{MAJOR,MINOR} #define's in sys/capability.h
ceaa591 Clarify how the cap_get_pid() argument is interpreted.
15cacf2 Fix prctl return code/errno handling in libcap.
aae9374 Be explicit about CGO_ENABLED=1 for compare-cap build.
66a8a14 psx: free allocated memory at exit.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-08-04 10:16:15 +08:00
Nick Hainke
e96002e392 mtools: update to 4.0.40
Changes:
- Remove libbsd dependency
- Better compatibility with legacy platforms such as AT&T UnixPC
- Upgraded to autoconf 2.71

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-08-04 10:15:23 +08:00
Mark Mentovai
985365da45 libmnl: fix build when bash is not located at /bin/bash
This fixes the libmnl build on macOS, which ships with an outdated bash
at /bin/bash. During the OpenWrt build, a modern host bash is built and
made available at staging_dir/host/bin/bash, which is present before
/bin/bash in the build's PATH.

This is similar to 8f7ce3aa6dda, presently appearing at
package/kernel/mac80211/patches/build/001-fix_build.patch.

Signed-off-by: Mark Mentovai <mark@mentovai.com>
2022-08-03 10:33:16 +08:00
Michael Pratt
d785fd9dfd tools/libressl: disable assembly code for all hosts
This SSL library is for hosts only
and not shipped as a build product,
therefore its performance quality (speed) is not critical.

Assembly code is broken in LibreSSL for some x86_64 hosts (part of git history)
and for some RISC host archs like armv7l, aarch64, powerpc, ppc64, etc...
so let's just disable it for all hosts.

For example, this fixes an instance on ARM hosts
where the host Python 3 builds broken modules which link to LibreSSL,
even with patches that enable LibreSSL support
with the import error "unexpected reloc type 3".

Ref: a395563f6 ("build: fix libressl build on x32 (amd64ilp32) host ")
Suggested-by: Andre Heider <a.heider@gmail.com>
Signed-off-by: Michael Pratt <mcpratt@pm.me>
2022-08-03 10:32:18 +08:00
Michael Pratt
7c5cabd24b tools/libressl: ensure PIC-only object compilation
Line up configure arguments for cleaner git diff and editing and grepping.

LibreSSL must be built with PIC, and has the flags for it already in CFLAGS.
Add the configure option native to LibreSSL to use only PIC in objects,
which further enforces that each object in the library has the PIC flag
to prevent a mixture of PIC / non-PIC objects within it.

Ref: 96a940308 ("tools: libressl: always build as PIC")
Signed-off-by: Michael Pratt <mcpratt@pm.me>
2022-08-03 10:31:38 +08:00
Stalker
975e0f70ca
Fix modules in kernel 5.19 (#9883)
Signed-off-by: xiangfeidexiaohuo <jsjson@163.com>
2022-08-02 13:38:52 +08:00
Sander Vanheule
b2b3669458 tools: bump 7z package to 22.01
Version 22.00 of 7z causes build failures on systems using GCC 12 with
the following error:

    ../../../../C/LzmaEnc.c: In function 'LzmaEnc_CodeOneMemBlock':
    ../../../../C/LzmaEnc.c:2996:19: error: storing the address of local
    variable 'outStream' in '*p.rc.outStream' [-Werror=dangling-pointer=]
     2996 |   p->rc.outStream = &outStream.vt;
          |   ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
    ../../../../C/LzmaEnc.c:2979:28: note: 'outStream' declared here
     2979 |   CLzmaEnc_SeqOutStreamBuf outStream;
          |                            ^~~~~~~~~
    ../../../../C/LzmaEnc.c:2979:28: note: 'pp' declared here

Upgrade to version 22.01 which contains the required fix.

Fixes: 5fcc6f0f1942 ("tools: add 7z host package")
Suggested-by: Tomasz Maciej Nowak <tmn505@gmail.com>
Signed-off-by: Sander Vanheule <sander@svanheule.net>
2022-08-02 10:03:45 +08:00
John Audia
bb2079b959 wolfssl: fix math library build
Apply upstream patch[1] to fix breakage around math libraries.
This can likely be removed when 5.5.0-stable is tagged and released.

Build system: x86_64
Build-tested: bcm2711/RPi4B
Run-tested: bcm2711/RPi4B

1. https://github.com/wolfSSL/wolfssl/pull/5390

Signed-off-by: John Audia <therealgraysky@proton.me>
2022-08-02 10:01:15 +08:00
Eneas U de Queiroz
90e8e6fac8 wolfssl: bump to 5.4.0
This version fixes two vulnerabilities:
-CVE-2022-34293[high]: Potential for DTLS DoS attack
-[medium]: Ciphertext side channel attack on ECC and DH operations.

The patch fixing x86 aesni build has been merged upstream.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2022-08-02 10:00:57 +08:00
lean
afd4fa3eb0 kernel: update 5.19 new hashsum dl 2022-08-01 19:04:47 +08:00
lean
b5da81b795 kernel: update 5.19 new hashsum dl 2022-08-01 19:02:08 +08:00
lean
de2e28cdc5 kernel: add linux 5.19 stable release support 2022-08-01 15:55:28 +08:00