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 for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1459433831-4162-1-git-send-email-naveenkumar.parna@gmail.com>
Date:	Thu, 31 Mar 2016 19:47:11 +0530
From:	Naveen Kumar Parna <naveenkumar.parna@...il.com>
To:	ulf.hansson@...aro.org, adrian.hunter@...el.com, chris@...ntf.net
Cc:	linux-mmc@...r.kernel.org, linux-kernel@...r.kernel.org,
	Naveen Kumar Parna <naveenkumar.parna@...il.com>
Subject: [PATCH] mmc: core: Fix bug on signal voltage switch failure

When switching SD and SDIO cards from 3.3V to 1.8V signal level fails, a bug in sdhci_set_power() will trigger.
To fix the kernel crash during recovery from signal voltage switch failure, OCR should be reset to avail voltage mask before power-cycle the card.

Signed-off-by: Naveen Kumar Parna <naveenkumar.parna@...il.com>
---
 drivers/mmc/core/core.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index f26a5f1..e7eb427 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -1477,6 +1477,8 @@ power_cycle:
 	if (err) {
 		pr_debug("%s: Signal voltage switch failed, "
 			"power cycling card\n", mmc_hostname(host));
+		/* Reset OCR mask */
+		ocr =  host->ocr_avail;
 		mmc_power_cycle(host, ocr);
 	}
 
-- 
1.9.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ