From a1398322c92b1dcd2dffa966a944ffc0695a6a2f Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Mon, 17 Jun 2024 13:11:26 +0200 Subject: [PATCH 1/5] linux (RPi): update to 6.6.34-f54dbdd Signed-off-by: Matthias Reichl --- packages/linux/package.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/linux/package.mk b/packages/linux/package.mk index 1b92fbc0e1..4605bd453c 100644 --- a/packages/linux/package.mk +++ b/packages/linux/package.mk @@ -23,8 +23,8 @@ case "${LINUX}" in PKG_PATCH_DIRS="default" ;; raspberrypi) - PKG_VERSION="51c5d2bb01d3a0cff31d00686f35ed8f33039f78" # 6.6.33 - PKG_SHA256="0e2ca3b34312b1527aa9d380761af2ab1ec7754ae4481b0317fa144d4b060501" + PKG_VERSION="f54dbddefe179433c73ad6611ada5b25d452ce05" # 6.6.34 + PKG_SHA256="229cae163c76c11f85d6d952e9ac750dbf3efd312f7986d3f3f241a1f4222309" PKG_URL="https://github.com/raspberrypi/linux/archive/${PKG_VERSION}.tar.gz" PKG_SOURCE_NAME="linux-${LINUX}-${PKG_VERSION}.tar.gz" ;; From ca84753be4c4e8ba54d89bd36854f97546bd4ad4 Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Mon, 24 Jun 2024 18:41:11 +0200 Subject: [PATCH 2/5] linux (RPi): update to 6.6.35-5263478 Signed-off-by: Matthias Reichl --- packages/linux/package.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/linux/package.mk b/packages/linux/package.mk index 4605bd453c..06b2ff0e09 100644 --- a/packages/linux/package.mk +++ b/packages/linux/package.mk @@ -23,8 +23,8 @@ case "${LINUX}" in PKG_PATCH_DIRS="default" ;; raspberrypi) - PKG_VERSION="f54dbddefe179433c73ad6611ada5b25d452ce05" # 6.6.34 - PKG_SHA256="229cae163c76c11f85d6d952e9ac750dbf3efd312f7986d3f3f241a1f4222309" + PKG_VERSION="5263478665260ec207b8ee4751401c1d4a6a514a" # 6.6.35 + PKG_SHA256="67b87a09383475f6796b0031b78a01fca131618d069db64fdf93ee89d34f494c" PKG_URL="https://github.com/raspberrypi/linux/archive/${PKG_VERSION}.tar.gz" PKG_SOURCE_NAME="linux-${LINUX}-${PKG_VERSION}.tar.gz" ;; From e19f16db7da7245dc801270510dbec94ecdd1635 Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Mon, 24 Jun 2024 18:41:45 +0200 Subject: [PATCH 3/5] linux (RPi): drop ntfs3 corruption patch This commit is included in the current kernel Signed-off-by: Matthias Reichl --- .../linux-999.99-fix-ntfs3-corruption.patch | 37 ------------------- 1 file changed, 37 deletions(-) delete mode 100644 packages/linux/patches/raspberrypi/linux-999.99-fix-ntfs3-corruption.patch diff --git a/packages/linux/patches/raspberrypi/linux-999.99-fix-ntfs3-corruption.patch b/packages/linux/patches/raspberrypi/linux-999.99-fix-ntfs3-corruption.patch deleted file mode 100644 index 624c30f12d..0000000000 --- a/packages/linux/patches/raspberrypi/linux-999.99-fix-ntfs3-corruption.patch +++ /dev/null @@ -1,37 +0,0 @@ -From bc49e7136a4bb926bb8743531ae54cc0c721e402 Mon Sep 17 00:00:00 2001 -From: Dom Cobley -Date: Tue, 11 Jun 2024 16:12:47 +0100 -Subject: [PATCH] fs/ntfs3: Fix memory corruption when page_size changes - -The rework in fs/ntfs3: Reduce stack usage -changes log->page_size but doesn't change the associated -log->page_mask and log->page_bits. - -That results in the bytes value in read_log_page -getting a negative value, which is bad when it is -passed to memcpy. - -The kernel panic can be observed when connecting an -ntfs formatted drive that has previously been connected -to a Windows machine to a Raspberry Pi 5, which by defauilt -uses a 16K kernel pagesize. - -Fixes: 865e7a7700d9 ("fs/ntfs3: Reduce stack usage") -Signed-off-by: Dom Cobley ---- - fs/ntfs3/fslog.c | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/fs/ntfs3/fslog.c b/fs/ntfs3/fslog.c -index 855519713bf79..b3b83565365e3 100644 ---- a/fs/ntfs3/fslog.c -+++ b/fs/ntfs3/fslog.c -@@ -3906,6 +3906,8 @@ int log_replay(struct ntfs_inode *ni, bool *initialized) - log->l_size = log->orig_file_size; - log->page_size = norm_file_page(t32, &log->l_size, - t32 == DefaultLogPageSize); -+ log->page_mask = log->page_size - 1; -+ log->page_bits = blksize_bits(log->page_size); - } - - if (log->page_size != t32 || From 8ca0737252a25ce870c8e9d467cb9eaf553376fc Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Mon, 24 Jun 2024 18:41:11 +0200 Subject: [PATCH 4/5] linux (RPi): config options for 6.6.35-5263478 Signed-off-by: Matthias Reichl --- projects/RPi/devices/RPi/linux/linux.arm.conf | 2 +- projects/RPi/devices/RPi2/linux/linux.arm.conf | 3 +-- projects/RPi/devices/RPi4/linux/linux.aarch64.conf | 2 +- projects/RPi/devices/RPi5/linux/linux.aarch64.conf | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/projects/RPi/devices/RPi/linux/linux.arm.conf b/projects/RPi/devices/RPi/linux/linux.arm.conf index 1201d99474..eb9ecde69a 100644 --- a/projects/RPi/devices/RPi/linux/linux.arm.conf +++ b/projects/RPi/devices/RPi/linux/linux.arm.conf @@ -1,6 +1,6 @@ # # Automatically generated file; DO NOT EDIT. -# Linux/arm 6.6.33 Kernel Configuration +# Linux/arm 6.6.35 Kernel Configuration # CONFIG_CC_VERSION_TEXT="arm-linux-gnueabihf-gcc (GCC) 13.0.0 20220604 (experimental) [master revision aec868578d8515763d75693c1fdfbc30ff0a1e68]" CONFIG_CC_IS_GCC=y diff --git a/projects/RPi/devices/RPi2/linux/linux.arm.conf b/projects/RPi/devices/RPi2/linux/linux.arm.conf index 97ce04d5c6..da5732e8e7 100644 --- a/projects/RPi/devices/RPi2/linux/linux.arm.conf +++ b/projects/RPi/devices/RPi2/linux/linux.arm.conf @@ -1,6 +1,6 @@ # # Automatically generated file; DO NOT EDIT. -# Linux/arm 6.6.33 Kernel Configuration +# Linux/arm 6.6.35 Kernel Configuration # CONFIG_CC_VERSION_TEXT="arm-linux-gnueabihf-gcc (GCC) 13.0.0 20220604 (experimental) [master revision aec868578d8515763d75693c1fdfbc30ff0a1e68]" CONFIG_CC_IS_GCC=y @@ -323,7 +323,6 @@ CONFIG_ARCH_BCM=y # CONFIG_ARCH_BCM2835=y # CONFIG_ARCH_BCM_53573 is not set -# CONFIG_ARCH_BCM_63XX is not set # CONFIG_ARCH_BRCMSTB is not set # CONFIG_ARCH_BCMBCA is not set diff --git a/projects/RPi/devices/RPi4/linux/linux.aarch64.conf b/projects/RPi/devices/RPi4/linux/linux.aarch64.conf index d3b896ecd9..6a55ff717b 100644 --- a/projects/RPi/devices/RPi4/linux/linux.aarch64.conf +++ b/projects/RPi/devices/RPi4/linux/linux.aarch64.conf @@ -1,6 +1,6 @@ # # Automatically generated file; DO NOT EDIT. -# Linux/arm64 6.6.33 Kernel Configuration +# Linux/arm64 6.6.35 Kernel Configuration # CONFIG_CC_VERSION_TEXT="aarch64-linux-gnu-gcc (GCC) 13.0.0 20220604 (experimental) [master revision aec868578d8515763d75693c1fdfbc30ff0a1e68]" CONFIG_CC_IS_GCC=y diff --git a/projects/RPi/devices/RPi5/linux/linux.aarch64.conf b/projects/RPi/devices/RPi5/linux/linux.aarch64.conf index 035d6fc71b..c0b03e0db4 100644 --- a/projects/RPi/devices/RPi5/linux/linux.aarch64.conf +++ b/projects/RPi/devices/RPi5/linux/linux.aarch64.conf @@ -1,6 +1,6 @@ # # Automatically generated file; DO NOT EDIT. -# Linux/arm64 6.6.33 Kernel Configuration +# Linux/arm64 6.6.35 Kernel Configuration # CONFIG_CC_VERSION_TEXT="aarch64-linux-gnu-gcc (GCC) 13.0.0 20220604 (experimental) [master revision aec868578d8515763d75693c1fdfbc30ff0a1e68]" CONFIG_CC_IS_GCC=y From 11b508281e26c5d968f0d125e71d860939d58209 Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Tue, 25 Jun 2024 11:35:49 +0200 Subject: [PATCH 5/5] linux (RPi): update to 6.6.35-d2813c0 Signed-off-by: Matthias Reichl --- packages/linux/package.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/linux/package.mk b/packages/linux/package.mk index 06b2ff0e09..dcf0c023b9 100644 --- a/packages/linux/package.mk +++ b/packages/linux/package.mk @@ -23,8 +23,8 @@ case "${LINUX}" in PKG_PATCH_DIRS="default" ;; raspberrypi) - PKG_VERSION="5263478665260ec207b8ee4751401c1d4a6a514a" # 6.6.35 - PKG_SHA256="67b87a09383475f6796b0031b78a01fca131618d069db64fdf93ee89d34f494c" + PKG_VERSION="d2813c02131b9ddf938277f4123da7ccbd113ea7" # 6.6.35 + PKG_SHA256="a443bcb9f4548db18b8774e448ed4ed811abc26b32cf017e0ae691abc2789db9" PKG_URL="https://github.com/raspberrypi/linux/archive/${PKG_VERSION}.tar.gz" PKG_SOURCE_NAME="linux-${LINUX}-${PKG_VERSION}.tar.gz" ;;