From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796421192; b=jIj+9efnjcF64XfGIah4pEhRLgQsyfd/hvYXw/ynBXq+8jevkwlxGSg2N0Ki05BJkSUA JU4fSqPLIi1LOXlx0bspiB5ob6fVKwDk2aEHTuywT/yjSRAN9NJebbr0hZODJW72GnozZ E7zcm0pPCRJ7CE9+bgK/nnykIQE4rC/wA7zeBnzXg3SmMzELS0H3Hj3bCPOaE8jusdSVA rnCReOqP7UIUDij9+BwTyuuT6WEz3vYxFs9dZlDOB70/4IMGzoOSFhkrd3p4MUzuOrSI5 8hHXY9Slm7gprolew/19w86lUh77URY2sKkkgh/O65cXmSHTQE8a8atuwW7JwQsKGrg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796421192; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=7OFvq56Y36myxLFDHvGnRO5kdEHcjcI48ckJpRuvsWo=; b=l8bEWFaJJ/MfpjPcRZ701Z5qY+yAtwkdboFE9XlL7CpglRFC/PPOon6sawRrIVa2E2t0 buzVlmeh6olIyU8+q7X//XHyXcLRe1NMy2JtMdDFmwmrTFnCsfKDbEqglLugwvoCNyO3e swQqWoFEoJtZLh3T7GCnuOus8og2kVUm5/bQFEFT3vSeYBHvb6CAjbBkgQQZiIAYG8njN 2LWNUsBmKhgMZPj6pxmU+ATAQhWGRCmX7OrIHaF1u80HHLYDoTMbHhjVMYlXBgACCSi38 KzLV9xU8+zpM/8dDVIEfTqUQOBWkblWMnpYf4dFobTQCWwDW1KRAkmj4q0niKIDIaKA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=wBrlvIne; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D708D606A322; Fri, 4 Dec 2026 21:53:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=wBrlvIne Received: by smtp.kernel.org (Postfix) with ESMTPSA id 104A41F0093B; Fri, 4 Dec 2026 21:53:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796421192; bh=7OFvq56Y36myxLFDHvGnRO5kdEHcjcI48ckJpRuvsWo=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=wBrlvIne2QxfsPp+nHK2RBlB9L1QDvyD4atvHBQFTRNF/W/zfmxLoLBGIPpXfTE3N z7IltfYpHn98lyXE3IeZ5lSoCan4FeVF8FotDLaTJlNn5W3jF8whjKowO0kxfTE1Pe lmXIG3bORXjcTQmBdvscT6a/V9pw/2gKSWsWfWcs= Date: Sat, 5 Dec 2026 06:53:10 +0900 From: Greg Kroah-Hartman To: =?iso-8859-1?Q?Vin=EDcius?= Bruno Cc: Vaibhav Agarwal , Mark Greer , Johan Hovold , Alex Elder , greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: greybus: audio_manager_module: make module attributes read-only Message-ID: <2026120546-overrule-sermon-dd2e@gregkh> References: <20261204214707.152059-1-vinibruno.dev@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20261204214707.152059-1-vinibruno.dev@gmail.com> On Fri, Dec 04, 2026 at 06:47:07PM -0300, Vinícius Bruno wrote: > The name, vid, pid, intf_id, ip_devices and op_devices attributes are > declared with mode 0664, but none of them provides a store() callback. > > As a result, the files appear writable to their owner and group, and a > write passes the permission check only to fail with -EIO in > gb_audio_module_attr_store(), since attribute->store is NULL. > > Set the mode to 0444 so the permissions reflect that these attributes > are read-only, and writes are rejected up front with -EACCES. > > This changes the file mode shown for these attributes, but no attribute > was writable before, so no working userspace interface is lost. > > Compile-tested only with W=1; not tested on Greybus hardware. > > The commit message was drafted with the help of an AI assistant > (Claude) and reviewed by the author. Please read: https://lore.kernel.org/r/2026080354-skater-urgent-31b2@gregkh