Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp925254pxb; Wed, 6 Apr 2022 04:28:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzbz8fVqJNTLgypPQE35bX80NtdPmjM3dixs75IT+w0cQz9rSG6pTfn7ES1rD6M4BkNaqi X-Received: by 2002:a05:6a00:2304:b0:4fa:dff2:88f5 with SMTP id h4-20020a056a00230400b004fadff288f5mr8453239pfh.11.1649244480895; Wed, 06 Apr 2022 04:28:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649244480; cv=none; d=google.com; s=arc-20160816; b=xTdLg1T5KcWpghSnhsQH6QvF/muFlBtaBLdnrcl2FAYUn2+mvlTQktReu1S+7S6xxz N6NP3dYrIokObAs8r2w3v7cr/bRnaIPUh7JDN4fFU+bNHm0LplvBNV3PlTH6lm3OjNV3 gGmW2Ios+el9OdbU6QarhJyhZp41JDIgbbyy7a431fq6GAge338tiuOuRGpawW6lZE+l 34A0F8/cn59tqtoZdNJMQXaxHYgWJK+QJCj8tVoAFT0wpHMVWu7i7vhbjuQ9MhDaSgNX Q9HQjA12ZeJoPfFoPXWjnQND8kaha7z7y6AtxFa/l9UwBPxZhFqvEJlnkLFqyfI3YHVq o7/A== 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=Z12qbJuzldPUzUFYafsa5gnC0z0r8H7dyu/jo9iGU5Q=; b=kkl+BrcQN0O7CSjZCC2cTK1WELqqn6G1up6gWhKkOOv5DilHWIb3o+r0D4zV5sYSWK L9WaeqEgLLseRMj/zkHL8uL3mShhGxLsx4lRsJDC8AZfUkqKZMxLlOMllVc+CSUXBCOu 0aN/6ccNCgXMpcRgwYnGDRGrqHY6KKnCxmYkb8KsBPRedcXLbki+vbAOgtUI5s0EfXv1 Id1XkpNoygt/wCrfjaLbz8tSUnEJz2Im7DPlrG8fkJk7bsP7VkK7uNVDzcuS9JnVEuim cZw3tIKHab8ySY8zwtxfDmf7wKjeZY3jHaIkMqKpu2jkMfZticA5SAuIC/YAI6hUzbSM mP6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fGPFWY0h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f11-20020a65550b000000b003816043ee93si16470479pgr.136.2022.04.06.04.28.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 04:28:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fGPFWY0h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 0CAA65F90A0; Wed, 6 Apr 2022 02:50:17 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345036AbiDEKkf (ORCPT + 99 others); Tue, 5 Apr 2022 06:40:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237548AbiDEISG (ORCPT ); Tue, 5 Apr 2022 04:18:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4AA46A421; Tue, 5 Apr 2022 01:06:46 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 81012617F0; Tue, 5 Apr 2022 08:06:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D7F1C385A0; Tue, 5 Apr 2022 08:06:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649146005; bh=xSXEUYgzxQ6dCPr/F/TUohTuCLEdahAXG9X8b46p8Eg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fGPFWY0h4jX62uMFqkuabsAV5HpkGU9bHqSPLND9331VUWbVLSEwNZwgWJSfYisSP 1S/3KOoVxQYU31/hG0mtXcJXA3x47pPyFs4TywVo/jtNshEXlI1Ma3hSBtzKuP+foN 50eMaXyAAvLdwMNrCbjWcrbidp/72lG+AGa9f+Vg= 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.17 0608/1126] scsi: hisi_sas: Change permission of parameter prot_mask Date: Tue, 5 Apr 2022 09:22:35 +0200 Message-Id: <20220405070425.480902281@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070407.513532867@linuxfoundation.org> References: <20220405070407.513532867@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 a01a3a7b706b..70173389f6eb 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c @@ -530,7 +530,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