From a4a84775d6c56a7486dda5e792838d885cd49629 Mon Sep 17 00:00:00 2001 From: 4lDO2 <4lDO2@protonmail.com> Date: Wed, 26 Jul 2023 22:31:56 +0200 Subject: [PATCH] Fix MMAP_PREP order. --- src/scheme/user.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scheme/user.rs b/src/scheme/user.rs index b629106ba4..5bedfc0dfd 100644 --- a/src/scheme/user.rs +++ b/src/scheme/user.rs @@ -497,8 +497,8 @@ impl UserInner { pid: pid.into(), a: KSMSG_MMAP_PREP, b: file, - c: map.flags.bits(), - d: unaligned_size, + c: unaligned_size, + d: map.flags.bits(), // The uid and gid can be obtained by the proc scheme anyway, if the pid is provided. uid: map.offset as u32, gid: (map.offset >> 32) as u32,