From: Markos Chandras <Markos.Chandras@imgtec.com>
To: Lars Persson <lars.persson@axis.com>, <linux-mips@linux-mips.org>
Cc: Lars Persson <larper@axis.com>
Subject: Re: [PATCH v2] MIPS: Fix syscall tracing interface
Date: Mon, 17 Mar 2014 14:41:02 +0000 [thread overview]
Message-ID: <5327097E.4090709@imgtec.com> (raw)
In-Reply-To: <1395054853-3465-1-git-send-email-larper@axis.com>
Hi Lars,
On 03/17/2014 11:14 AM, Lars Persson wrote:
> Fix pointer computation for stack-based arguments.
>
> Signed-off-by: Lars Persson <larper@axis.com>
> ---
> arch/mips/include/asm/syscall.h | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/mips/include/asm/syscall.h b/arch/mips/include/asm/syscall.h
> index c71e40a..6c488c8 100644
> --- a/arch/mips/include/asm/syscall.h
> +++ b/arch/mips/include/asm/syscall.h
> @@ -51,14 +51,14 @@ static inline unsigned long mips_get_syscall_arg(unsigned long *arg,
>
> #ifdef CONFIG_32BIT
> case 4: case 5: case 6: case 7:
> - return get_user(*arg, (int *)usp + 4 * n);
> + return get_user(*arg, (int *)usp + n);
> #endif
>
> #ifdef CONFIG_64BIT
> case 4: case 5: case 6: case 7:
> #ifdef CONFIG_MIPS32_O32
> if (test_thread_flag(TIF_32BIT_REGS))
> - return get_user(*arg, (int *)usp + 4 * n);
> + return get_user(*arg, (int *)usp + n);
> else
> #endif
> *arg = regs->regs[4 + n];
>
Thanks for the v2.
It looks good to me but I haven't tested it.
Reviewed-by: Markos Chandras <markos.chandras@imgtec.com>
--
markos
WARNING: multiple messages have this Message-ID (diff)
From: Markos Chandras <Markos.Chandras@imgtec.com>
To: Lars Persson <lars.persson@axis.com>, linux-mips@linux-mips.org
Cc: Lars Persson <larper@axis.com>
Subject: Re: [PATCH v2] MIPS: Fix syscall tracing interface
Date: Mon, 17 Mar 2014 14:41:02 +0000 [thread overview]
Message-ID: <5327097E.4090709@imgtec.com> (raw)
Message-ID: <20140317144102.jeFZQoj6r4wax8QE5EubMVwdfDbFXp8-PInOhiVc9n0@z> (raw)
In-Reply-To: <1395054853-3465-1-git-send-email-larper@axis.com>
Hi Lars,
On 03/17/2014 11:14 AM, Lars Persson wrote:
> Fix pointer computation for stack-based arguments.
>
> Signed-off-by: Lars Persson <larper@axis.com>
> ---
> arch/mips/include/asm/syscall.h | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/mips/include/asm/syscall.h b/arch/mips/include/asm/syscall.h
> index c71e40a..6c488c8 100644
> --- a/arch/mips/include/asm/syscall.h
> +++ b/arch/mips/include/asm/syscall.h
> @@ -51,14 +51,14 @@ static inline unsigned long mips_get_syscall_arg(unsigned long *arg,
>
> #ifdef CONFIG_32BIT
> case 4: case 5: case 6: case 7:
> - return get_user(*arg, (int *)usp + 4 * n);
> + return get_user(*arg, (int *)usp + n);
> #endif
>
> #ifdef CONFIG_64BIT
> case 4: case 5: case 6: case 7:
> #ifdef CONFIG_MIPS32_O32
> if (test_thread_flag(TIF_32BIT_REGS))
> - return get_user(*arg, (int *)usp + 4 * n);
> + return get_user(*arg, (int *)usp + n);
> else
> #endif
> *arg = regs->regs[4 + n];
>
Thanks for the v2.
It looks good to me but I haven't tested it.
Reviewed-by: Markos Chandras <markos.chandras@imgtec.com>
--
markos
next prev parent reply other threads:[~2014-03-17 14:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-17 11:14 [PATCH v2] MIPS: Fix syscall tracing interface Lars Persson
2014-03-17 14:41 ` Markos Chandras [this message]
2014-03-17 14:41 ` Markos Chandras
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5327097E.4090709@imgtec.com \
--to=markos.chandras@imgtec.com \
--cc=larper@axis.com \
--cc=lars.persson@axis.com \
--cc=linux-mips@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox