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]
Message-Id: <1457829425-4411-1-git-send-email-shuahkh@osg.samsung.com>
Date:	Sat, 12 Mar 2016 17:37:05 -0700
From:	Shuah Khan <shuahkh@....samsung.com>
To:	mchehab@....samsung.com
Cc:	Shuah Khan <shuahkh@....samsung.com>, linux-media@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: [PATCH] media: add dump_stack() if called in atomic context

Change media_add_link() and media_devnode_create() to dump_stack when
called in atomic context.

Signed-off-by: Shuah Khan <shuahkh@....samsung.com>
Suggested-by: Mauro Carvalho Chehab <mchehab@....samsung.com>
---
 drivers/media/media-entity.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/media/media-entity.c b/drivers/media/media-entity.c
index e95070b..66a5392 100644
--- a/drivers/media/media-entity.c
+++ b/drivers/media/media-entity.c
@@ -570,6 +570,9 @@ static struct media_link *media_add_link(struct list_head *head)
 {
 	struct media_link *link;
 
+	if (in_atomic())
+		dump_stack();
+
 	link = kzalloc(sizeof(*link), GFP_KERNEL);
 	if (link == NULL)
 		return NULL;
@@ -891,6 +894,9 @@ struct media_intf_devnode *media_devnode_create(struct media_device *mdev,
 {
 	struct media_intf_devnode *devnode;
 
+	if (in_atomic())
+		dump_stack();
+
 	devnode = kzalloc(sizeof(*devnode), GFP_KERNEL);
 	if (!devnode)
 		return NULL;
-- 
2.5.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ