lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 14 Jul 2017 14:50:28 -0700
From:   Channagoud Kadabi <ckadabi@...eaurora.org>
To:     gregkh@...uxfoundation.org, tglx@...uxtronix.de
Cc:     Channagoud Kadabi <ckadabi@...eaurora.org>, rusty@...tcorp.com.au,
        tj@...nel.org, akpm@...ux-foundation.org,
        linux-kernel@...r.kernel.org, stable@...r.kernel.org
Subject: [PATCH] kernel: cpu: send CPU_UP_CANCELLED notification

If any of the callbacks during cpu up fail undo_cpu_up calls the
teardown call backs to rollback states but does not send
CPU_UP_CANCELLED. As on 4.9 kernel some drivers still use the
notification mechanism for cpu hotplug we need to send
CPU_UP_CANCELLED notification so drivers can rollback whatever
they did during cpu up.

Signed-off-by: Channagoud Kadabi <ckadabi@...eaurora.org>
---
 kernel/cpu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/cpu.c b/kernel/cpu.c
index 8f52977..ade5bb2 100644
--- a/kernel/cpu.c
+++ b/kernel/cpu.c
@@ -494,6 +494,7 @@ static int cpuhp_up_callbacks(unsigned int cpu, struct cpuhp_cpu_state *st,
 		if (ret) {
 			st->target = prev_state;
 			undo_cpu_up(cpu, st);
+			cpu_notify(CPU_UP_CANCELED, cpu);
 			break;
 		}
 	}
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ