* set_memory_ro/set_memory_rw for ARM
@ 2014-08-21 19:18 Christian S. Perone
2014-08-21 20:05 ` Laura Abbott
0 siblings, 1 reply; 6+ messages in thread
From: Christian S. Perone @ 2014-08-21 19:18 UTC (permalink / raw)
To: linux-arm-kernel
Does anyone knows if there is any set_memory_ro()/set_memory_rw()
(from x86) equivalent for ARM ? I just want to set pages to be
read-only (even when in supervisor mode).
Thanks !
^ permalink raw reply [flat|nested] 6+ messages in thread
* set_memory_ro/set_memory_rw for ARM
2014-08-21 19:18 set_memory_ro/set_memory_rw for ARM Christian S. Perone
@ 2014-08-21 20:05 ` Laura Abbott
2014-08-21 20:12 ` Christian S. Perone
0 siblings, 1 reply; 6+ messages in thread
From: Laura Abbott @ 2014-08-21 20:05 UTC (permalink / raw)
To: linux-arm-kernel
On 8/21/2014 12:18 PM, Christian S. Perone wrote:
> Does anyone knows if there is any set_memory_ro()/set_memory_rw()
> (from x86) equivalent for ARM ? I just want to set pages to be
> read-only (even when in supervisor mode).
>
> Thanks !
>
Yes, set_memory_ro/set_memory_rw were implemented for ARM
(75374ad47 ARM: mm: Define set_memory_* functions for ARM) and should
be in v3.14. Note that these are restricted to module addresses only
since changing individual pages of generic memory is not possible
due to the section mappings used in lowmem.
Thanks,
Laura
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation
^ permalink raw reply [flat|nested] 6+ messages in thread
* set_memory_ro/set_memory_rw for ARM
2014-08-21 20:05 ` Laura Abbott
@ 2014-08-21 20:12 ` Christian S. Perone
2014-08-21 20:13 ` Christian S. Perone
0 siblings, 1 reply; 6+ messages in thread
From: Christian S. Perone @ 2014-08-21 20:12 UTC (permalink / raw)
To: linux-arm-kernel
Great thanks Laura, that was exactly what I needed.
On Thu, Aug 21, 2014 at 5:05 PM, Laura Abbott <lauraa@codeaurora.org> wrote:
> On 8/21/2014 12:18 PM, Christian S. Perone wrote:
>> Does anyone knows if there is any set_memory_ro()/set_memory_rw()
>> (from x86) equivalent for ARM ? I just want to set pages to be
>> read-only (even when in supervisor mode).
>>
>> Thanks !
>>
>
> Yes, set_memory_ro/set_memory_rw were implemented for ARM
> (75374ad47 ARM: mm: Define set_memory_* functions for ARM) and should
> be in v3.14. Note that these are restricted to module addresses only
> since changing individual pages of generic memory is not possible
> due to the section mappings used in lowmem.
>
> Thanks,
> Laura
>
> --
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
> hosted by The Linux Foundation
--
Blog | Github | Twitter
"Forgive, O Lord, my little jokes on Thee, and I'll forgive Thy great
big joke on me."
^ permalink raw reply [flat|nested] 6+ messages in thread
* set_memory_ro/set_memory_rw for ARM
2014-08-21 20:12 ` Christian S. Perone
@ 2014-08-21 20:13 ` Christian S. Perone
2014-08-21 20:21 ` Laura Abbott
0 siblings, 1 reply; 6+ messages in thread
From: Christian S. Perone @ 2014-08-21 20:13 UTC (permalink / raw)
To: linux-arm-kernel
I forgot to mention, I need for arm64, so I suppose it wasn't ported yet right ?
On Thu, Aug 21, 2014 at 5:12 PM, Christian S. Perone
<christian.perone@gmail.com> wrote:
> Great thanks Laura, that was exactly what I needed.
>
> On Thu, Aug 21, 2014 at 5:05 PM, Laura Abbott <lauraa@codeaurora.org> wrote:
>> On 8/21/2014 12:18 PM, Christian S. Perone wrote:
>>> Does anyone knows if there is any set_memory_ro()/set_memory_rw()
>>> (from x86) equivalent for ARM ? I just want to set pages to be
>>> read-only (even when in supervisor mode).
>>>
>>> Thanks !
>>>
>>
>> Yes, set_memory_ro/set_memory_rw were implemented for ARM
>> (75374ad47 ARM: mm: Define set_memory_* functions for ARM) and should
>> be in v3.14. Note that these are restricted to module addresses only
>> since changing individual pages of generic memory is not possible
>> due to the section mappings used in lowmem.
>>
>> Thanks,
>> Laura
>>
>> --
>> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
>> hosted by The Linux Foundation
>
>
>
> --
> Blog | Github | Twitter
> "Forgive, O Lord, my little jokes on Thee, and I'll forgive Thy great
> big joke on me."
--
Blog | Github | Twitter
"Forgive, O Lord, my little jokes on Thee, and I'll forgive Thy great
big joke on me."
^ permalink raw reply [flat|nested] 6+ messages in thread
* set_memory_ro/set_memory_rw for ARM
2014-08-21 20:13 ` Christian S. Perone
@ 2014-08-21 20:21 ` Laura Abbott
2014-08-21 20:24 ` Christian S. Perone
0 siblings, 1 reply; 6+ messages in thread
From: Laura Abbott @ 2014-08-21 20:21 UTC (permalink / raw)
To: linux-arm-kernel
On 8/21/2014 1:13 PM, Christian S. Perone wrote:
> I forgot to mention, I need for arm64, so I suppose it wasn't ported yet right ?
>
The patch is in progress and should be usable
http://lists.infradead.org/pipermail/linux-arm-kernel/2014-August/280459.html
Thanks,
Laura
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation
^ permalink raw reply [flat|nested] 6+ messages in thread
* set_memory_ro/set_memory_rw for ARM
2014-08-21 20:21 ` Laura Abbott
@ 2014-08-21 20:24 ` Christian S. Perone
0 siblings, 0 replies; 6+ messages in thread
From: Christian S. Perone @ 2014-08-21 20:24 UTC (permalink / raw)
To: linux-arm-kernel
Thanks again, I'll take a look.
On Thu, Aug 21, 2014 at 5:21 PM, Laura Abbott <lauraa@codeaurora.org> wrote:
> On 8/21/2014 1:13 PM, Christian S. Perone wrote:
>> I forgot to mention, I need for arm64, so I suppose it wasn't ported yet right ?
>>
>
> The patch is in progress and should be usable
> http://lists.infradead.org/pipermail/linux-arm-kernel/2014-August/280459.html
>
> Thanks,
> Laura
>
> --
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
> hosted by The Linux Foundation
--
Blog | Github | Twitter
"Forgive, O Lord, my little jokes on Thee, and I'll forgive Thy great
big joke on me."
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-08-21 20:24 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-21 19:18 set_memory_ro/set_memory_rw for ARM Christian S. Perone
2014-08-21 20:05 ` Laura Abbott
2014-08-21 20:12 ` Christian S. Perone
2014-08-21 20:13 ` Christian S. Perone
2014-08-21 20:21 ` Laura Abbott
2014-08-21 20:24 ` Christian S. Perone
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).