Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp3020639pxb; Tue, 12 Jan 2021 04:31:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJynYqrMoeglLud/AAiobrXT7md5lM2jJ9qL/elvBv2IpRuJLsoxqQZK8tDP0j6juyb8kLgS X-Received: by 2002:a50:fd10:: with SMTP id i16mr3263117eds.331.1610454698110; Tue, 12 Jan 2021 04:31:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610454698; cv=none; d=google.com; s=arc-20160816; b=ezruBUh6xNnNRamxThkSmke3RJ5HO5Y4fncy5ZepOUtDySyC3kp08MZHO2Yl49+Y7h bGpdC8+ilXbLAW+lGsRhllgsU8c5xqtN/HfzGscsylbGgiPDCxfwBywJv7DNbPgcmXYm xrAvoSyN+LtbUOqTC3oUDTO4LNtUPL7M0d3Za/wGYOoZ3Isb63WsXdGEoAA/jlFP9Zdg zho2Pre5vOxbMM7HOPhG02mH4/IC5ZS+SiwcleB/9BkxA9ejfI0Lj9jJytAJUMHC1D2A zxlfkvVDzf9bLthrFI0TC/gb/MBadJSbd0w5XsWoqDIjB2cl0guc7kee4+SOF0hxOo46 6wTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=Iu8lnmjN/TPe2FBwqAQYsax0J6qOLIwwrgKQk5YJHOg=; b=0KFSJlCDraapQDrkvKHW+IOFIhjPfezWylpbY47ImIskUKqoV+yDlTT6wH16s6P4x/ YXK0JBDn/ASdm1C/reHlIcwEXHD+E2WH8PzKDKITpRyCIz3tCLWZKkF5JoYQYls5SqEW pb/bS1ouTG6gx1OBIIDrn1hPt3tDAAEyFfgcElP9B1cwLZ5dT3/Qb17REF+EqawbJJmU qSRPGGrc5irgVUbTa65eLE46lExURpWj91G6hPPO6wJ0VlutxOvADTQXEXO/gY1tjD7g k8+HuyDSQR7suuuR8hw3KLdKrmb+rWOxL7kUbrDhntOqb5pwnYvUD0VXhOFW213k4SDL w07g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=VKT6yj2c; 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=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hb35si1038642ejc.396.2021.01.12.04.31.14; Tue, 12 Jan 2021 04:31:38 -0800 (PST) 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; dkim=pass header.i=@mediatek.com header.s=dk header.b=VKT6yj2c; 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=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389514AbhALJg5 (ORCPT + 99 others); Tue, 12 Jan 2021 04:36:57 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:33057 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726211AbhALJg5 (ORCPT ); Tue, 12 Jan 2021 04:36:57 -0500 X-UUID: 5c86277b71ba40838df4e9af34201d29-20210112 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=Iu8lnmjN/TPe2FBwqAQYsax0J6qOLIwwrgKQk5YJHOg=; b=VKT6yj2cNfO9ljSkWFvDmKsvgQXy20VAalgAHc9Hm7xHcVabldaE2sYUxHJ91EtjO4o04XHM+aWSpNzseN/PrZRG0fdFg+jaAhMyPLm9WYyLzK29popoBTtD9xvKSJYGdICFGNnC23oMlwcRjprTF9p01AbM6E23iLLaZ1cShuE=; X-UUID: 5c86277b71ba40838df4e9af34201d29-20210112 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1150739987; Tue, 12 Jan 2021 17:36:10 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 12 Jan 2021 17:36:09 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 12 Jan 2021 17:36:09 +0800 Message-ID: <1610444169.17820.11.camel@mtkswgap22> Subject: Re: [PATCH 2/2] scsi: ufs: Protect PM ops and err_handler from user access through sysfs From: Stanley Chu To: Can Guo CC: , , , , , , , , , Alim Akhtar , Avri Altman , "James E.J. Bottomley" , "Martin K. Petersen" , Bean Huo , Nitin Rawat , Adrian Hunter , Bart Van Assche , "Satya Tangirala" , open list Date: Tue, 12 Jan 2021 17:36:09 +0800 In-Reply-To: <1609595975-12219-3-git-send-email-cang@codeaurora.org> References: <1609595975-12219-1-git-send-email-cang@codeaurora.org> <1609595975-12219-3-git-send-email-cang@codeaurora.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gU2F0LCAyMDIxLTAxLTAyIGF0IDA1OjU5IC0wODAwLCBDYW4gR3VvIHdyb3RlOg0KPiBVc2Vy IGxheWVyIG1heSBhY2Nlc3Mgc3lzZnMgbm9kZXMgd2hlbiBzeXN0ZW0gUE0gb3BzIG9yIGVycm9y IGhhbmRsaW5nDQo+IGlzIHJ1bm5pbmcsIHdoaWNoIGNhbiBjYXVzZSB2YXJpb3VzIHByb2JsZW1z LiBSZW5hbWUgZWhfc2VtIHRvIGhvc3Rfc2VtDQo+IGFuZCB1c2UgaXQgdG8gcHJvdGVjdCBQTSBv cHMgYW5kIGVycm9yIGhhbmRsaW5nIGZyb20gdXNlciBsYXllciBpbnRlcnZlbmUuDQo+IA0KPiBT aWduZWQtb2ZmLWJ5OiBDYW4gR3VvIDxjYW5nQGNvZGVhdXJvcmEub3JnPg0KPiANCg0KTG9va3Mg Z29vZCB0byBtZS4NCg0KRmVlbCBmcmVlIHRvIGFkZA0KUmV2aWV3ZWQtYnk6IFN0YW5sZXkgQ2h1 IDxzdGFubGV5LmNodUBtZWRpYXRlay5jb20+DQoNCg0K