Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp769417pxb; Tue, 5 Apr 2022 22:33:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwW2mxOeunu3dDzz3Iw+4OAKQ3SOoLjjn+rs7hkAiRgdYL3HOXV7YE0FHINsO55MUypWrSS X-Received: by 2002:a17:902:f70d:b0:14f:a1e1:b9b3 with SMTP id h13-20020a170902f70d00b0014fa1e1b9b3mr7079257plo.36.1649223182515; Tue, 05 Apr 2022 22:33:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649223182; cv=none; d=google.com; s=arc-20160816; b=ivi3n7HXVQYwftZH9K5728OBptKfHLBfDkS7LyAdfYthQAgZUUI0zb1C1UwW2Fb3qf 8OKwlIGH0kZ7XYCWLsC+J1k0tZWJ2MJdX6UlRDHBqAmdJAcgzZ/CvwCGf8gGLcHaWl0Q HBQcMRSb7ssJ6gkr2y1+rzq9Yrtr5/FI+9fqUE/hUEiyDB1KjLO7U5JtutKrWifigG4J WBvExuEoW6zLCfd6u0Dl8oKgBQJIsJTXHwjE8qANgVOe/rtpxFYH+5798aEmP2PFxTeL +euJwkQqw7rY7Xy/vV6zZRgpnSGz7AOexYNa5UVdpCpfEQBoaLaBAaCJz8VKbv+crpzB m5pA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=pylsg8KqEBo1EqutJLg0BW8XW/AL6XLx125IptD/ewk=; b=pmS1TO0Qwy6VQmPLjHhGxCHwg9rsPrUZzypxlIVwduXAq4DAWuL3caF0GnIX2yPXaK Hx8Ogm+jz9ads694BJI2qijIADyUo7NGVL2/lNl43Lij7oUa7GcGlXxSfW6XBpW3DPl1 KnakniNPVRguqPDpw5wpwiupRFElfqwDBsR7MK4CvEwxEA8NW4x+Sr2xEKqxvkBe/ym9 JxtK7+DkmXGsRJQnPWJc2dKZwoGjp47VvkXbghgfjQEWuoYuEo4MFa2OEV0U7cUlieWq 39H++MibNycjYai11YWGkQ+PMCw/IDLLBxYDCuEFa3Vw3jlp/9cS3XfprYWYiWAnQeys nCZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2WfVaEP7; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id k2-20020a170902c40200b00153b2d16420si15346250plk.40.2022.04.05.22.33.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 22:33:02 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2WfVaEP7; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C82E727B009; Tue, 5 Apr 2022 21:06:06 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1456741AbiDEWql (ORCPT + 99 others); Tue, 5 Apr 2022 18:46:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349219AbiDEJt1 (ORCPT ); Tue, 5 Apr 2022 05:49:27 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6C8222B32; Tue, 5 Apr 2022 02:42:54 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 67A89B81B14; Tue, 5 Apr 2022 09:42:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD5B1C385A2; Tue, 5 Apr 2022 09:42:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649151772; bh=vKovIcCBUGCFdRn+0oQW/himbqi/UkvNL17+CQQ38oY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2WfVaEP71rr821eA4yp5VzdfeT639VJLYZ/f9gYRJAn8ZBjoTWpn5VUsY6z96/xZ4 g9BLhFu1j0nS3AdvgJP8c+rpkIiOzAuWj56qi47NeGBADHl9mOOytpqFgk01WWCHuV Vpa2GxQqM9RSbBwoxbM5QfTftqb+/5V2+hzycFq0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yihang Li , Xiang Chen , John Garry , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 5.15 497/913] scsi: hisi_sas: Change permission of parameter prot_mask Date: Tue, 5 Apr 2022 09:25:59 +0200 Message-Id: <20220405070354.752269504@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xiang Chen [ Upstream commit c4e070457a93705e56ed06b3910d9e5fe56d3be3 ] Currently the permission of parameter prot_mask is 0x0, which means that the member does not appear in sysfs. Change it as other module parameters to 0444 for world-readable. [mkp: s/v3/v2/] Link: https://lore.kernel.org/r/1645703489-87194-2-git-send-email-john.garry@huawei.com Fixes: d6a9000b81be ("scsi: hisi_sas: Add support for DIF feature for v2 hw") Reported-by: Yihang Li Signed-off-by: Xiang Chen Signed-off-by: John Garry Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c index 3ab669dc806f..1942970f9eb7 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c @@ -527,7 +527,7 @@ MODULE_PARM_DESC(intr_conv, "interrupt converge enable (0-1)"); /* permit overriding the host protection capabilities mask (EEDP/T10 PI) */ static int prot_mask; -module_param(prot_mask, int, 0); +module_param(prot_mask, int, 0444); MODULE_PARM_DESC(prot_mask, " host protection capabilities mask, def=0x0 "); static void debugfs_work_handler_v3_hw(struct work_struct *work); -- 2.34.1