aboutsummaryrefslogtreecommitdiff
path: root/src/uapi
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-08-21 23:31:48 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-08-21 23:31:48 +0300
commit97ffab0a8472981b927d0f4e81bb72f6ecd69b86 (patch)
treec8a36352d599dc9477a6e647878d5e6191b4e98f /src/uapi
parentab011165cd440b5535d39febd8118e3e26b64b57 (diff)
downloadkmi-97ffab0a8472981b927d0f4e81bb72f6ecd69b86.tar.gz
kmi-97ffab0a8472981b927d0f4e81bb72f6ecd69b86.zip
add malloc test
Diffstat (limited to 'src/uapi')
-rw-r--r--src/uapi/dispatch.c1
-rw-r--r--src/uapi/ipc.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/uapi/dispatch.c b/src/uapi/dispatch.c
index 5e29922..ad53536 100644
--- a/src/uapi/dispatch.c
+++ b/src/uapi/dispatch.c
@@ -93,5 +93,6 @@ void handle_syscall(sys_arg_t syscall, sys_arg_t a, sys_arg_t b,
if (check_canary(t)) {
bug("Syscall %zu overwrote stack canary\n", syscall);
+ set_canary(t);
}
}
diff --git a/src/uapi/ipc.c b/src/uapi/ipc.c
index 71dae83..4a5a6d9 100644
--- a/src/uapi/ipc.c
+++ b/src/uapi/ipc.c
@@ -85,7 +85,7 @@ static inline void finalize_rpc(struct tcb *t, struct tcb *r, vm_t s)
* @return RPC stack difference that should be passed to finalize_rpc().
*/
static inline vm_t enter_rpc(struct tcb *t, struct sys_ret a,
- enum ipc_flags flags)
+ enum ipc_flags flags)
{
/* reuse current rpc stack location if we're being kicked */
vm_t rpc_stack = (is_set(flags, IPC_TAIL) &&