From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
To: Gaurav Kohli <gkohli@codeaurora.org>, linux-kernel@vger.kernel.org
Cc: linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH v2] nvmem: core: Set no-read-write provider to avoid userspace read/write
Date: Wed, 20 Mar 2019 14:34:25 +0000 [thread overview]
Message-ID: <48a71861-c60b-7fe7-d4af-5269cd7c20eb@linaro.org> (raw)
In-Reply-To: <1552831940-7327-1-git-send-email-gkohli@codeaurora.org>
On 17/03/2019 14:12, Gaurav Kohli wrote:
> Current nvmem framework allows user space to read all register space
> populated by nvmem binary file, In case we don't want to expose value
> of registers to userspace and only want kernel space to read cell
> value from nvmem_cell_read_u32.
>
> To protect the same, Add no-read-write property to prevent read
> from userspace.
>
Can you explain the real need of this?
Is there any issue you are noticing while reading nvmem content from
userspace?
I don't think this is the right way to do this, its misleading in many
ways. Also this should not be a part of DT binding.
If we decide that we need this feature, then better way to do this using
a new Kernel config.
thanks,
srini
next prev parent reply other threads:[~2019-03-20 14:34 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-17 14:12 [PATCH v2] nvmem: core: Set no-read-write provider to avoid userspace read/write Gaurav Kohli
2019-03-20 14:34 ` Srinivas Kandagatla [this message]
2019-03-20 15:50 ` Gaurav Kohli
2019-03-20 16:26 ` Srinivas Kandagatla
2019-03-20 17:50 ` Gaurav Kohli
2019-03-21 13:14 ` Marc Gonzalez
2019-03-22 15:02 ` Srinivas Kandagatla
2019-03-22 18:12 ` Gaurav Kohli
2019-03-25 6:15 ` Gaurav Kohli
2019-04-01 4:52 ` Gaurav Kohli
2019-04-02 7:35 ` Niklas Cassel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48a71861-c60b-7fe7-d4af-5269cd7c20eb@linaro.org \
--to=srinivas.kandagatla@linaro.org \
--cc=gkohli@codeaurora.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.