From patchwork Wed Jan 9 16:38:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Santosh kumar pradhan X-Patchwork-Id: 10754491 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0EA646C5 for ; Wed, 9 Jan 2019 16:38:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F3DC228C56 for ; Wed, 9 Jan 2019 16:38:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E58F428C9B; Wed, 9 Jan 2019 16:38:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7917E28C56 for ; Wed, 9 Jan 2019 16:38:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726542AbfAIQil (ORCPT ); Wed, 9 Jan 2019 11:38:41 -0500 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:3940 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726541AbfAIQil (ORCPT ); Wed, 9 Jan 2019 11:38:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1547051922; x=1578587922; h=from:to:cc:subject:date:message-id; bh=uwxBjlUAPOo6DRjudE1tf3Cy2veVtyYdsHM1/u+Thv4=; b=neRxbZRUSgr35evmY07Y7XWHxCfDlYncenG4Bbz7KWduisCsZ7VOpsd8 VeWPMnTuHk9e3AczDeX5cCJ0wgurQ0dxTXeck8tMBIVq1wtKpvV8n21wB Y549egR93hYf3LaNziPtoBzXsyr1SJXu9gRw7qmGZegpdeMr1EwnVHrPG 6jsn3sBx4+i1dx/VxIJHYU0unONo3PL+9YGc+jst4vKC6wGJj7Dn09LGs oh5oN7B9kSq+bpHVUY7TAm+kLchR9zJPfSDTtWdqommFTn6YfcGHd5YJE SbyLHMEmtK0K7Gdpklq1s2jKtJF7F7MsdlnY0SSi1zGxYspqSNdi54Zj5 w==; X-IronPort-AV: E=Sophos;i="5.56,458,1539619200"; d="scan'208";a="103293414" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 10 Jan 2019 00:38:32 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 09 Jan 2019 08:18:31 -0800 Received: from ind001917.ad.shared (HELO C02VRAUAHV29.hgst.com) ([10.199.177.224]) by uls-op-cesaip02.wdc.com with ESMTP; 09 Jan 2019 08:38:29 -0800 From: Santosh kumar pradhan To: trond.myklebust@hammerspace.com, anna.schumaker@netapp.com Cc: linux-nfs@vger.kernel.org, davej@codemonkey.org.uk, Santosh kumar pradhan Subject: [PATCH] sunrpc: kernel BUG at kernel/cred.c:825! Date: Wed, 9 Jan 2019 22:08:26 +0530 Message-Id: <20190109163826.2851-1-santoshkumar.pradhan@wdc.com> X-Mailer: git-send-email 2.17.2 (Apple Git-113) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Init missing debug member magic with CRED_MAGIC. Signed-off-by: Santosh kumar pradhan Reported-by: Dave Jones --- 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 }; /*