[PATCH RT 4/5] hotplug: Use set_cpus_allowed_ptr() in sync_unplug_thread()
3.10.75-rt81-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Mike Galbraith do_set_cpus_allowed() is not safe vs ->sched_class change. crash> bt PID: 11676 TASK: 88026f979da0 CPU: 22 COMMAND: "sync_unplug/22" #0 [880274d25bc8] machine_kexec at 8103b41c #1 [880274d25c18] crash_kexec at 810d881a #2 [880274d25cd8] oops_end at 81525818 #3 [880274d25cf8] do_invalid_op at 81003096 #4 [880274d25d90] invalid_op at 8152d3de [exception RIP: set_cpus_allowed_rt+18] RIP: 8109e012 RSP: 880274d25e48 RFLAGS: 00010202 RAX: 8109e000 RBX: 88026f979da0 RCX: 8802770cb6e8 RDX: RSI: 81add700 RDI: 88026f979da0 RBP: 880274d25e78 R8: 816112e0 R9: 0001 R10: 0001 R11: 00011940 R12: 88026f979da0 R13: 8802770cb6d0 R14: 880274d25fd8 R15: ORIG_RAX: CS: 0010 SS: 0018 #5 [880274d25e60] do_set_cpus_allowed at 8108e65f #6 [880274d25e80] sync_unplug_thread at 81058c08 #7 [880274d25ed8] kthread at 8107cad6 #8 [880274d25f50] ret_from_fork at 8152bbbc crash> task_struct 88026f979da0 | grep class sched_class = 0x816111e0 , Signed-off-by: Mike Galbraith Cc: stable...@vger.kernel.org Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Steven Rostedt --- kernel/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/cpu.c b/kernel/cpu.c index b460d99bc761..50ae129671f0 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -234,7 +234,7 @@ static int sync_unplug_thread(void *data) * we don't want any more work on this CPU. */ current->flags &= ~PF_NO_SETAFFINITY; - do_set_cpus_allowed(current, cpu_present_mask); + set_cpus_allowed_ptr(current, cpu_present_mask); migrate_me(); return 0; } -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH RT 4/5] hotplug: Use set_cpus_allowed_ptr() in sync_unplug_thread()
3.12.40-rt56-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Mike Galbraith do_set_cpus_allowed() is not safe vs ->sched_class change. crash> bt PID: 11676 TASK: 88026f979da0 CPU: 22 COMMAND: "sync_unplug/22" #0 [880274d25bc8] machine_kexec at 8103b41c #1 [880274d25c18] crash_kexec at 810d881a #2 [880274d25cd8] oops_end at 81525818 #3 [880274d25cf8] do_invalid_op at 81003096 #4 [880274d25d90] invalid_op at 8152d3de [exception RIP: set_cpus_allowed_rt+18] RIP: 8109e012 RSP: 880274d25e48 RFLAGS: 00010202 RAX: 8109e000 RBX: 88026f979da0 RCX: 8802770cb6e8 RDX: RSI: 81add700 RDI: 88026f979da0 RBP: 880274d25e78 R8: 816112e0 R9: 0001 R10: 0001 R11: 00011940 R12: 88026f979da0 R13: 8802770cb6d0 R14: 880274d25fd8 R15: ORIG_RAX: CS: 0010 SS: 0018 #5 [880274d25e60] do_set_cpus_allowed at 8108e65f #6 [880274d25e80] sync_unplug_thread at 81058c08 #7 [880274d25ed8] kthread at 8107cad6 #8 [880274d25f50] ret_from_fork at 8152bbbc crash> task_struct 88026f979da0 | grep class sched_class = 0x816111e0 , Signed-off-by: Mike Galbraith Cc: stable...@vger.kernel.org Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Steven Rostedt --- kernel/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/cpu.c b/kernel/cpu.c index 6d2cab15a585..3566e74fae83 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -242,7 +242,7 @@ static int sync_unplug_thread(void *data) * we don't want any more work on this CPU. */ current->flags &= ~PF_NO_SETAFFINITY; - do_set_cpus_allowed(current, cpu_present_mask); + set_cpus_allowed_ptr(current, cpu_present_mask); migrate_me(); return 0; } -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH RT 4/5] hotplug: Use set_cpus_allowed_ptr() in sync_unplug_thread()
3.14.39-rt38-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Mike Galbraith do_set_cpus_allowed() is not safe vs ->sched_class change. crash> bt PID: 11676 TASK: 88026f979da0 CPU: 22 COMMAND: "sync_unplug/22" #0 [880274d25bc8] machine_kexec at 8103b41c #1 [880274d25c18] crash_kexec at 810d881a #2 [880274d25cd8] oops_end at 81525818 #3 [880274d25cf8] do_invalid_op at 81003096 #4 [880274d25d90] invalid_op at 8152d3de [exception RIP: set_cpus_allowed_rt+18] RIP: 8109e012 RSP: 880274d25e48 RFLAGS: 00010202 RAX: 8109e000 RBX: 88026f979da0 RCX: 8802770cb6e8 RDX: RSI: 81add700 RDI: 88026f979da0 RBP: 880274d25e78 R8: 816112e0 R9: 0001 R10: 0001 R11: 00011940 R12: 88026f979da0 R13: 8802770cb6d0 R14: 880274d25fd8 R15: ORIG_RAX: CS: 0010 SS: 0018 #5 [880274d25e60] do_set_cpus_allowed at 8108e65f #6 [880274d25e80] sync_unplug_thread at 81058c08 #7 [880274d25ed8] kthread at 8107cad6 #8 [880274d25f50] ret_from_fork at 8152bbbc crash> task_struct 88026f979da0 | grep class sched_class = 0x816111e0 , Signed-off-by: Mike Galbraith Cc: stable...@vger.kernel.org Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Steven Rostedt --- kernel/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/cpu.c b/kernel/cpu.c index 285e18b2c420..a3890754e407 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -242,7 +242,7 @@ static int sync_unplug_thread(void *data) * we don't want any more work on this CPU. */ current->flags &= ~PF_NO_SETAFFINITY; - do_set_cpus_allowed(current, cpu_present_mask); + set_cpus_allowed_ptr(current, cpu_present_mask); migrate_me(); return 0; } -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH RT 4/5] hotplug: Use set_cpus_allowed_ptr() in sync_unplug_thread()
3.10.75-rt81-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Mike Galbraith umgwanakikb...@gmail.com do_set_cpus_allowed() is not safe vs -sched_class change. crash bt PID: 11676 TASK: 88026f979da0 CPU: 22 COMMAND: sync_unplug/22 #0 [880274d25bc8] machine_kexec at 8103b41c #1 [880274d25c18] crash_kexec at 810d881a #2 [880274d25cd8] oops_end at 81525818 #3 [880274d25cf8] do_invalid_op at 81003096 #4 [880274d25d90] invalid_op at 8152d3de [exception RIP: set_cpus_allowed_rt+18] RIP: 8109e012 RSP: 880274d25e48 RFLAGS: 00010202 RAX: 8109e000 RBX: 88026f979da0 RCX: 8802770cb6e8 RDX: RSI: 81add700 RDI: 88026f979da0 RBP: 880274d25e78 R8: 816112e0 R9: 0001 R10: 0001 R11: 00011940 R12: 88026f979da0 R13: 8802770cb6d0 R14: 880274d25fd8 R15: ORIG_RAX: CS: 0010 SS: 0018 #5 [880274d25e60] do_set_cpus_allowed at 8108e65f #6 [880274d25e80] sync_unplug_thread at 81058c08 #7 [880274d25ed8] kthread at 8107cad6 #8 [880274d25f50] ret_from_fork at 8152bbbc crash task_struct 88026f979da0 | grep class sched_class = 0x816111e0 fair_sched_class+64, Signed-off-by: Mike Galbraith umgwanakikb...@gmail.com Cc: stable...@vger.kernel.org Signed-off-by: Sebastian Andrzej Siewior bige...@linutronix.de Signed-off-by: Steven Rostedt rost...@goodmis.org --- kernel/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/cpu.c b/kernel/cpu.c index b460d99bc761..50ae129671f0 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -234,7 +234,7 @@ static int sync_unplug_thread(void *data) * we don't want any more work on this CPU. */ current-flags = ~PF_NO_SETAFFINITY; - do_set_cpus_allowed(current, cpu_present_mask); + set_cpus_allowed_ptr(current, cpu_present_mask); migrate_me(); return 0; } -- 2.1.4 -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH RT 4/5] hotplug: Use set_cpus_allowed_ptr() in sync_unplug_thread()
3.12.40-rt56-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Mike Galbraith umgwanakikb...@gmail.com do_set_cpus_allowed() is not safe vs -sched_class change. crash bt PID: 11676 TASK: 88026f979da0 CPU: 22 COMMAND: sync_unplug/22 #0 [880274d25bc8] machine_kexec at 8103b41c #1 [880274d25c18] crash_kexec at 810d881a #2 [880274d25cd8] oops_end at 81525818 #3 [880274d25cf8] do_invalid_op at 81003096 #4 [880274d25d90] invalid_op at 8152d3de [exception RIP: set_cpus_allowed_rt+18] RIP: 8109e012 RSP: 880274d25e48 RFLAGS: 00010202 RAX: 8109e000 RBX: 88026f979da0 RCX: 8802770cb6e8 RDX: RSI: 81add700 RDI: 88026f979da0 RBP: 880274d25e78 R8: 816112e0 R9: 0001 R10: 0001 R11: 00011940 R12: 88026f979da0 R13: 8802770cb6d0 R14: 880274d25fd8 R15: ORIG_RAX: CS: 0010 SS: 0018 #5 [880274d25e60] do_set_cpus_allowed at 8108e65f #6 [880274d25e80] sync_unplug_thread at 81058c08 #7 [880274d25ed8] kthread at 8107cad6 #8 [880274d25f50] ret_from_fork at 8152bbbc crash task_struct 88026f979da0 | grep class sched_class = 0x816111e0 fair_sched_class+64, Signed-off-by: Mike Galbraith umgwanakikb...@gmail.com Cc: stable...@vger.kernel.org Signed-off-by: Sebastian Andrzej Siewior bige...@linutronix.de Signed-off-by: Steven Rostedt rost...@goodmis.org --- kernel/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/cpu.c b/kernel/cpu.c index 6d2cab15a585..3566e74fae83 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -242,7 +242,7 @@ static int sync_unplug_thread(void *data) * we don't want any more work on this CPU. */ current-flags = ~PF_NO_SETAFFINITY; - do_set_cpus_allowed(current, cpu_present_mask); + set_cpus_allowed_ptr(current, cpu_present_mask); migrate_me(); return 0; } -- 2.1.4 -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH RT 4/5] hotplug: Use set_cpus_allowed_ptr() in sync_unplug_thread()
3.14.39-rt38-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Mike Galbraith umgwanakikb...@gmail.com do_set_cpus_allowed() is not safe vs -sched_class change. crash bt PID: 11676 TASK: 88026f979da0 CPU: 22 COMMAND: sync_unplug/22 #0 [880274d25bc8] machine_kexec at 8103b41c #1 [880274d25c18] crash_kexec at 810d881a #2 [880274d25cd8] oops_end at 81525818 #3 [880274d25cf8] do_invalid_op at 81003096 #4 [880274d25d90] invalid_op at 8152d3de [exception RIP: set_cpus_allowed_rt+18] RIP: 8109e012 RSP: 880274d25e48 RFLAGS: 00010202 RAX: 8109e000 RBX: 88026f979da0 RCX: 8802770cb6e8 RDX: RSI: 81add700 RDI: 88026f979da0 RBP: 880274d25e78 R8: 816112e0 R9: 0001 R10: 0001 R11: 00011940 R12: 88026f979da0 R13: 8802770cb6d0 R14: 880274d25fd8 R15: ORIG_RAX: CS: 0010 SS: 0018 #5 [880274d25e60] do_set_cpus_allowed at 8108e65f #6 [880274d25e80] sync_unplug_thread at 81058c08 #7 [880274d25ed8] kthread at 8107cad6 #8 [880274d25f50] ret_from_fork at 8152bbbc crash task_struct 88026f979da0 | grep class sched_class = 0x816111e0 fair_sched_class+64, Signed-off-by: Mike Galbraith umgwanakikb...@gmail.com Cc: stable...@vger.kernel.org Signed-off-by: Sebastian Andrzej Siewior bige...@linutronix.de Signed-off-by: Steven Rostedt rost...@goodmis.org --- kernel/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/cpu.c b/kernel/cpu.c index 285e18b2c420..a3890754e407 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -242,7 +242,7 @@ static int sync_unplug_thread(void *data) * we don't want any more work on this CPU. */ current-flags = ~PF_NO_SETAFFINITY; - do_set_cpus_allowed(current, cpu_present_mask); + set_cpus_allowed_ptr(current, cpu_present_mask); migrate_me(); return 0; } -- 2.1.4 -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/