ksmbd: Update to version 3.5.0
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 4 Jul 2024 20:59:49 +0000 (22:59 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 14 Jul 2024 23:24:06 +0000 (01:24 +0200)
Changelogs:
https://github.com/cifsd-team/ksmbd/releases/tag/3.4.9
https://github.com/cifsd-team/ksmbd/releases/tag/3.5.0

This fixes some security problems.

Link: https://github.com/openwrt/openwrt/pull/15871
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/kernel/ksmbd/Makefile
package/kernel/ksmbd/patches/02-kernel-5.10.220-build.patch

index 674e816186457d806046039b188ddeb682c43c9e..4ba33e9cf9fe4552cc455e65f5aa131d1eb6e925 100644 (file)
@@ -1,12 +1,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ksmbd
-PKG_VERSION:=3.4.8
+PKG_VERSION:=3.5.0
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://github.com/cifsd-team/ksmbd/releases/download/$(PKG_VERSION)
-PKG_HASH:=209bfba4dc5c50007942a3ec24f86a7f7c628618ac07f79c62e3404dc247d495
+PKG_HASH:=ceb11850bee8ff3575228e1b691d83d710cd9cb586bdaf8e5769d06b82eaaf05
 
 PKG_LICENSE:=GPL-2.0-or-later
 PKG_LICENSE_FILES:=COPYING
index 9f1ef43bba981d92d17e1e46be8a2c23a254d7a6..459e2c31555f7ca93c7e90f37b78916cec2aacd5 100644 (file)
@@ -3,7 +3,7 @@ https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux
 
 --- a/vfs.c
 +++ b/vfs.c
-@@ -1081,12 +1081,18 @@ static int __ksmbd_vfs_rename(struct ksm
+@@ -1582,7 +1582,9 @@ static int __ksmbd_vfs_rename(struct ksm
  
        err = -ENOTEMPTY;
        if (dst_dent != trap_dent && !d_really_is_positive(dst_dent)) {
@@ -11,6 +11,12 @@ https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux
 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 12, 0) || \
 +      (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 220) && \
 +       LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0))
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0)
+               struct renamedata rd = {
+                       .old_mnt_idmap  = src_idmap,
+@@ -1594,10 +1596,14 @@ static int __ksmbd_vfs_rename(struct ksm
+               };
+ #else
                struct renamedata rd = {
 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 12, 0)
                        .old_mnt_userns = src_user_ns,