Linux-NFS Archive on lore.kernel.org
 help / Atom feed
* [PATCH] sunrpc: kernel BUG at kernel/cred.c:825!
@ 2019-01-09 16:38 Santosh kumar pradhan
  2019-01-10 15:53 ` Schumaker, Anna
  0 siblings, 1 reply; 2+ messages in thread
From: Santosh kumar pradhan @ 2019-01-09 16:38 UTC (permalink / raw)
  To: trond.myklebust, anna.schumaker; +Cc: linux-nfs, davej, Santosh kumar pradhan

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] sunrpc: kernel BUG at kernel/cred.c:825!
  2019-01-09 16:38 [PATCH] sunrpc: kernel BUG at kernel/cred.c:825! Santosh kumar pradhan
@ 2019-01-10 15:53 ` Schumaker, Anna
  0 siblings, 0 replies; 2+ messages in thread
From: Schumaker, Anna @ 2019-01-10 15:53 UTC (permalink / raw)
  To: trond.myklebust, santoshkumar.pradhan; +Cc: linux-nfs, davej

On Wed, 2019-01-09 at 22:08 +0530, Santosh kumar pradhan wrote:
> 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>

This patch looks good to me, thanks!

Anna

> ---
>  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
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-09 16:38 [PATCH] sunrpc: kernel BUG at kernel/cred.c:825! Santosh kumar pradhan
2019-01-10 15:53 ` Schumaker, Anna

Linux-NFS Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-nfs/0 linux-nfs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-nfs linux-nfs/ https://lore.kernel.org/linux-nfs \
		linux-nfs@vger.kernel.org linux-nfs@archiver.kernel.org
	public-inbox-index linux-nfs


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-nfs


AGPL code for this site: git clone https://public-inbox.org/ public-inbox