From patchwork Fri Jun 19 14:33:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 191215 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp608724ilo; Fri, 19 Jun 2020 08:03:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw56P7/fV6fbwMhZBJ9SQelVcL4sZ9bVj2h0nsimQ+VEiuqDBcRwejwaDGvHGe3zn5o+PUK X-Received: by 2002:a17:906:c1c4:: with SMTP id bw4mr3975001ejb.452.1592579017940; Fri, 19 Jun 2020 08:03:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592579017; cv=none; d=google.com; s=arc-20160816; b=ynci2b3sD6Jd3H53Vd7S3h0Y/ExmVynpvP3tdWb8dWrDCrmUozLh40HVUS12qkpBM9 4dajuxenYk3m1UBOmJTHCwfeK+vldxrigtg3EBr6+/t34U5pHRDAr94TjuNeZyclOl7x lA9csxJoPxf3ZiQOPndplZV5FYHQrlfqFSdOHSrvTMxnzmqog4jrCVOzhkK5unKC5IJt lQc/Ii9V0fTJed8t2A+sATIJbPuZRiSqj8q0YuVF6MXQYeiP1SLDEFJFmlEBOA54ACkU QyCBx3nUMp4CokrhL3TPPifx3Ifugnj8Jtto3HsmkW2NZM5LrKnpQkCELL9E2cnz2eoq HtnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=iEgipgwj4hS3KDezLb3Jth6NMUvM+tyiFCMP/FYwEFs=; b=hKOtMU6AoFkcYoKGYKs3cMNQ3uIMvIJOQVf+SNLy5lVV1S8jSGLHUUIpMxvd/BR7to Nq9a1/pf/pM865efvnXCgFN/v17dvbafwlF4rrS/c2sLhISC0fL28e6DNb/apZ3oCemv B6Xr7G2sbWgeEg8pNtmSKeZvAuSsrYwofVKtyNFJVy9+6oHoK1VmsCwxcfRxemFO5O74 D7mO2n4U0yEg1n6Q3py+jGBuzCBTFMGos6alK3N7a0EcAFSHZQM8my6fncVpyQ1YNV7O 73NN+MlVbtR7ek1a2kvwEGYo8duL0qFnNqUWPZIvkC/BRYsPhCyrj9oRgM0nmI9ffwN0 5rtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BXVvwBm1; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c62si4322696edd.408.2020.06.19.08.03.37; Fri, 19 Jun 2020 08:03:37 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-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=@kernel.org header.s=default header.b=BXVvwBm1; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391028AbgFSPDf (ORCPT + 15 others); Fri, 19 Jun 2020 11:03:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:60320 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391015AbgFSPDc (ORCPT ); Fri, 19 Jun 2020 11:03:32 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 F0BEF21974; Fri, 19 Jun 2020 15:03:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592579012; bh=4JFtDNHFFW5pg3sH6TQO9VaAPDJzQon9y+GOPrV4sBw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BXVvwBm15v3VDqLgKG41HNVVTCDEPT2G+lrrmthtdT91gVs1Y43AF9/wXTXEVnta7 p1x87M3TOO1OZtndRvX/uuTGJ1r08aY7anlZ0uoW1jM9wbgZxqOp3jDuFayXrQPVyN srVyn+FLV8q0fpLdhFpv/UzC5jZzlnszK66J3KSo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Anders Roxell , Arnd Bergmann Subject: [PATCH 4.19 242/267] power: vexpress: add suppress_bind_attrs to true Date: Fri, 19 Jun 2020 16:33:47 +0200 Message-Id: <20200619141700.304836871@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200619141648.840376470@linuxfoundation.org> References: <20200619141648.840376470@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Anders Roxell commit 73174acc9c75960af2daa7dcbdb9781fc0d135cb upstream. Make sure that the POWER_RESET_VEXPRESS driver won't have bind/unbind attributes available via the sysfs, so lets be explicit here and use ".suppress_bind_attrs = true" to prevent userspace from doing something silly. Link: https://lore.kernel.org/r/20200527112608.3886105-2-anders.roxell@linaro.org Cc: stable@vger.kernel.org Signed-off-by: Anders Roxell Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman --- drivers/power/reset/vexpress-poweroff.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/power/reset/vexpress-poweroff.c +++ b/drivers/power/reset/vexpress-poweroff.c @@ -150,6 +150,7 @@ static struct platform_driver vexpress_r .driver = { .name = "vexpress-reset", .of_match_table = vexpress_reset_of_match, + .suppress_bind_attrs = true, }, };