From patchwork Fri Jun 19 14:33:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 191261 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp694341ilo; Fri, 19 Jun 2020 09:42:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRYTa9IpDP9U4+JAijhoU31cwn3qsdMVnntmti/rhooDDW7cOQAniTGeIJxwheNyDk2acN X-Received: by 2002:a17:906:2e1a:: with SMTP id n26mr4334196eji.425.1592584966106; Fri, 19 Jun 2020 09:42:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592584966; cv=none; d=google.com; s=arc-20160816; b=YMmvs/vOsEZbLLSbU1An0Xjr0rPHQ32NE8UjP7CSvrHShA9ZyMe6kPPJJr0MFg9x+t G29Hd+whmX3tdwBLDm94Rz+l1zFjFi0/5i/ZcrXrwZTBcz45mAwvb9QGRSqFjX+seEUO ztNmGDRGlF8ywesohT5x9A4rkY3cqzOf5/cIMhbX54h5qGMttyfKQ89VO2zk2r/ViQ/X nXgjapY23E0u+gyw9Z/QkX/wVZkY0Iq70HilJKjgxfAHzZP+EpsDWut8kAamWSmFjSfP dYWLSST2KAYR+HaLjj32go811eRaLHXYvxyvKDlfLxVPIbMBiL2ujYTTXsPbM99BbBnI OlxQ== 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=yQKxaB6Xr0kKxiuOTVjTeeIpCl2l1mxa2EXnxI+DLd/tXF5Cvg4ZNGDsDJJFz11ecn sUqjGJiZjKUb7YT/tiWKiUlOeorh7QxiTzUCI8/4sbtq3Z6Gu2nB8ALE+ywFAFAKyGJ1 b29KCGKTeinRuBJEWWwpbP2iRWo8zyU/fLyN9TdD+BUCAfYvdcICARbFt0xiSupVugHj wU8PAuCf62YrNtHzg61X19kVQ6XRlTrQTrbWpnmZ3tyi2koYDi49ANdbKR9hB+xw1zMV CDJRv8s9c+LASbulV60fwaxuTcT0LQz21dR5zc8H7F04SU6MojyiOgCmuSExFUS10Pyg bgyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gxFkBOlV; 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 b6si4265158edy.452.2020.06.19.09.42.45; Fri, 19 Jun 2020 09:42:46 -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=gxFkBOlV; 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 S2388523AbgFSOoL (ORCPT + 15 others); Fri, 19 Jun 2020 10:44:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:35422 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388537AbgFSOoK (ORCPT ); Fri, 19 Jun 2020 10:44:10 -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 BDECD2168B; Fri, 19 Jun 2020 14:44:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592577850; bh=4JFtDNHFFW5pg3sH6TQO9VaAPDJzQon9y+GOPrV4sBw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gxFkBOlV18//lQoAgtHzg91rc7XBOyRwW6YFl+gPDBkQLRHN0JIsqpnJAWOdYKbs/ aScuqPK7Ol567+FsBoQaK7SOdBOr2g5AbJA8j8w3u374e/brDKnzdh6DluECfX8nVr AeJXrAzPQ3Ub/dV0G3/AKUxeiZO/Q/f5x4gSte5s= 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.9 114/128] power: vexpress: add suppress_bind_attrs to true Date: Fri, 19 Jun 2020 16:33:28 +0200 Message-Id: <20200619141626.163662700@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200619141620.148019466@linuxfoundation.org> References: <20200619141620.148019466@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, }, };