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-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-75eb5e1e7b4edbc8e8f930de59004d21cb46961f@git.kernel.org>
Date:   Fri, 14 Apr 2017 01:57:51 -0700
From:   tip-bot for Tyler Baker <tipbot@...or.com>
To:     linux-tip-commits@...r.kernel.org
Cc:     tglx@...utronix.de, linux-kernel@...r.kernel.org,
        fabio.estevam@....com, mingo@...nel.org, hpa@...or.com,
        tyler.baker@...aro.org
Subject: [tip:irq/urgent] irqchip/irq-imx-gpcv2: Fix spinlock initialization

Commit-ID:  75eb5e1e7b4edbc8e8f930de59004d21cb46961f
Gitweb:     http://git.kernel.org/tip/75eb5e1e7b4edbc8e8f930de59004d21cb46961f
Author:     Tyler Baker <tyler.baker@...aro.org>
AuthorDate: Thu, 13 Apr 2017 15:27:31 -0700
Committer:  Thomas Gleixner <tglx@...utronix.de>
CommitDate: Fri, 14 Apr 2017 10:55:05 +0200

irqchip/irq-imx-gpcv2: Fix spinlock initialization

The raw_spinlock in the IMX GPCV2 interupt chip is not initialized before
usage. That results in a lockdep splat:

  INFO: trying to register non-static key.
  the code is fine but needs lockdep annotation.
  turning off the locking correctness validator.

Add the missing raw_spin_lock_init() to the setup code.

Fixes: e324c4dc4a59 ("irqchip/imx-gpcv2: IMX GPCv2 driver for wakeup sources")
Signed-off-by: Tyler Baker <tyler.baker@...aro.org>
Reviewed-by: Fabio Estevam <fabio.estevam@....com>
Cc: jason@...edaemon.net
Cc: marc.zyngier@....com
Cc: shawnguo@...nel.org
Cc: andrew.smirnov@...il.com
Cc: linux-arm-kernel@...ts.infradead.org
Cc: stable@...r.kernel.org
Link: http://lkml.kernel.org/r/20170413222731.5917-1-tyler.baker@linaro.org
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>

---
 drivers/irqchip/irq-imx-gpcv2.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/irqchip/irq-imx-gpcv2.c b/drivers/irqchip/irq-imx-gpcv2.c
index 15af9a9..2d203b4 100644
--- a/drivers/irqchip/irq-imx-gpcv2.c
+++ b/drivers/irqchip/irq-imx-gpcv2.c
@@ -230,6 +230,8 @@ static int __init imx_gpcv2_irqchip_init(struct device_node *node,
 		return -ENOMEM;
 	}
 
+	raw_spin_lock_init(&cd->rlock);
+
 	cd->gpc_base = of_iomap(node, 0);
 	if (!cd->gpc_base) {
 		pr_err("fsl-gpcv2: unable to map gpc registers\n");

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ