<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-linux/arch/csky/kernel/ptrace.c, branch jd/unified-crypt-queue</title>
<subtitle>WireGuard for the Linux kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-linux/atom/arch/csky/kernel/ptrace.c?h=jd%2Funified-crypt-queue</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-linux/atom/arch/csky/kernel/ptrace.c?h=jd%2Funified-crypt-queue'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/'/>
<updated>2020-03-08T12:55:14Z</updated>
<entry>
<title>csky: Implement ptrace regs and stack API</title>
<updated>2020-03-08T12:55:14Z</updated>
<author>
<name>Guo Ren</name>
<email>ren_guo@c-sky.com</email>
</author>
<published>2019-12-17T06:57:22Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=bfe47f358ad298a1efb9b8f8299a81541d90df87'/>
<id>urn:sha1:bfe47f358ad298a1efb9b8f8299a81541d90df87</id>
<content type='text'>
Needed for kprobes support. Copied and adapted from Patrick's patch,
but it has been modified for csky's pt_regs.

ref:
https://lore.kernel.org/linux-riscv/1572919114-3886-2-git-send-email-vincent.chen@sifive.com/raw

Signed-off-by: Guo Ren &lt;ren_guo@c-sky.com&gt;
Cc: Patrick Staehlin &lt;me@packi.ch&gt;
</content>
</entry>
<entry>
<title>csky/syscall_trace: Fixup return processing flow</title>
<updated>2019-04-22T07:55:28Z</updated>
<author>
<name>Guo Ren</name>
<email>ren_guo@c-sky.com</email>
</author>
<published>2019-04-22T06:46:44Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=a691f3334d58b833e41d56de1b9820e687edcd78'/>
<id>urn:sha1:a691f3334d58b833e41d56de1b9820e687edcd78</id>
<content type='text'>
The function tracehook_report_syscall_entry's return value is
__must_check attribute. We should add return processing flow in
ptrace.c and set the syscall number to -1 when failed just like
riscv's.

Signed-off-by: Guo Ren &lt;ren_guo@c-sky.com&gt;
Cc: Arnd Bergmann &lt;arnd@arndb.de&gt;
</content>
</entry>
<entry>
<title>csky: Update syscall_trace_enter/exit implementation</title>
<updated>2019-04-22T05:44:57Z</updated>
<author>
<name>Guo Ren</name>
<email>ren_guo@c-sky.com</email>
</author>
<published>2019-03-20T10:27:27Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=2f7932b011e7fb9f98732f95a68f6017d4d8c542'/>
<id>urn:sha1:2f7932b011e7fb9f98732f95a68f6017d4d8c542</id>
<content type='text'>
Previous syscall_trace implementation couldn't support AUDITSYSCALL and
SYSCALL_TRACEPOINTS. Now we redesign it to support audit_syscall
and syscall_tracepoints just like other archs'.

Signed-off-by: Guo Ren &lt;ren_guo@c-sky.com&gt;
Cc: Dmitry V. Levin &lt;ldv@altlinux.org&gt;
Cc: Arnd Bergmann &lt;arnd@arndb.de&gt;
</content>
</entry>
<entry>
<title>csky: Fixup wrong pt_regs size</title>
<updated>2019-02-13T01:48:14Z</updated>
<author>
<name>Guo Ren</name>
<email>ren_guo@c-sky.com</email>
</author>
<published>2019-01-24T14:16:31Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=9216cd7231c12a8c391bb2c904d13695398d3453'/>
<id>urn:sha1:9216cd7231c12a8c391bb2c904d13695398d3453</id>
<content type='text'>
The bug is from commit 2054f4af1957 ("csky: bugfix gdb coredump error.")

We change the ELF_NGREG to ELF_NGREG - 2 to fit gdb&amp;gcc define, but forgot
modify ptrace regset.
Now coredump use ELF_NRGEG to parse GPRs and ptrace use pt_regs_regset, so
there are two different reg_sets for userspace.

Signed-off-by: Guo Ren &lt;ren_guo@c-sky.com&gt;
</content>
</entry>
<entry>
<title>csky: remove unused members in processor.h</title>
<updated>2018-12-31T15:16:00Z</updated>
<author>
<name>Guo Ren</name>
<email>ren_guo@c-sky.com</email>
</author>
<published>2018-12-09T09:31:53Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=17a68777bc883c8044c8b2d40aa112ff4e8a4fb1'/>
<id>urn:sha1:17a68777bc883c8044c8b2d40aa112ff4e8a4fb1</id>
<content type='text'>
Cleanup struct cpuinfo_csky and struct thread_struct, remove all esp0
related code. We could get pt_regs from sp and backtrace could use fp
in switch_stack.

Signed-off-by: Guo Ren &lt;ren_guo@c-sky.com&gt;
</content>
</entry>
<entry>
<title>csky: optimize kernel panic print.</title>
<updated>2018-12-31T15:15:38Z</updated>
<author>
<name>Guo Ren</name>
<email>ren_guo@c-sky.com</email>
</author>
<published>2018-12-09T09:07:20Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=8f4f1639a19db231e4579612dbc6d147e8d07ffd'/>
<id>urn:sha1:8f4f1639a19db231e4579612dbc6d147e8d07ffd</id>
<content type='text'>
Use STACKTRACE to optimize panic print more pretty and align registers
printing.

Signed-off-by: Guo Ren &lt;ren_guo@c-sky.com&gt;
</content>
</entry>
<entry>
<title>csky: fixup save hi,lo,dspcr regs in switch_stack.</title>
<updated>2018-12-31T14:57:27Z</updated>
<author>
<name>Guo Ren</name>
<email>ren_guo@c-sky.com</email>
</author>
<published>2018-12-31T07:17:48Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=789154c2ad74c29c3c60c5136c1785745abe4897'/>
<id>urn:sha1:789154c2ad74c29c3c60c5136c1785745abe4897</id>
<content type='text'>
HI, LO, DSPCR registers are 807/810 related regs and no need for 610/860.
All of the regs must be saved in pt_regs and switch_stack. This patch
fixup saving dspcr reg in switch_stack and pt_regs.

Signed-off-by: Guo Ren &lt;ren_guo@c-sky.com&gt;
</content>
</entry>
<entry>
<title>csky: Debug and Ptrace GDB</title>
<updated>2018-10-25T16:54:25Z</updated>
<author>
<name>Guo Ren</name>
<email>ren_guo@c-sky.com</email>
</author>
<published>2018-09-05T06:25:19Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=2ce36bfa6a0904524baed699ad78706e50295f84'/>
<id>urn:sha1:2ce36bfa6a0904524baed699ad78706e50295f84</id>
<content type='text'>
This patch adds arch ptrace implementation, stack dump and bug.h.

Signed-off-by: Guo Ren &lt;ren_guo@c-sky.com&gt;
Reviewed-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
</content>
</entry>
</feed>
