linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Santosh kumar pradhan <santoshkumar.pradhan@wdc.com>
To: trond.myklebust@hammerspace.com, anna.schumaker@netapp.com
Cc: linux-nfs@vger.kernel.org, davej@codemonkey.org.uk,
	Santosh kumar pradhan <santoshkumar.pradhan@wdc.com>
Subject: [PATCH] sunrpc: kernel BUG at kernel/cred.c:825!
Date: Wed,  9 Jan 2019 22:08:26 +0530	[thread overview]
Message-ID: <20190109163826.2851-1-santoshkumar.pradhan@wdc.com> (raw)

Init missing debug member magic with CRED_MAGIC.

Signed-off-by: Santosh kumar pradhan <santoshkumar.pradhan@wdc.com>
Reported-by: Dave Jones <davej@codemonkey.org.uk>
---
 net/sunrpc/auth.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/net/sunrpc/auth.c b/net/sunrpc/auth.c
index 1ff9768f5456..f3023bbc0b7f 100644
--- a/net/sunrpc/auth.c
+++ b/net/sunrpc/auth.c
@@ -41,6 +41,9 @@ static unsigned long number_cred_unused;
 
 static struct cred machine_cred = {
 	.usage = ATOMIC_INIT(1),
+#ifdef CONFIG_DEBUG_CREDENTIALS
+	.magic = CRED_MAGIC,
+#endif
 };
 
 /*
-- 
2.20.1


             reply	other threads:[~2019-01-09 16:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-09 16:38 Santosh kumar pradhan [this message]
2019-01-10 15:53 ` [PATCH] sunrpc: kernel BUG at kernel/cred.c:825! Schumaker, Anna

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190109163826.2851-1-santoshkumar.pradhan@wdc.com \
    --to=santoshkumar.pradhan@wdc.com \
    --cc=anna.schumaker@netapp.com \
    --cc=davej@codemonkey.org.uk \
    --cc=linux-nfs@vger.kernel.org \
    --cc=trond.myklebust@hammerspace.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).