]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
uml: refresh patches for v6.18
authorChristian Lamparter <chunkeey@gmail.com>
Wed, 3 Jun 2026 19:19:56 +0000 (21:19 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 1 Aug 2026 15:27:20 +0000 (17:27 +0200)
 - 101-mconsole-exec.patch: fdtables now needs to be included separately.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
target/linux/uml/patches-6.18/101-mconsole-exec.patch

index 9ba4523a16a6b49cbbbff6e56e0753d17d9fd526..863af0260989a3d5775875d9a95aae27b89c3bb1 100644 (file)
  };
 --- a/arch/um/os-Linux/file.c
 +++ b/arch/um/os-Linux/file.c
-@@ -578,6 +578,8 @@ int os_create_unix_socket(const char *fi
+@@ -557,6 +557,8 @@ int os_create_unix_socket(const char *fi
  
        addr.sun_family = AF_UNIX;
  
        err = bind(sock, (struct sockaddr *) &addr, sizeof(addr));
 --- a/include/linux/kmod.h
 +++ b/include/linux/kmod.h
-@@ -32,4 +32,6 @@ static inline int request_module_nowait(
+@@ -29,4 +29,6 @@ static inline int request_module_nowait(
  #define try_then_request_module(x, mod...) (x)
  #endif
  
        int (*init)(struct subprocess_info *info, struct cred *new);
 --- a/kernel/umh.c
 +++ b/kernel/umh.c
-@@ -29,6 +29,7 @@
+@@ -28,6 +28,8 @@
  #include <linux/uaccess.h>
  #include <linux/initrd.h>
  #include <linux/freezer.h>
 +#include <linux/pipe_fs_i.h>
++#include <linux/fdtable.h>
  
  #include <trace/events/module.h>
  
-@@ -71,6 +72,28 @@ static int call_usermodehelper_exec_asyn
+@@ -70,6 +72,28 @@ static int call_usermodehelper_exec_asyn
        flush_signal_handlers(current, 1);
        spin_unlock_irq(&current->sighand->siglock);
  
        /*
         * Initial kernel threads share ther FS with init, in order to
         * get the init root directory. But we've now created a new
-@@ -330,6 +353,20 @@ static void helper_unlock(void)
+@@ -329,6 +353,20 @@ static void helper_unlock(void)
                wake_up(&running_helpers_waitq);
  }