<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/powerpc/kernel/entry_32.S, branch linux-5.8.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.8.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.8.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-06-02T10:59:13Z</updated>
<entry>
<title>powerpc/entry32: Blacklist exception exit points for kprobe.</title>
<updated>2020-06-02T10:59:13Z</updated>
<author>
<name>Christophe Leroy</name>
</author>
<published>2020-03-31T16:03:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e51c3e13709fe55d4d0eb50ba435bc53a64152bf'/>
<id>urn:sha1:e51c3e13709fe55d4d0eb50ba435bc53a64152bf</id>
<content type='text'>
kprobe does not handle events happening in real mode.

The very last part of exception exits cannot support a trap.
Blacklist them from kprobe.

While we are at it, remove exc_exit_start symbol which is not
used to avoid having to blacklist it.

Signed-off-by: Christophe Leroy &lt;christophe.leroy@c-s.fr&gt;
Acked-by: Naveen N. Rao &lt;naveen.n.rao@linux.vnet.ibm.com&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://lore.kernel.org/r/098b0fd3f6299aa1bd692bd576bd7012c84608de.1585670437.git.christophe.leroy@c-s.fr
</content>
</entry>
<entry>
<title>powerpc/entry32: Blacklist syscall exit points for kprobe.</title>
<updated>2020-06-02T10:59:12Z</updated>
<author>
<name>Christophe Leroy</name>
</author>
<published>2020-03-31T16:03:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7cdf4401388572f720403a7038a178a4b30ac14c'/>
<id>urn:sha1:7cdf4401388572f720403a7038a178a4b30ac14c</id>
<content type='text'>
kprobe does not handle events happening in real mode.

The very last part of syscall cannot support a trap.
Add a symbol syscall_exit_finish to identify that part and
blacklist it from kprobe.

Signed-off-by: Christophe Leroy &lt;christophe.leroy@c-s.fr&gt;
Acked-by: Naveen N. Rao &lt;naveen.n.rao@linux.vnet.ibm.com&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://lore.kernel.org/r/23eddf49abb03d1359fa0be4206998eb3800f42c.1585670437.git.christophe.leroy@c-s.fr
</content>
</entry>
<entry>
<title>powerpc/entry32: Blacklist exception entry points for kprobe.</title>
<updated>2020-06-02T10:59:12Z</updated>
<author>
<name>Christophe Leroy</name>
</author>
<published>2020-03-31T16:03:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a616c442119f2ea5641e6abc215d7255b73b982b'/>
<id>urn:sha1:a616c442119f2ea5641e6abc215d7255b73b982b</id>
<content type='text'>
kprobe does not handle events happening in real mode.

As exception entry points are running with MMU disabled,
blacklist them.

The handling of TLF_NAPPING and TLF_SLEEPING is moved before the
CONFIG_TRACE_IRQFLAGS which contains 'reenable_mmu' because from there
kprobe will be possible as the kernel will run with MMU enabled.

Signed-off-by: Christophe Leroy &lt;christophe.leroy@c-s.fr&gt;
Acked-by: Naveen N. Rao &lt;naveen.n.rao@linux.vnet.ibm.com&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://lore.kernel.org/r/f61ac599855e674ebb592464d0ea32a3ba9c6644.1585670437.git.christophe.leroy@c-s.fr
</content>
</entry>
<entry>
<title>powerpc/32: Blacklist functions running with MMU disabled for kprobe</title>
<updated>2020-06-02T10:59:11Z</updated>
<author>
<name>Christophe Leroy</name>
</author>
<published>2020-03-31T16:03:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5f32e8361cba8c58c4f272a389296f489ecc2823'/>
<id>urn:sha1:5f32e8361cba8c58c4f272a389296f489ecc2823</id>
<content type='text'>
kprobe does not handle events happening in real mode, all
functions running with MMU disabled have to be blacklisted.

Signed-off-by: Christophe Leroy &lt;christophe.leroy@c-s.fr&gt;
Acked-by: Naveen N. Rao &lt;naveen.n.rao@linux.vnet.ibm.com&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://lore.kernel.org/r/3bf57066d05518644dee0840af69d36ab5086729.1585670437.git.christophe.leroy@c-s.fr
</content>
</entry>
<entry>
<title>powerpc/rtas: Remove machine_check_in_rtas()</title>
<updated>2020-06-02T10:59:11Z</updated>
<author>
<name>Christophe Leroy</name>
</author>
<published>2020-03-31T16:03:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=32746dfe4cf37f4077929601e8877a7fd02676e8'/>
<id>urn:sha1:32746dfe4cf37f4077929601e8877a7fd02676e8</id>
<content type='text'>
machine_check_in_rtas() is just a trap.

Do the trap directly in the machine check exception handler.

Signed-off-by: Christophe Leroy &lt;christophe.leroy@c-s.fr&gt;
Acked-by: Naveen N. Rao &lt;naveen.n.rao@linux.vnet.ibm.com&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://lore.kernel.org/r/78899f40f89cb3c4f69bdff7f04eb6ec7cb753d5.1585670437.git.christophe.leroy@c-s.fr
</content>
</entry>
<entry>
<title>powerpc: Remove IBM405 Erratum #77</title>
<updated>2020-05-28T13:24:36Z</updated>
<author>
<name>Christophe Leroy</name>
</author>
<published>2020-05-21T16:56:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=455531e9d88048c025ff9099796413df748d92b9'/>
<id>urn:sha1:455531e9d88048c025ff9099796413df748d92b9</id>
<content type='text'>
This erratum is dedicated to IBM 405GP and STB03xxx
which are now gone.

Remove this erratum.

Signed-off-by: Christophe Leroy &lt;christophe.leroy@c-s.fr&gt;
Signed-off-by: Christophe Leroy &lt;christophe.leroy@csgroup.eu&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://lore.kernel.org/r/44dbc08e9034681eb28324cbabc086e97044c36c.1590079969.git.christophe.leroy@csgroup.eu
</content>
</entry>
<entry>
<title>powerpc/mm: Fix CONFIG_PPC_KUAP_DEBUG on PPC32</title>
<updated>2020-04-22T10:24:02Z</updated>
<author>
<name>Christophe Leroy</name>
</author>
<published>2020-04-17T11:58:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=feb8e960d780e170e992a70491eec9dd68f4dbf2'/>
<id>urn:sha1:feb8e960d780e170e992a70491eec9dd68f4dbf2</id>
<content type='text'>
CONFIG_PPC_KUAP_DEBUG is not selectable because it depends on PPC_32
which doesn't exists.

Fixing it leads to a deadlock due to a vital register getting
clobbered in _switch().

Change dependency to PPC32 and use r0 instead of r4 in _switch()

Fixes: e2fb9f544431 ("powerpc/32: Prepare for Kernel Userspace Access Protection")
Cc: stable@vger.kernel.org # v5.2+
Signed-off-by: Christophe Leroy &lt;christophe.leroy@c-s.fr&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://lore.kernel.org/r/540242f7d4573f7cdf1b3bf46bb35f743b2cd68f.1587124651.git.christophe.leroy@c-s.fr
</content>
</entry>
<entry>
<title>Merge branch 'fixes' into next</title>
<updated>2020-03-10T04:16:42Z</updated>
<author>
<name>Michael Ellerman</name>
</author>
<published>2020-03-10T04:16:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=819723a8a2fb66678fe15d177ae56af38163f364'/>
<id>urn:sha1:819723a8a2fb66678fe15d177ae56af38163f364</id>
<content type='text'>
Merge in our fixes branch. In particular we want to merge the TM and KUAP fixes,
so we can add selftests for them in next.
</content>
</entry>
<entry>
<title>powerpc/32: don't restore r0, r6-r8 on exception entry path after trace_hardirqs_off()</title>
<updated>2020-02-25T23:34:40Z</updated>
<author>
<name>Christophe Leroy</name>
</author>
<published>2020-01-07T09:16:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=05642cf7289c5562e5939d2ee8a0529d310010b8'/>
<id>urn:sha1:05642cf7289c5562e5939d2ee8a0529d310010b8</id>
<content type='text'>
Since commit b86fb88855ea ("powerpc/32: implement fast entry for
syscalls on non BOOKE") and commit 1a4b739bbb4f ("powerpc/32:
implement fast entry for syscalls on BOOKE"), syscalls don't
use the exception entry path anymore. It is therefore pointless
to restore r0 and r6-r8 after calling trace_hardirqs_off().

In the meantime, drop the '2:' label which is unused and misleading.

Signed-off-by: Christophe Leroy &lt;christophe.leroy@c-s.fr&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://lore.kernel.org/r/d2c6dc65d27e83964eb05f16a126161ab6455eea.1578388585.git.christophe.leroy@c-s.fr
</content>
</entry>
<entry>
<title>powerpc/32: Warn and return ENOSYS on syscalls from kernel</title>
<updated>2020-02-19T11:46:08Z</updated>
<author>
<name>Christophe Leroy</name>
</author>
<published>2020-01-31T11:34:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9e27086292aa880921a0f2b8501e5189d5efcf03'/>
<id>urn:sha1:9e27086292aa880921a0f2b8501e5189d5efcf03</id>
<content type='text'>
Since commit b86fb88855ea ("powerpc/32: implement fast entry for
syscalls on non BOOKE") and commit 1a4b739bbb4f ("powerpc/32:
implement fast entry for syscalls on BOOKE"), syscalls from
kernel are unexpected and can have catastrophic consequences
as it will destroy the kernel stack.

Test MSR_PR on syscall entry. In case syscall is from kernel,
emit a warning and return ENOSYS error.

Signed-off-by: Christophe Leroy &lt;christophe.leroy@c-s.fr&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://lore.kernel.org/r/8ee3bdbbdfdfc64ca7001e90c43b2aee6f333578.1580470482.git.christophe.leroy@c-s.fr
</content>
</entry>
</feed>
