forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bot] AutoMerging: merge all upstream's changes:
* https://github.com/coolsnowwolf/lede: kernel: mdio-devres: fix of-mdio dependency (coolsnowwolf#9912) kernel: modules: fix kmod-mdio-devres dependency for 5.15 (coolsnowwolf#9911) armvirt: copy config files from 5.10 (coolsnowwolf#9910) armvirt: refresh 5.10 config (coolsnowwolf#9908) armvirt: enable MMIO_CMDLINE_DEVICES for firecracker support (coolsnowwolf#9907) armvirt: switch to Kernel 5.10 (coolsnowwolf#9906) rockchip: switch kernel version to 5.19 rockchip: add FastRhino R66S support in kernel 5.19 zlib: backport null dereference fix ramips: mt7628: fix memory controller reset bit
- Loading branch information
Showing
17 changed files
with
1,258 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
package/libs/zlib/patches/007-fix-null-dereference-in-fix-CVE-2022-37434.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From 1eb7682f845ac9e9bf9ae35bbfb3bad5dacbd91d Mon Sep 17 00:00:00 2001 | ||
From: Mark Adler <fork@madler.net> | ||
Date: Mon, 8 Aug 2022 10:50:09 -0700 | ||
Subject: [PATCH] Fix extra field processing bug that dereferences NULL | ||
state->head. | ||
|
||
The recent commit to fix a gzip header extra field processing bug | ||
introduced the new bug fixed here. | ||
--- | ||
inflate.c | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/inflate.c b/inflate.c | ||
index 7a7289749..2a3c4fe98 100644 | ||
--- a/inflate.c | ||
+++ b/inflate.c | ||
@@ -763,10 +763,10 @@ int flush; | ||
copy = state->length; | ||
if (copy > have) copy = have; | ||
if (copy) { | ||
- len = state->head->extra_len - state->length; | ||
if (state->head != Z_NULL && | ||
state->head->extra != Z_NULL && | ||
- len < state->head->extra_max) { | ||
+ (len = state->head->extra_len - state->length) < | ||
+ state->head->extra_max) { | ||
zmemcpy(state->head->extra + len, next, | ||
len + copy > state->head->extra_max ? | ||
state->head->extra_max - len : copy); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
CONFIG_ALIGNMENT_TRAP=y | ||
CONFIG_ARCH_32BIT_OFF_T=y | ||
CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y | ||
CONFIG_ARCH_MULTIPLATFORM=y | ||
CONFIG_ARCH_MULTI_V6_V7=y | ||
CONFIG_ARCH_MULTI_V7=y | ||
CONFIG_ARCH_NR_GPIO=0 | ||
CONFIG_ARCH_OPTIONAL_KERNEL_RWX=y | ||
CONFIG_ARCH_OPTIONAL_KERNEL_RWX_DEFAULT=y | ||
CONFIG_ARCH_SELECT_MEMORY_MODEL=y | ||
CONFIG_ARCH_VIRT=y | ||
CONFIG_ARM=y | ||
CONFIG_ARM_CPU_SUSPEND=y | ||
CONFIG_ARM_HAS_SG_CHAIN=y | ||
CONFIG_ARM_HEAVY_MB=y | ||
CONFIG_ARM_L1_CACHE_SHIFT=6 | ||
CONFIG_ARM_L1_CACHE_SHIFT_6=y | ||
CONFIG_ARM_LPAE=y | ||
CONFIG_ARM_PATCH_IDIV=y | ||
CONFIG_ARM_PATCH_PHYS_VIRT=y | ||
CONFIG_ARM_PSCI=y | ||
CONFIG_ARM_THUMB=y | ||
CONFIG_ARM_UNWIND=y | ||
CONFIG_ARM_VIRT_EXT=y | ||
CONFIG_AUTO_ZRELADDR=y | ||
CONFIG_BINFMT_FLAT_ARGVP_ENVP_ON_STACK=y | ||
CONFIG_CACHE_L2X0=y | ||
CONFIG_COMPAT_32BIT_TIME=y | ||
CONFIG_CPU_32v6K=y | ||
CONFIG_CPU_32v7=y | ||
CONFIG_CPU_ABRT_EV7=y | ||
CONFIG_CPU_CACHE_V7=y | ||
CONFIG_CPU_CACHE_VIPT=y | ||
CONFIG_CPU_COPY_V6=y | ||
CONFIG_CPU_CP15=y | ||
CONFIG_CPU_CP15_MMU=y | ||
CONFIG_CPU_HAS_ASID=y | ||
CONFIG_CPU_PABRT_V7=y | ||
CONFIG_CPU_SPECTRE=y | ||
CONFIG_CPU_THUMB_CAPABLE=y | ||
CONFIG_CPU_TLB_V7=y | ||
CONFIG_CPU_V7=y | ||
CONFIG_DEBUG_LL_INCLUDE="mach/debug-macro.S" | ||
CONFIG_DMA_OPS=y | ||
CONFIG_EDAC_ATOMIC_SCRUB=y | ||
CONFIG_GENERIC_IRQ_MULTI_HANDLER=y | ||
CONFIG_GENERIC_VDSO_32=y | ||
CONFIG_HARDEN_BRANCH_PREDICTOR=y | ||
CONFIG_HAVE_SMP=y | ||
CONFIG_HZ_FIXED=0 | ||
CONFIG_HZ_PERIODIC=y | ||
CONFIG_MIGHT_HAVE_CACHE_L2X0=y | ||
CONFIG_MODULES_USE_ELF_REL=y | ||
CONFIG_NEON=y | ||
CONFIG_NR_CPUS=4 | ||
CONFIG_OLD_SIGACTION=y | ||
CONFIG_OLD_SIGSUSPEND3=y | ||
CONFIG_OUTER_CACHE=y | ||
CONFIG_OUTER_CACHE_SYNC=y | ||
CONFIG_PAGE_OFFSET=0xC0000000 | ||
CONFIG_PERF_USE_VMALLOC=y | ||
CONFIG_RTC_MC146818_LIB=y | ||
CONFIG_SERIAL_OF_PLATFORM=y | ||
CONFIG_SMP_ON_UP=y | ||
CONFIG_SWP_EMULATE=y | ||
CONFIG_SYS_SUPPORTS_APM_EMULATION=y | ||
CONFIG_UNCOMPRESS_INCLUDE="debug/uncompress.h" | ||
CONFIG_UNWINDER_ARM=y | ||
CONFIG_USE_OF=y | ||
CONFIG_VFP=y | ||
CONFIG_VFPv3=y | ||
CONFIG_XZ_DEC_ARM=y | ||
CONFIG_XZ_DEC_BCJ=y | ||
CONFIG_ZBOOT_ROM_BSS=0 | ||
CONFIG_ZBOOT_ROM_TEXT=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
CONFIG_64BIT=y | ||
CONFIG_ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE=y | ||
CONFIG_ARCH_MMAP_RND_BITS=18 | ||
CONFIG_ARCH_MMAP_RND_BITS_MAX=24 | ||
CONFIG_ARCH_MMAP_RND_BITS_MIN=18 | ||
CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=11 | ||
CONFIG_ARCH_PROC_KCORE_TEXT=y | ||
CONFIG_ARCH_STACKWALK=y | ||
CONFIG_ARCH_VEXPRESS=y | ||
CONFIG_ARCH_WANTS_NO_INSTR=y | ||
CONFIG_ARM64=y | ||
CONFIG_ARM64_4K_PAGES=y | ||
CONFIG_ARM64_CNP=y | ||
CONFIG_ARM64_CRYPTO=y | ||
CONFIG_ARM64_EPAN=y | ||
CONFIG_ARM64_ERRATUM_1165522=y | ||
CONFIG_ARM64_ERRATUM_1286807=y | ||
CONFIG_ARM64_ERRATUM_819472=y | ||
CONFIG_ARM64_ERRATUM_824069=y | ||
CONFIG_ARM64_ERRATUM_826319=y | ||
CONFIG_ARM64_ERRATUM_827319=y | ||
CONFIG_ARM64_ERRATUM_832075=y | ||
CONFIG_ARM64_ERRATUM_843419=y | ||
CONFIG_ARM64_HW_AFDBM=y | ||
CONFIG_ARM64_LD_HAS_FIX_ERRATUM_843419=y | ||
CONFIG_ARM64_MODULE_PLTS=y | ||
CONFIG_ARM64_PAGE_SHIFT=12 | ||
CONFIG_ARM64_PAN=y | ||
CONFIG_ARM64_PA_BITS=48 | ||
CONFIG_ARM64_PA_BITS_48=y | ||
CONFIG_ARM64_PTR_AUTH=y | ||
CONFIG_ARM64_PTR_AUTH_KERNEL=y | ||
CONFIG_ARM64_SVE=y | ||
CONFIG_ARM64_TAGGED_ADDR_ABI=y | ||
CONFIG_ARM64_VA_BITS=39 | ||
CONFIG_ARM64_VA_BITS_39=y | ||
CONFIG_ARM64_WORKAROUND_CLEAN_CACHE=y | ||
CONFIG_ARM64_WORKAROUND_REPEAT_TLBI=y | ||
CONFIG_ARM64_WORKAROUND_SPECULATIVE_AT=y | ||
CONFIG_ARM_ARCH_TIMER_OOL_WORKAROUND=y | ||
CONFIG_ATOMIC64_SELFTEST=y | ||
CONFIG_AUDIT_ARCH_COMPAT_GENERIC=y | ||
CONFIG_BACKLIGHT_CLASS_DEVICE=y | ||
CONFIG_BLK_PM=y | ||
CONFIG_CAVIUM_TX2_ERRATUM_219=y | ||
CONFIG_CC_HAVE_STACKPROTECTOR_SYSREG=y | ||
CONFIG_CLK_SP810=y | ||
CONFIG_CLK_VEXPRESS_OSC=y | ||
# CONFIG_COMPAT_32BIT_TIME is not set | ||
CONFIG_CPU_IDLE=y | ||
CONFIG_CPU_IDLE_GOV_MENU=y | ||
CONFIG_CPU_PM=y | ||
CONFIG_CRYPTO_AES_ARM64=y | ||
CONFIG_CRYPTO_AES_ARM64_BS=y | ||
CONFIG_CRYPTO_AES_ARM64_CE=y | ||
CONFIG_CRYPTO_AES_ARM64_CE_BLK=y | ||
CONFIG_CRYPTO_AES_ARM64_CE_CCM=y | ||
CONFIG_CRYPTO_AES_ARM64_NEON_BLK=y | ||
CONFIG_CRYPTO_ARCH_HAVE_LIB_CHACHA=y | ||
CONFIG_CRYPTO_CHACHA20=y | ||
CONFIG_CRYPTO_CHACHA20_NEON=y | ||
CONFIG_CRYPTO_CRYPTD=y | ||
CONFIG_CRYPTO_GHASH_ARM64_CE=y | ||
CONFIG_CRYPTO_LIB_CHACHA_GENERIC=y | ||
CONFIG_CRYPTO_SHA1=y | ||
CONFIG_CRYPTO_SHA1_ARM64_CE=y | ||
CONFIG_CRYPTO_SHA256_ARM64=y | ||
CONFIG_CRYPTO_SHA2_ARM64_CE=y | ||
CONFIG_CRYPTO_SHA512_ARM64=y | ||
CONFIG_CRYPTO_SIMD=y | ||
CONFIG_DMA_DIRECT_REMAP=y | ||
CONFIG_DMA_SHARED_BUFFER=y | ||
CONFIG_DRM=y | ||
CONFIG_DRM_BOCHS=y | ||
CONFIG_DRM_BRIDGE=y | ||
CONFIG_DRM_GEM_SHMEM_HELPER=y | ||
CONFIG_DRM_KMS_HELPER=y | ||
CONFIG_DRM_PANEL=y | ||
CONFIG_DRM_PANEL_BRIDGE=y | ||
CONFIG_DRM_PANEL_ORIENTATION_QUIRKS=y | ||
CONFIG_DRM_QXL=y | ||
CONFIG_DRM_TTM=y | ||
CONFIG_DRM_TTM_HELPER=y | ||
CONFIG_DRM_VIRTIO_GPU=y | ||
CONFIG_DRM_VRAM_HELPER=y | ||
CONFIG_FB=y | ||
CONFIG_FB_ARMCLCD=y | ||
CONFIG_FB_CFB_COPYAREA=y | ||
CONFIG_FB_CFB_FILLRECT=y | ||
CONFIG_FB_CFB_IMAGEBLIT=y | ||
CONFIG_FB_CMDLINE=y | ||
CONFIG_FB_MODE_HELPERS=y | ||
CONFIG_FRAME_POINTER=y | ||
CONFIG_FSL_ERRATUM_A008585=y | ||
CONFIG_FUJITSU_ERRATUM_010001=y | ||
CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y | ||
CONFIG_GENERIC_CSUM=y | ||
CONFIG_GENERIC_FIND_FIRST_BIT=y | ||
CONFIG_GPIO_GENERIC=y | ||
CONFIG_GPIO_GENERIC_PLATFORM=y | ||
CONFIG_HDMI=y | ||
CONFIG_HW_RANDOM=y | ||
CONFIG_HW_RANDOM_ARM_SMCCC_TRNG=y | ||
CONFIG_HW_RANDOM_VIRTIO=y | ||
CONFIG_I2C=y | ||
CONFIG_I2C_ALGOBIT=y | ||
CONFIG_I2C_BOARDINFO=y | ||
CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000 | ||
CONFIG_KCMP=y | ||
CONFIG_LCD_CLASS_DEVICE=m | ||
# CONFIG_LCD_PLATFORM is not set | ||
CONFIG_MFD_CORE=y | ||
CONFIG_MFD_SYSCON=y | ||
CONFIG_MFD_VEXPRESS_SYSREG=y | ||
CONFIG_MMC=y | ||
CONFIG_MMC_ARMMMCI=y | ||
CONFIG_MODULES_USE_ELF_RELA=y | ||
CONFIG_NEED_SG_DMA_LENGTH=y | ||
CONFIG_NO_HZ=y | ||
CONFIG_NO_HZ_COMMON=y | ||
CONFIG_NO_HZ_IDLE=y | ||
CONFIG_NR_CPUS=64 | ||
CONFIG_NVIDIA_CARMEL_CNP_ERRATUM=y | ||
CONFIG_PM=y | ||
CONFIG_PM_CLK=y | ||
CONFIG_PM_GENERIC_DOMAINS=y | ||
CONFIG_PM_GENERIC_DOMAINS_OF=y | ||
CONFIG_POWER_RESET=y | ||
CONFIG_POWER_RESET_VEXPRESS=y | ||
CONFIG_POWER_SUPPLY=y | ||
CONFIG_QUEUED_RWLOCKS=y | ||
CONFIG_QUEUED_SPINLOCKS=y | ||
CONFIG_REGMAP=y | ||
CONFIG_REGMAP_MMIO=y | ||
CONFIG_RODATA_FULL_DEFAULT_ENABLED=y | ||
CONFIG_RTC_I2C_AND_SPI=y | ||
CONFIG_SMC91X=y | ||
CONFIG_SPARSEMEM=y | ||
CONFIG_SPARSEMEM_EXTREME=y | ||
CONFIG_SPARSEMEM_VMEMMAP=y | ||
CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y | ||
CONFIG_SYNC_FILE=y | ||
CONFIG_SYSCTL_EXCEPTION_TRACE=y | ||
CONFIG_THREAD_INFO_IN_TASK=y | ||
CONFIG_UNMAP_KERNEL_AT_EL0=y | ||
CONFIG_VEXPRESS_CONFIG=y | ||
CONFIG_VIDEOMODE_HELPERS=y | ||
CONFIG_VIRTIO_DMA_SHARED_BUFFER=y | ||
CONFIG_VMAP_STACK=y | ||
CONFIG_ZONE_DMA32=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.