Skip to content

Commit fdef057

Browse files
committed
src/nvidia: mark THREAD_STATE_NODE nolocal for grsecurity compatibility
grsecurity's private kernel stack feature demands 'struct THREAD_STATE_NODE' objects to be moved off the stack as different threads cannot access each other's kernel stacks. Signed-off-by: Mathias Krause <minipli@grsecurity.net>
1 parent 4fac189 commit fdef057

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/nvidia/inc/kernel/core/thread_state.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ typedef struct THREAD_STATE_FREE_CALLBACK
5858

5959
MAKE_LIST(THREAD_STATE_FREE_CB_LIST, THREAD_STATE_FREE_CALLBACK);
6060

61-
typedef struct THREAD_STATE_NODE THREAD_STATE_NODE;
62-
63-
struct THREAD_STATE_NODE
61+
typedef struct THREAD_STATE_NODE
6462
{
6563
OS_THREAD_HANDLE threadId;
6664
/*!
@@ -90,7 +88,7 @@ struct THREAD_STATE_NODE
9088
* Only supported on non-ISR CPU RM paths.
9189
*/
9290
THREAD_STATE_FREE_CB_LIST cbList;
93-
};
91+
} __nolocal THREAD_STATE_NODE;
9492

9593
MAKE_INTRUSIVE_MAP(ThreadStateNodeMap, THREAD_STATE_NODE, node);
9694

0 commit comments

Comments
 (0)