<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/riscv/include/asm/set_memory.h, branch linux-5.9.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.9.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.9.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-05-06T00:02:14Z</updated>
<entry>
<title>RISC-V: Remove unused code from STRICT_KERNEL_RWX</title>
<updated>2020-05-06T00:02:14Z</updated>
<author>
<name>Atish Patra</name>
</author>
<published>2020-05-04T04:03:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=73cb8e2a5863ccc5215660f5123db621bd57dff7'/>
<id>urn:sha1:73cb8e2a5863ccc5215660f5123db621bd57dff7</id>
<content type='text'>
This patch removes the unused functions set_kernel_text_rw/ro.
Currently, it is not being invoked from anywhere and no other architecture
(except arm) uses this code. Even in ARM, these functions are not invoked
from anywhere currently.

Fixes: d27c3c90817e ("riscv: add STRICT_KERNEL_RWX support")
Signed-off-by: Atish Patra &lt;atish.patra@wdc.com&gt;
Reviewed-by: Zong Li &lt;zong.li@sifive.com&gt;
Signed-off-by: Palmer Dabbelt &lt;palmerdabbelt@google.com&gt;
</content>
</entry>
<entry>
<title>riscv: add STRICT_KERNEL_RWX support</title>
<updated>2020-03-26T16:24:45Z</updated>
<author>
<name>Zong Li</name>
</author>
<published>2020-03-09T16:55:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d27c3c90817e4c5ea655714065a725b4abd576f9'/>
<id>urn:sha1:d27c3c90817e4c5ea655714065a725b4abd576f9</id>
<content type='text'>
The commit contains that make text section as non-writable, rodata
section as read-only, and data section as non-executable.

The init section should be changed to non-executable.

Signed-off-by: Zong Li &lt;zong.li@sifive.com&gt;
Signed-off-by: Palmer Dabbelt &lt;palmerdabbelt@google.com&gt;
</content>
</entry>
<entry>
<title>riscv: add alignment for text, rodata and data sections</title>
<updated>2020-03-26T16:24:42Z</updated>
<author>
<name>Zong Li</name>
</author>
<published>2020-03-09T16:55:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=00cb41d5ad3189f52a59f42766918557693f94fa'/>
<id>urn:sha1:00cb41d5ad3189f52a59f42766918557693f94fa</id>
<content type='text'>
The kernel mapping will tried to optimize its mapping by using bigger
size. In rv64, it tries to use PMD_SIZE, and tryies to use PGDIR_SIZE in
rv32. To ensure that the start address of these sections could fit the
mapping entry size, make them align to the biggest alignment.

Define a macro SECTION_ALIGN because the HPAGE_SIZE or PMD_SIZE, etc.,
are invisible in linker script.

This patch is prepared for STRICT_KERNEL_RWX support.

Signed-off-by: Zong Li &lt;zong.li@sifive.com&gt;
Signed-off-by: Palmer Dabbelt &lt;palmerdabbelt@google.com&gt;
</content>
</entry>
<entry>
<title>riscv: add ARCH_HAS_SET_DIRECT_MAP support</title>
<updated>2020-03-26T16:24:33Z</updated>
<author>
<name>Zong Li</name>
</author>
<published>2020-03-09T16:55:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=395a21ff859c9c2471ea62d7d56af8a85ec333f7'/>
<id>urn:sha1:395a21ff859c9c2471ea62d7d56af8a85ec333f7</id>
<content type='text'>
Add set_direct_map_*() functions for setting the direct map alias for
the page to its default permissions and to an invalid state that cannot
be cached in a TLB. (See d253ca0c ("x86/mm/cpa: Add set_direct_map_*()
functions")) Add a similar implementation for RISC-V.

Signed-off-by: Zong Li &lt;zong.li@sifive.com&gt;
Signed-off-by: Palmer Dabbelt &lt;palmerdabbelt@google.com&gt;
</content>
</entry>
<entry>
<title>riscv: add ARCH_HAS_SET_MEMORY support</title>
<updated>2020-03-26T16:24:30Z</updated>
<author>
<name>Zong Li</name>
</author>
<published>2020-03-09T16:55:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d3ab332a5021235a74fd832a49c6a99404920d88'/>
<id>urn:sha1:d3ab332a5021235a74fd832a49c6a99404920d88</id>
<content type='text'>
Add set_memory_ro/rw/x/nx architecture hooks to change the page
attribution.

Use own set_memory.h rather than generic set_memory.h
(i.e. include/asm-generic/set_memory.h), because we want to add other
function prototypes here.

Signed-off-by: Zong Li &lt;zong.li@sifive.com&gt;
Signed-off-by: Palmer Dabbelt &lt;palmerdabbelt@google.com&gt;
</content>
</entry>
</feed>
