Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp828709pxu; Mon, 23 Nov 2020 05:21:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJxE/y2HiBIReL7XPq+1/v1Eki/nZ/ewdhcdgHWt4M0+sBXZHu/BL9xJwFrfje57iZVwFjPs X-Received: by 2002:a17:906:c298:: with SMTP id r24mr25872203ejz.381.1606137706067; Mon, 23 Nov 2020 05:21:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606137706; cv=none; d=google.com; s=arc-20160816; b=HEXiJnWtaanINPT2Qhe8lKE/Y+gJAYSqYr7ocVOqzzwfvoiSU8gu6nrKsc4EN+3Lw/ Wjcl/4Sh8NNCZxT/71ctOKkGYwJ57NyU0hLcQfvlfL6q0arY5xYepIAIpNnsh7iVNvQF 1OvF1Enir/ZIe9sdEzq1JB7Ll7F1QDniqwjer0nqQehJnxlsuWq3GrxhVDYjPHPY+zYM OP5U9/GvDZiAgxDWVQywzjDfte4/YiW8c/S7cUAK1R6LGnACy/M4x+ZmZjYuYpskQu5X PVw+/kNyvyn09LjXy0qSL//bXBQxFAUU5dS/Q8jbQ7OlgyHHVYJ8Ti9fYcMhRZ92BJrv vZNg== 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=YylhsJISmXhh5gPINhj/X4tIMGiXYBMkvdhuoXtmzKk=; b=RjpvaHayNhlygujjWqWPwep1xvs9Q+d+7jnfDRQ7Rvkdns5f0M0t1k6VPcNfHEzzXU BTFGvQSdS5yXhf4l1+fRWwHw8EwXNkfpo+SHOGlVqMUacUE1RCh7pK2xcfbnCgOGk10i 3l5pQkzDT0KU/ITqN9e2GccV1mq218F5LUCEiR+F9mpqslf2FSR63ANOuL/guc/feIBb 51U/NdgRC5lspiSO6P9AR51F8Oe2GN62WGUM2oQe+U8t6/icvEniVDcYyRTYeqKyM3lo j4paIGi4KU9C8vFQ4RECLZ9ojy1GqLXXEdYqHf3AzJuMs02zFO6jlByESb3EC/YVS27p jumQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0xZUKa0d; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k11si6148994ejg.330.2020.11.23.05.21.22; Mon, 23 Nov 2020 05:21:46 -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=@linuxfoundation.org header.s=korg header.b=0xZUKa0d; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732432AbgKWNSR (ORCPT + 99 others); Mon, 23 Nov 2020 08:18:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:52932 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732436AbgKWMkO (ORCPT ); Mon, 23 Nov 2020 07:40:14 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D96F02065E; Mon, 23 Nov 2020 12:40:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606135214; bh=KkF4llIZxIHmqqCDGKdjsMJMvpqqizjVO5k2i5DG8ig=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0xZUKa0dSUAtC4sesTkauzhWqKcRH2ELwXXURDzWanKdNy+nfTy9ajo+14oZN4Fjq n95fnSmPZYyp+AIZflkwxSevkItiKVmKdAjwJpH7g1VIF6nTkzK8Y1wnyXIUCB3aJ6 wkXrLOpNMNwyZr3rqOhtlSrld3RoY6XM8Dmp0hxE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Richter , Sumanth Korikkar , Heiko Carstens Subject: [PATCH 5.4 146/158] s390/cpum_sf.c: fix file permission for cpum_sfb_size Date: Mon, 23 Nov 2020 13:22:54 +0100 Message-Id: <20201123121826.978873573@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121819.943135899@linuxfoundation.org> References: <20201123121819.943135899@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thomas Richter commit 78d732e1f326f74f240d416af9484928303d9951 upstream. This file is installed by the s390 CPU Measurement sampling facility device driver to export supported minimum and maximum sample buffer sizes. This file is read by lscpumf tool to display the details of the device driver capabilities. The lscpumf tool might be invoked by a non-root user. In this case it does not print anything because the file contents can not be read. Fix this by allowing read access for all users. Reading the file contents is ok, changing the file contents is left to the root user only. For further reference and details see: [1] https://github.com/ibm-s390-tools/s390-tools/issues/97 Fixes: 69f239ed335a ("s390/cpum_sf: Dynamically extend the sampling buffer if overflows occur") Cc: # 3.14 Signed-off-by: Thomas Richter Acked-by: Sumanth Korikkar Signed-off-by: Heiko Carstens Signed-off-by: Greg Kroah-Hartman --- arch/s390/kernel/perf_cpum_sf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/s390/kernel/perf_cpum_sf.c +++ b/arch/s390/kernel/perf_cpum_sf.c @@ -2217,4 +2217,4 @@ out: } arch_initcall(init_cpum_sampling_pmu); -core_param(cpum_sfb_size, CPUM_SF_MAX_SDB, sfb_size, 0640); +core_param(cpum_sfb_size, CPUM_SF_MAX_SDB, sfb_size, 0644);