|
1 | | -0001-fix.patch |
| 1 | +From 9f28723cca2a7015bdc923b4a0d47f1bef6f6790 Mon Sep 17 00:00:00 2001 |
| 2 | +From: GitHub Actions <actions@github.com> |
| 3 | +Date: Thu, 27 Feb 2025 13:18:52 +0800 |
| 4 | +Subject: [PATCH] fix |
| 5 | + |
| 6 | +--- |
| 7 | + drivers/hv/dxgkrnl/dxgkrnl.h | 1 + |
| 8 | + drivers/hv/dxgkrnl/dxgmodule.c | 2 +- |
| 9 | + fs/exec.c | 10 ++++++++++ |
| 10 | + 3 files changed, 12 insertions(+), 1 deletion(-) |
| 11 | + |
| 12 | +diff --git a/drivers/hv/dxgkrnl/dxgkrnl.h b/drivers/hv/dxgkrnl/dxgkrnl.h |
| 13 | +index d816a875d..fd8c89b5b 100644 |
| 14 | +--- a/drivers/hv/dxgkrnl/dxgkrnl.h |
| 15 | ++++ b/drivers/hv/dxgkrnl/dxgkrnl.h |
| 16 | +@@ -31,6 +31,7 @@ |
| 17 | + #include "misc.h" |
| 18 | + #include "hmgr.h" |
| 19 | + #include <uapi/misc/d3dkmthk.h> |
| 20 | ++#include <linux/vmalloc.h> |
| 21 | + |
| 22 | + struct dxgprocess; |
| 23 | + struct dxgadapter; |
| 24 | +diff --git a/drivers/hv/dxgkrnl/dxgmodule.c b/drivers/hv/dxgkrnl/dxgmodule.c |
| 25 | +index c2a4a2a21..cac619897 100644 |
| 26 | +--- a/drivers/hv/dxgkrnl/dxgmodule.c |
| 27 | ++++ b/drivers/hv/dxgkrnl/dxgmodule.c |
| 28 | +@@ -175,7 +175,7 @@ void signal_host_cpu_event(struct dxghostevent *eventhdr) |
| 29 | + } |
| 30 | + if (event->cpu_event) { |
| 31 | + DXG_TRACE("signal cpu event"); |
| 32 | +- eventfd_signal(event->cpu_event, 1); |
| 33 | ++ eventfd_signal(event->cpu_event); |
| 34 | + if (event->destroy_after_signal) |
| 35 | + eventfd_ctx_put(event->cpu_event); |
| 36 | + } else { |
| 37 | +diff --git a/fs/exec.c b/fs/exec.c |
| 38 | +index 506cd411f..535daa664 100644 |
| 39 | +--- a/fs/exec.c |
| 40 | ++++ b/fs/exec.c |
| 41 | +@@ -1186,6 +1186,16 @@ static int unshare_sighand(struct task_struct *me) |
| 42 | + return 0; |
| 43 | + } |
| 44 | + |
| 45 | ++char *__get_task_comm(char *buf, size_t buf_size, struct task_struct *tsk) |
| 46 | ++{ |
| 47 | ++ task_lock(tsk); |
| 48 | ++ /* Always NUL terminated and zero-padded */ |
| 49 | ++ strscpy_pad(buf, tsk->comm, buf_size); |
| 50 | ++ task_unlock(tsk); |
| 51 | ++ return buf; |
| 52 | ++} |
| 53 | ++EXPORT_SYMBOL_GPL(__get_task_comm); |
| 54 | ++ |
| 55 | + /* |
| 56 | + * This is unlocked -- the string will always be NUL-terminated, but |
| 57 | + * may show overlapping contents if racing concurrent reads. |
| 58 | +-- |
| 59 | +2.43.0 |
| 60 | + |
0 commit comments