Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp465284pxj; Wed, 2 Jun 2021 03:46:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyaRK77/H+jv1WMjieGywsAbiy4AEhTVUuQ96TGWcfy8yZJ9UpowyHZriEDxrFGYFrzZiF X-Received: by 2002:a50:fc84:: with SMTP id f4mr18461835edq.252.1622630784137; Wed, 02 Jun 2021 03:46:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622630784; cv=none; d=google.com; s=arc-20160816; b=yZe/8x2yxZANQKeSQ50ZXsPsKSsfXYnKYFtuSE34GwoOhqli1gTDz4v6e6ljV93ojO 5/w7L3Bh8TPGAdnBmqliNQLvTmFjrrvVdVR4tnGre7PL18bPb4UahfyUUOMc7/5VZbVE YGMFTZbsEr77RtdPPt0dUPnOApSxxf5FO1CQ0efkgopO5ysQUvgsOu2etRt54ZmilTrA A9OfnIoZ2HNMs7NDf1iw66ncJR2ny7CEnzT1bAMvjlhYz8pu6QuGB3meQNGRxQMSgVWT IKaH3GFRFIeHEj15td06awQQDFt6fMj89C1GcjpLdRSyJWdWPwl1QpM1+dtsTySQrbgS 8+Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=a/tbvweq5BlXkrqQYmaZC+NTB7LPqnqizeQqMvr/b0E=; b=MqbMwpXHFCR9qei9s9qYW+AvZ4BsmUw5i6H1ai8Z8WNgLGaJ6UTyCzrdSXz+RHa667 UqXuZ4svdn3/x7XsGARX9Mq7CxGKqLVRZZf5KMyvq93icrEGfWfCwKNoPTpISXVzWnl3 wUu9NdOa4iuvjnQjDTFuy9/e4j60uYmrCESX+67t3tI6yMywwCAY0Fh6xaCtUPDra7fB CSsxnavRG5DX4d1H+YXbuMdHSgzVbvjP6zi4RuvA2KQhtg2pVilE2xIcNwZOkizH5Xu8 pefha8sVERfNZkDVjQpWqmFqELPgrlEoym4m9GGa9vWPSK+RmzALn6xTqkuqzVkMkUiY ROUw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t6si13143374eju.144.2021.06.02.03.46.00; Wed, 02 Jun 2021 03:46:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229745AbhFBKns (ORCPT + 99 others); Wed, 2 Jun 2021 06:43:48 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([185.58.86.151]:47738 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231652AbhFBKnY (ORCPT ); Wed, 2 Jun 2021 06:43:24 -0400 Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-43-zpJFYy08PGmtHOmQlbJROg-1; Wed, 02 Jun 2021 11:41:36 +0100 X-MC-Unique: zpJFYy08PGmtHOmQlbJROg-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 2 Jun 2021 11:41:35 +0100 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.018; Wed, 2 Jun 2021 11:41:35 +0100 From: David Laight To: 'Christian Brauner' , Cong Wang CC: Jakub Kicinski , Changbin Du , Alexander Viro , "David S. Miller" , Linux Kernel Network Developers , LKML , linux-fsdevel , stable Subject: RE: [PATCH] nsfs: fix oops when ns->ops is not provided Thread-Topic: [PATCH] nsfs: fix oops when ns->ops is not provided Thread-Index: AQHXV5AByooY9TtpI0OnrqOz4Es786sAiDRw Date: Wed, 2 Jun 2021 10:41:35 +0000 Message-ID: <42fa84fe3dc148dea63096db24a039ae@AcuMS.aculab.com> References: <20210531153410.93150-1-changbin.du@gmail.com> <20210531220128.26c0cb36@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net> <20210602091451.kbdul6nhobilwqvi@wittgenstein> In-Reply-To: <20210602091451.kbdul6nhobilwqvi@wittgenstein> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogQ2hyaXN0aWFuIEJyYXVuZXINCj4gU2VudDogMDIgSnVuZSAyMDIxIDEwOjE1DQouLi4N Cj4gSG0sIEkgdGhpbmsgYSBjb21waWxlIHRpbWUgY2hlY2sgaXMgYmV0dGVyIHRoYW4gYSBydW50 aW1lIGNoZWNrDQo+IGluZGVwZW5kZW50IG9mIHBlcmZvcm1hbmNlIGJlbmVmaXRzLg0KPiANCj4g Pg0KPiA+IDIpIFRoZXJlIGFyZ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