public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* Question about PTE_CONT in linux_4.10
@ 2017-02-13  8:04 Wangxuefeng (E)
  2017-02-13  8:13 ` Ard Biesheuvel
  2017-02-14 18:13 ` Mark Rutland
  0 siblings, 2 replies; 3+ messages in thread
From: Wangxuefeng (E) @ 2017-02-13  8:04 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Jeremy,

	I has a question about change access permission(X-executable) in linux_4.10 when continuous bit enable.
	In linux_4.10, the memories allocated by kmalloc are always set PTE_PXN and PTE_CONT. When I need change the access permission of the kmalloc area to make it has executable permission(clear PXN), what interface can I use?
    The set_memory_x only change the PTE_PXN, but it doesn't change continuous bit. If only a 4K page change the permission, TLB conflict will happen. Is there any other interface can change the permission?

Thanks,
Xuefeng
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-02-14 18:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-13  8:04 Question about PTE_CONT in linux_4.10 Wangxuefeng (E)
2017-02-13  8:13 ` Ard Biesheuvel
2017-02-14 18:13 ` Mark Rutland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox