Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.7 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 355E8C43441 for ; Tue, 13 Nov 2018 00:01:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E1C6122506 for ; Tue, 13 Nov 2018 00:01:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="u8GZQTPF" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E1C6122506 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oracle.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725842AbeKMJ4Z (ORCPT ); Tue, 13 Nov 2018 04:56:25 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:48136 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726111AbeKMJ4Z (ORCPT ); Tue, 13 Nov 2018 04:56:25 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id wAD008x1141785; Tue, 13 Nov 2018 00:00:55 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=content-type : mime-version : subject : from : in-reply-to : date : cc : content-transfer-encoding : message-id : references : to; s=corp-2018-07-02; bh=D2KjJzA54Q9G7DBlYNdSiT8F/u5n9YJGOaxM2kRckWw=; b=u8GZQTPF/KsmJWkgk/BudL3CNi8tpqX2T+TzBYVBWHRrenV9KkuDs31ZY1VTKLrPmw7v J6Q3kbroLc4sTBJaclowMQhyAlFTZmczr4hyUPDd8wWcUr+MOndQ+H6VQwD55zZ2gmnP X3P0R6fSWR2USUwZ4mMZct48ht59RST5A5M9vyxnjF9Riw5/wfFSvpW+KnRAAXkQqTX9 qnZmj/PLqJW+YKUBgbOVpJwfKbvBZqqZBXPW7TuSaShDji4h0VqyyAwUjJkTvuVMuakX xW1QM+e8vLX1IdmILSSEY5J9n6Ee9mQ1+f7U8c6wNoh4Gkhbu3XawO4chRAkQvVuiH+O 7A== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2nnwc0fg81-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 13 Nov 2018 00:00:55 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id wAD00soi017100 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 13 Nov 2018 00:00:54 GMT Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id wAD00r0Q029444; Tue, 13 Nov 2018 00:00:53 GMT Received: from [192.168.39.5] (/64.114.255.114) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 12 Nov 2018 16:00:53 -0800 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: NULL dereference in rpcauth_lookup_credcache From: Chuck Lever X-Mailer: iPad Mail (16A404) In-Reply-To: <9d36177854ba176f46e7a9842aa0368cc508b599.camel@hammerspace.com> Date: Mon, 12 Nov 2018 16:00:50 -0800 Cc: "bfields@fieldses.org" , "schumakeranna@gmail.com" , "chucklever@gmail.com" , "linux-nfs@vger.kernel.org" Content-Transfer-Encoding: quoted-printable Message-Id: <8B4BB2AC-D94B-4B76-BFF2-460303C8FE9B@oracle.com> References: <20181108214452.GH6090@fieldses.org> <04114B00-B5A8-4F8A-B052-A266AED7725D@gmail.com> <20181110214939.GA16755@fieldses.org> <20181112182454.GE16755@fieldses.org> <2e62a77385b4e5d91e2ca9128313cf817c46a1ae.camel@hammerspace.com> <20181112230149.GF16755@fieldses.org> <9d36177854ba176f46e7a9842aa0368cc508b599.camel@hammerspace.com> To: Trond Myklebust X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9075 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1811120206 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org > On Nov 12, 2018, at 3:57 PM, Trond Myklebust wro= te: >=20 >> On Mon, 2018-11-12 at 18:01 -0500, bfields@fieldses.org wrote: >>> On Mon, Nov 12, 2018 at 09:17:16PM +0000, Trond Myklebust wrote: >>>> On Mon, 2018-11-12 at 13:24 -0500, bfields@fieldses.org wrote: >>>>> On Mon, Nov 12, 2018 at 05:59:33PM +0000, Trond Myklebust wrote: >>>>>> On Sat, 2018-11-10 at 16:49 -0500, Bruce Fields wrote: >>>>>> Looks like it's the fault of >>>>>>=20 >>>>>> 07d02a67b7faae "SUNRPC: Simplify lookup code" >>>>>=20 >>>>> I'm having trouble reproducing this bug. I've tried both cthon >>>>> and >>>>> xfstests in a loop, so far without success (both NFSv3 and >>>>> v4.1, >>>>> but >>>>> only sec=3Dsys). Is there anything else you're doing that I might >>>>> try? >>>>>=20 >>>>> e.g. Are you running multiple workloads in parallel? Different >>>>> users?.. >>>>=20 >>>> Nothing that interesting. Currently it's connectathon over v4, >>>> v3, >>>> v4/krb5, v3/krb5, v4/krb5i, v4/krb5p, v4.1, v4.1/krb5, but just >>>> serially >>>> one after the other. Then some pynfs tests (which bypass the >>>> client), >>>> then xfstests over v4.2/sys. And also a few one-off locking >>>> tests of >>>> my >>>> own that probably aren't a factor here. >>>>=20 >>>> (Hah, I just realized I was mounting with vers=3D4 and assuming >>>> that >>>> meant >>>> 4.0, but actually it's changed over time depending on the >>>> defaults, >>>> so >>>> currently those "v4" runs are actually all 4.2. Gah.) >>>=20 >>> Are you perhaps both using RPCSEC_GSS w/ integrity checking for >>> your >>> EXCHANGE_ID authentication? The client will attempt to use that by >>> default if rpc.gssd is running. >>=20 >> Yes, in addition to the krb5i mount I'd expect the sys/krb5/krb5p >> mounts >> are using krb5i for EXCHANGE_ID. >>=20 >>> I ask because I think the issue might be with RPCSEC_GSS, >>> specifically >>> with the RPCSEC_GSS context destroy code, hence the 2 patches that >>> I >>> just sent out. >>=20 >> Looks like my tests pass after applying those two patches. >>=20 >=20 > Cool! Thanks for testing. >=20 > Chuck, do you think the above might also explain your sighting of the > same Oops? Could be, I don=E2=80=99t think I saw it until I started testing NFSv4. I won=E2=80=99t be able to confirm that until next week. > Cheers > Trond >=20 > --=20 > Trond Myklebust > Linux NFS client maintainer, Hammerspace > trond.myklebust@hammerspace.com >=20 >=20