The following commit has been merged into the sched/urgent branch of tip:

Commit-ID:     bfb9fbe0f7e70ec5c8e51ee55b6968d4dff14456
Gitweb:        
https://git.kernel.org/tip/bfb9fbe0f7e70ec5c8e51ee55b6968d4dff14456
Author:        Peter Zijlstra <pet...@infradead.org>
AuthorDate:    Wed, 10 Jun 2020 12:14:09 +02:00
Committer:     Peter Zijlstra <pet...@infradead.org>
CommitterDate: Wed, 10 Jun 2020 12:30:19 +02:00

sched: Fix RANDSTRUCT build fail

As a temporary build fix, the proper cleanup needs more work.

Reported-by: Guenter Roeck <li...@roeck-us.net>
Reported-by: Eric Biggers <ebigg...@kernel.org>
Suggested-by: Eric Biggers <ebigg...@kernel.org>
Suggested-by: Kees Cook <keesc...@chromium.org>
Fixes: a148866489fb ("sched: Replace rq::wake_list")
Signed-off-by: Peter Zijlstra (Intel) <pet...@infradead.org>
---
 include/linux/sched.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/linux/sched.h b/include/linux/sched.h
index 57a5ce9..59caeb9 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -653,8 +653,10 @@ struct task_struct {
        unsigned int                    ptrace;
 
 #ifdef CONFIG_SMP
-       struct llist_node               wake_entry;
-       unsigned int                    wake_entry_type;
+       struct {
+               struct llist_node               wake_entry;
+               unsigned int                    wake_entry_type;
+       };
        int                             on_cpu;
 #ifdef CONFIG_THREAD_INFO_IN_TASK
        /* Current CPU: */

Reply via email to