linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/5] x86: ia32_signal: cleanup macro COPY
@ 2008-11-15  3:24 Hiroshi Shimamoto
  2008-11-15  3:26 ` [PATCH 2/5] x86: ia32_signal: introduce COPY_SEG_STRICT Hiroshi Shimamoto
                   ` (5 more replies)
  0 siblings, 6 replies; 22+ messages in thread
From: Hiroshi Shimamoto @ 2008-11-15  3:24 UTC (permalink / raw)
  To: Ingo Molnar, Thomas Gleixner, H. Peter Anvin; +Cc: linux-kernel

From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>

Impact: cleanup

No need to use temporary variable in this case.

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
---
 arch/x86/ia32/ia32_signal.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/arch/x86/ia32/ia32_signal.c b/arch/x86/ia32/ia32_signal.c
index e886907..a28790a 100644
--- a/arch/x86/ia32/ia32_signal.c
+++ b/arch/x86/ia32/ia32_signal.c
@@ -197,10 +197,8 @@ struct rt_sigframe
 	/* fp state follows here */
 };
 
-#define COPY(x)		{ 		\
-	unsigned int reg;		\
-	err |= __get_user(reg, &sc->x);	\
-	regs->x = reg;			\
+#define COPY(x)			{		\
+	err |= __get_user(regs->x, &sc->x);	\
 }
 
 #define RELOAD_SEG(seg,mask)						\
-- 
1.5.6


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [PATCH 2/5] x86: ia32_signal: introduce COPY_SEG_STRICT
  2008-11-15  3:24 [PATCH 1/5] x86: ia32_signal: cleanup macro COPY Hiroshi Shimamoto
@ 2008-11-15  3:26 ` Hiroshi Shimamoto
  2008-11-15 17:11   ` Américo Wang
  2008-11-15  3:27 ` [PATCH 3/5] x86: ia32_signal: cleanup macro RELOAD_SEG Hiroshi Shimamoto
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 22+ messages in thread
From: Hiroshi Shimamoto @ 2008-11-15  3:26 UTC (permalink / raw)
  To: Ingo Molnar, Thomas Gleixner, H. Peter Anvin; +Cc: linux-kernel

From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>

Impact: cleanup

Introduce COPY_SEG_STRICT for ia32_restore_sigcontext().

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
---
 arch/x86/ia32/ia32_signal.c |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/arch/x86/ia32/ia32_signal.c b/arch/x86/ia32/ia32_signal.c
index a28790a..f74178e 100644
--- a/arch/x86/ia32/ia32_signal.c
+++ b/arch/x86/ia32/ia32_signal.c
@@ -201,6 +201,12 @@ struct rt_sigframe
 	err |= __get_user(regs->x, &sc->x);	\
 }
 
+#define COPY_SEG_STRICT(seg)	{			\
+		unsigned short tmp;			\
+		err |= __get_user(tmp, &sc->seg);	\
+		regs->seg = tmp | 3;			\
+}
+
 #define RELOAD_SEG(seg,mask)						\
 	{ unsigned int cur;						\
 	  unsigned short pre;						\
@@ -246,10 +252,8 @@ static int ia32_restore_sigcontext(struct pt_regs *regs,
 	COPY(dx); COPY(cx); COPY(ip);
 	/* Don't touch extended registers */
 
-	err |= __get_user(regs->cs, &sc->cs);
-	regs->cs |= 3;
-	err |= __get_user(regs->ss, &sc->ss);
-	regs->ss |= 3;
+	COPY_SEG_STRICT(cs);
+	COPY_SEG_STRICT(ss);
 
 	err |= __get_user(tmpflags, &sc->flags);
 	regs->flags = (regs->flags & ~FIX_EFLAGS) | (tmpflags & FIX_EFLAGS);
-- 
1.5.6


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [PATCH 3/5] x86: ia32_signal: cleanup macro RELOAD_SEG
  2008-11-15  3:24 [PATCH 1/5] x86: ia32_signal: cleanup macro COPY Hiroshi Shimamoto
  2008-11-15  3:26 ` [PATCH 2/5] x86: ia32_signal: introduce COPY_SEG_STRICT Hiroshi Shimamoto
@ 2008-11-15  3:27 ` Hiroshi Shimamoto
  2008-11-15 17:15   ` Américo Wang
  2008-11-15  3:28 ` [PATCH 4/5] x86: ia32_signal: remove using temporary variable Hiroshi Shimamoto
                   ` (3 subsequent siblings)
  5 siblings, 1 reply; 22+ messages in thread
From: Hiroshi Shimamoto @ 2008-11-15  3:27 UTC (permalink / raw)
  To: Ingo Molnar, Thomas Gleixner, H. Peter Anvin; +Cc: linux-kernel

From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>

Impact: cleanup

Remove mask parameter because it's always 3.

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
---
 arch/x86/ia32/ia32_signal.c |   21 +++++++++++----------
 1 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/arch/x86/ia32/ia32_signal.c b/arch/x86/ia32/ia32_signal.c
index f74178e..0b7fcf6 100644
--- a/arch/x86/ia32/ia32_signal.c
+++ b/arch/x86/ia32/ia32_signal.c
@@ -207,13 +207,14 @@ struct rt_sigframe
 		regs->seg = tmp | 3;			\
 }
 
-#define RELOAD_SEG(seg,mask)						\
-	{ unsigned int cur;						\
-	  unsigned short pre;						\
-	  err |= __get_user(pre, &sc->seg);				\
-	  savesegment(seg, cur);					\
-	  pre |= mask;							\
-	  if (pre != cur) loadsegment(seg, pre); }
+#define RELOAD_SEG(seg)		{		\
+	unsigned int cur, pre;			\
+	err |= __get_user(pre, &sc->seg);	\
+	savesegment(seg, cur);			\
+	pre |= 3;				\
+	if (pre != cur)				\
+		loadsegment(seg, pre);		\
+}
 
 static int ia32_restore_sigcontext(struct pt_regs *regs,
 				   struct sigcontext_ia32 __user *sc,
@@ -244,9 +245,9 @@ static int ia32_restore_sigcontext(struct pt_regs *regs,
 	if (gs != oldgs)
 		load_gs_index(gs);
 
-	RELOAD_SEG(fs, 3);
-	RELOAD_SEG(ds, 3);
-	RELOAD_SEG(es, 3);
+	RELOAD_SEG(fs);
+	RELOAD_SEG(ds);
+	RELOAD_SEG(es);
 
 	COPY(di); COPY(si); COPY(bp); COPY(sp); COPY(bx);
 	COPY(dx); COPY(cx); COPY(ip);
-- 
1.5.6


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [PATCH 4/5] x86: ia32_signal: remove using temporary variable
  2008-11-15  3:24 [PATCH 1/5] x86: ia32_signal: cleanup macro COPY Hiroshi Shimamoto
  2008-11-15  3:26 ` [PATCH 2/5] x86: ia32_signal: introduce COPY_SEG_STRICT Hiroshi Shimamoto
  2008-11-15  3:27 ` [PATCH 3/5] x86: ia32_signal: cleanup macro RELOAD_SEG Hiroshi Shimamoto
@ 2008-11-15  3:28 ` Hiroshi Shimamoto
  2008-11-15 17:22   ` Américo Wang
  2008-11-15  3:28 ` [PATCH 5/5] x86: ia32_signal: change order of storing in setup_sigcontext() Hiroshi Shimamoto
                   ` (2 subsequent siblings)
  5 siblings, 1 reply; 22+ messages in thread
From: Hiroshi Shimamoto @ 2008-11-15  3:28 UTC (permalink / raw)
  To: Ingo Molnar, Thomas Gleixner, H. Peter Anvin; +Cc: linux-kernel

From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>

Impact: cleanup

No need to use temporary variable.
Also rename the variable same as kernel/signal_32.c.

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
---
 arch/x86/ia32/ia32_signal.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/arch/x86/ia32/ia32_signal.c b/arch/x86/ia32/ia32_signal.c
index 0b7fcf6..2883f41 100644
--- a/arch/x86/ia32/ia32_signal.c
+++ b/arch/x86/ia32/ia32_signal.c
@@ -218,7 +218,7 @@ struct rt_sigframe
 
 static int ia32_restore_sigcontext(struct pt_regs *regs,
 				   struct sigcontext_ia32 __user *sc,
-				   unsigned int *peax)
+				   unsigned int *pax)
 {
 	unsigned int tmpflags, gs, oldgs, err = 0;
 	void __user *buf;
@@ -265,9 +265,7 @@ static int ia32_restore_sigcontext(struct pt_regs *regs,
 	buf = compat_ptr(tmp);
 	err |= restore_i387_xstate_ia32(buf);
 
-	err |= __get_user(tmp, &sc->ax);
-	*peax = tmp;
-
+	err |= __get_user(*pax, &sc->ax);
 	return err;
 }
 
-- 
1.5.6


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [PATCH 5/5] x86: ia32_signal: change order of storing in setup_sigcontext()
  2008-11-15  3:24 [PATCH 1/5] x86: ia32_signal: cleanup macro COPY Hiroshi Shimamoto
                   ` (2 preceding siblings ...)
  2008-11-15  3:28 ` [PATCH 4/5] x86: ia32_signal: remove using temporary variable Hiroshi Shimamoto
@ 2008-11-15  3:28 ` Hiroshi Shimamoto
  2008-11-15 17:25   ` Américo Wang
  2008-11-15 17:06 ` [PATCH 1/5] x86: ia32_signal: cleanup macro COPY Américo Wang
  2008-11-17 23:44 ` [PATCH v2 " Hiroshi Shimamoto
  5 siblings, 1 reply; 22+ messages in thread
From: Hiroshi Shimamoto @ 2008-11-15  3:28 UTC (permalink / raw)
  To: Ingo Molnar, Thomas Gleixner, H. Peter Anvin; +Cc: linux-kernel

From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>

Impact: cleanup

Change order of storing to match the sigcontext_ia32.

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
---
 arch/x86/ia32/ia32_signal.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/ia32/ia32_signal.c b/arch/x86/ia32/ia32_signal.c
index 2883f41..909181a 100644
--- a/arch/x86/ia32/ia32_signal.c
+++ b/arch/x86/ia32/ia32_signal.c
@@ -360,13 +360,13 @@ static int ia32_setup_sigcontext(struct sigcontext_ia32 __user *sc,
 	err |= __put_user(regs->dx, &sc->dx);
 	err |= __put_user(regs->cx, &sc->cx);
 	err |= __put_user(regs->ax, &sc->ax);
-	err |= __put_user(regs->cs, &sc->cs);
-	err |= __put_user(regs->ss, &sc->ss);
 	err |= __put_user(current->thread.trap_no, &sc->trapno);
 	err |= __put_user(current->thread.error_code, &sc->err);
 	err |= __put_user(regs->ip, &sc->ip);
+	err |= __put_user(regs->cs, (unsigned int __user *)&sc->cs);
 	err |= __put_user(regs->flags, &sc->flags);
 	err |= __put_user(regs->sp, &sc->sp_at_signal);
+	err |= __put_user(regs->ss, (unsigned int __user *)&sc->ss);
 
 	err |= __put_user(ptr_to_compat(fpstate), &sc->fpstate);
 
-- 
1.5.6


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* Re: [PATCH 1/5] x86: ia32_signal: cleanup macro COPY
  2008-11-15  3:24 [PATCH 1/5] x86: ia32_signal: cleanup macro COPY Hiroshi Shimamoto
                   ` (3 preceding siblings ...)
  2008-11-15  3:28 ` [PATCH 5/5] x86: ia32_signal: change order of storing in setup_sigcontext() Hiroshi Shimamoto
@ 2008-11-15 17:06 ` Américo Wang
  2008-11-17 17:57   ` Hiroshi Shimamoto
  2008-11-17 23:44 ` [PATCH v2 " Hiroshi Shimamoto
  5 siblings, 1 reply; 22+ messages in thread
From: Américo Wang @ 2008-11-15 17:06 UTC (permalink / raw)
  To: Hiroshi Shimamoto
  Cc: Ingo Molnar, Thomas Gleixner, H. Peter Anvin, linux-kernel

On Sat, Nov 15, 2008 at 3:24 AM, Hiroshi Shimamoto
<h-shimamoto@ct.jp.nec.com> wrote:
> From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
>
> Impact: cleanup
>
> No need to use temporary variable in this case.
>
> Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
> ---
>  arch/x86/ia32/ia32_signal.c |    6 ++----
>  1 files changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/arch/x86/ia32/ia32_signal.c b/arch/x86/ia32/ia32_signal.c
> index e886907..a28790a 100644
> --- a/arch/x86/ia32/ia32_signal.c
> +++ b/arch/x86/ia32/ia32_signal.c
> @@ -197,10 +197,8 @@ struct rt_sigframe
>        /* fp state follows here */
>  };
>
> -#define COPY(x)                {               \
> -       unsigned int reg;               \
> -       err |= __get_user(reg, &sc->x); \
> -       regs->x = reg;                  \
> +#define COPY(x)                        {               \
> +       err |= __get_user(regs->x, &sc->x);     \
>  }

Then you can also kill the braces now. :)

What's more, if I saw it correctly, the belowing two __get_user() calls can
also be replaced by COPY().

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH 2/5] x86: ia32_signal: introduce COPY_SEG_STRICT
  2008-11-15  3:26 ` [PATCH 2/5] x86: ia32_signal: introduce COPY_SEG_STRICT Hiroshi Shimamoto
@ 2008-11-15 17:11   ` Américo Wang
  2008-11-17 18:03     ` Hiroshi Shimamoto
  0 siblings, 1 reply; 22+ messages in thread
From: Américo Wang @ 2008-11-15 17:11 UTC (permalink / raw)
  To: Hiroshi Shimamoto
  Cc: Ingo Molnar, Thomas Gleixner, H. Peter Anvin, linux-kernel

On Sat, Nov 15, 2008 at 3:26 AM, Hiroshi Shimamoto
<h-shimamoto@ct.jp.nec.com> wrote:
> From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
>
> Impact: cleanup
>
> Introduce COPY_SEG_STRICT for ia32_restore_sigcontext().
>
> Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
> ---
>  arch/x86/ia32/ia32_signal.c |   12 ++++++++----
>  1 files changed, 8 insertions(+), 4 deletions(-)
>
> diff --git a/arch/x86/ia32/ia32_signal.c b/arch/x86/ia32/ia32_signal.c
> index a28790a..f74178e 100644
> --- a/arch/x86/ia32/ia32_signal.c
> +++ b/arch/x86/ia32/ia32_signal.c
> @@ -201,6 +201,12 @@ struct rt_sigframe
>        err |= __get_user(regs->x, &sc->x);     \
>  }
>
> +#define COPY_SEG_STRICT(seg)   {                       \
> +               unsigned short tmp;                     \
> +               err |= __get_user(tmp, &sc->seg);       \
> +               regs->seg = tmp | 3;                    \
> +}
> +

Since your first patch is to kill the temporary variables, then why do you
introduce a temporary variable here? It can be avoided like it was.

Can you explain the reason? :)

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH 3/5] x86: ia32_signal: cleanup macro RELOAD_SEG
  2008-11-15  3:27 ` [PATCH 3/5] x86: ia32_signal: cleanup macro RELOAD_SEG Hiroshi Shimamoto
@ 2008-11-15 17:15   ` Américo Wang
  0 siblings, 0 replies; 22+ messages in thread
From: Américo Wang @ 2008-11-15 17:15 UTC (permalink / raw)
  To: Hiroshi Shimamoto
  Cc: Ingo Molnar, Thomas Gleixner, H. Peter Anvin, linux-kernel

On Sat, Nov 15, 2008 at 3:27 AM, Hiroshi Shimamoto
<h-shimamoto@ct.jp.nec.com> wrote:
> From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
>
> Impact: cleanup
>
> Remove mask parameter because it's always 3.


It also contains some style cleanups. :)

>
> Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>

If you need, you can add:

Reviewed-by: WANG Cong <wangcong@zeuux.org>

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH 4/5] x86: ia32_signal: remove using temporary variable
  2008-11-15  3:28 ` [PATCH 4/5] x86: ia32_signal: remove using temporary variable Hiroshi Shimamoto
@ 2008-11-15 17:22   ` Américo Wang
  2008-11-17 18:09     ` Hiroshi Shimamoto
  0 siblings, 1 reply; 22+ messages in thread
From: Américo Wang @ 2008-11-15 17:22 UTC (permalink / raw)
  To: Hiroshi Shimamoto
  Cc: Ingo Molnar, Thomas Gleixner, H. Peter Anvin, linux-kernel

On Sat, Nov 15, 2008 at 3:28 AM, Hiroshi Shimamoto
<h-shimamoto@ct.jp.nec.com> wrote:
> From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
>
> Impact: cleanup
>
> No need to use temporary variable.
> Also rename the variable same as kernel/signal_32.c.


I think you mean arch/x86/kernel/signal_32.c, of course. :-)

>
> Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>

Reviewed-by: WANG Cong <wangcong@zeuux.org>

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH 5/5] x86: ia32_signal: change order of storing in setup_sigcontext()
  2008-11-15  3:28 ` [PATCH 5/5] x86: ia32_signal: change order of storing in setup_sigcontext() Hiroshi Shimamoto
@ 2008-11-15 17:25   ` Américo Wang
  2008-11-17 18:20     ` Hiroshi Shimamoto
  0 siblings, 1 reply; 22+ messages in thread
From: Américo Wang @ 2008-11-15 17:25 UTC (permalink / raw)
  To: Hiroshi Shimamoto
  Cc: Ingo Molnar, Thomas Gleixner, H. Peter Anvin, linux-kernel

On Sat, Nov 15, 2008 at 3:28 AM, Hiroshi Shimamoto
<h-shimamoto@ct.jp.nec.com> wrote:
> From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
>
> Impact: cleanup
>
> Change order of storing to match the sigcontext_ia32.


Well, more than reordering... Please see below.

>
> Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
> ---
>  arch/x86/ia32/ia32_signal.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/x86/ia32/ia32_signal.c b/arch/x86/ia32/ia32_signal.c
> index 2883f41..909181a 100644
> --- a/arch/x86/ia32/ia32_signal.c
> +++ b/arch/x86/ia32/ia32_signal.c
> @@ -360,13 +360,13 @@ static int ia32_setup_sigcontext(struct sigcontext_ia32 __user *sc,
>        err |= __put_user(regs->dx, &sc->dx);
>        err |= __put_user(regs->cx, &sc->cx);
>        err |= __put_user(regs->ax, &sc->ax);
> -       err |= __put_user(regs->cs, &sc->cs);
> -       err |= __put_user(regs->ss, &sc->ss);
>        err |= __put_user(current->thread.trap_no, &sc->trapno);
>        err |= __put_user(current->thread.error_code, &sc->err);
>        err |= __put_user(regs->ip, &sc->ip);
> +       err |= __put_user(regs->cs, (unsigned int __user *)&sc->cs);
>        err |= __put_user(regs->flags, &sc->flags);
>        err |= __put_user(regs->sp, &sc->sp_at_signal);
> +       err |= __put_user(regs->ss, (unsigned int __user *)&sc->ss);


Why do you add two casts? If these two are necessary, I am afraid the rest ones
also need. :)

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH 1/5] x86: ia32_signal: cleanup macro COPY
  2008-11-15 17:06 ` [PATCH 1/5] x86: ia32_signal: cleanup macro COPY Américo Wang
@ 2008-11-17 17:57   ` Hiroshi Shimamoto
  0 siblings, 0 replies; 22+ messages in thread
From: Hiroshi Shimamoto @ 2008-11-17 17:57 UTC (permalink / raw)
  To: Américo Wang
  Cc: Ingo Molnar, Thomas Gleixner, H. Peter Anvin, linux-kernel

Américo Wang wrote:
> On Sat, Nov 15, 2008 at 3:24 AM, Hiroshi Shimamoto
> <h-shimamoto@ct.jp.nec.com> wrote:
>> From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
>>
>> Impact: cleanup
>>
>> No need to use temporary variable in this case.
>>
>> Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
>> ---
>>  arch/x86/ia32/ia32_signal.c |    6 ++----
>>  1 files changed, 2 insertions(+), 4 deletions(-)
>>
>> diff --git a/arch/x86/ia32/ia32_signal.c b/arch/x86/ia32/ia32_signal.c
>> index e886907..a28790a 100644
>> --- a/arch/x86/ia32/ia32_signal.c
>> +++ b/arch/x86/ia32/ia32_signal.c
>> @@ -197,10 +197,8 @@ struct rt_sigframe
>>        /* fp state follows here */
>>  };
>>
>> -#define COPY(x)                {               \
>> -       unsigned int reg;               \
>> -       err |= __get_user(reg, &sc->x); \
>> -       regs->x = reg;                  \
>> +#define COPY(x)                        {               \
>> +       err |= __get_user(regs->x, &sc->x);     \
>>  }

Thanks for reviewing this!

> 
> Then you can also kill the braces now. :)

I guess, checkpatch will complain. Personally I don't care.

> 
> What's more, if I saw it correctly, the belowing two __get_user() calls can
> also be replaced by COPY().

I'm sorry, I cannot catch about this. Which __get_user()?

thanks,
Hiroshi Shimamoto

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH 2/5] x86: ia32_signal: introduce COPY_SEG_STRICT
  2008-11-15 17:11   ` Américo Wang
@ 2008-11-17 18:03     ` Hiroshi Shimamoto
  0 siblings, 0 replies; 22+ messages in thread
From: Hiroshi Shimamoto @ 2008-11-17 18:03 UTC (permalink / raw)
  To: Américo Wang
  Cc: Ingo Molnar, Thomas Gleixner, H. Peter Anvin, linux-kernel

Américo Wang wrote:
> On Sat, Nov 15, 2008 at 3:26 AM, Hiroshi Shimamoto
> <h-shimamoto@ct.jp.nec.com> wrote:
>> From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
>>
>> Impact: cleanup
>>
>> Introduce COPY_SEG_STRICT for ia32_restore_sigcontext().
>>
>> Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
>> ---
>>  arch/x86/ia32/ia32_signal.c |   12 ++++++++----
>>  1 files changed, 8 insertions(+), 4 deletions(-)
>>
>> diff --git a/arch/x86/ia32/ia32_signal.c b/arch/x86/ia32/ia32_signal.c
>> index a28790a..f74178e 100644
>> --- a/arch/x86/ia32/ia32_signal.c
>> +++ b/arch/x86/ia32/ia32_signal.c
>> @@ -201,6 +201,12 @@ struct rt_sigframe
>>        err |= __get_user(regs->x, &sc->x);     \
>>  }
>>
>> +#define COPY_SEG_STRICT(seg)   {                       \
>> +               unsigned short tmp;                     \
>> +               err |= __get_user(tmp, &sc->seg);       \
>> +               regs->seg = tmp | 3;                    \
>> +}
>> +
> 
> Since your first patch is to kill the temporary variables, then why do you
> introduce a temporary variable here? It can be avoided like it was.
> 
> Can you explain the reason? :)

The first reason is to make this macro same as arch/x86/kernel/signal_{32|64}.c.
And second, I guess gcc may generate little better code.

thanks,
Hiroshi Shimamoto

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH 4/5] x86: ia32_signal: remove using temporary variable
  2008-11-15 17:22   ` Américo Wang
@ 2008-11-17 18:09     ` Hiroshi Shimamoto
  0 siblings, 0 replies; 22+ messages in thread
From: Hiroshi Shimamoto @ 2008-11-17 18:09 UTC (permalink / raw)
  To: Américo Wang
  Cc: Ingo Molnar, Thomas Gleixner, H. Peter Anvin, linux-kernel

Américo Wang wrote:
> On Sat, Nov 15, 2008 at 3:28 AM, Hiroshi Shimamoto
> <h-shimamoto@ct.jp.nec.com> wrote:
>> From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
>>
>> Impact: cleanup
>>
>> No need to use temporary variable.
>> Also rename the variable same as kernel/signal_32.c.
> 
> 
> I think you mean arch/x86/kernel/signal_32.c, of course. :-)

Yep, it should be. I didn't keep correctness, sorry.

thanks,
Hiroshi Shimamoto

> 
>> Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
> 
> Reviewed-by: WANG Cong <wangcong@zeuux.org>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH 5/5] x86: ia32_signal: change order of storing in setup_sigcontext()
  2008-11-15 17:25   ` Américo Wang
@ 2008-11-17 18:20     ` Hiroshi Shimamoto
  0 siblings, 0 replies; 22+ messages in thread
From: Hiroshi Shimamoto @ 2008-11-17 18:20 UTC (permalink / raw)
  To: Américo Wang
  Cc: Ingo Molnar, Thomas Gleixner, H. Peter Anvin, linux-kernel

Américo Wang wrote:
> On Sat, Nov 15, 2008 at 3:28 AM, Hiroshi Shimamoto
> <h-shimamoto@ct.jp.nec.com> wrote:
>> From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
>>
>> Impact: cleanup
>>
>> Change order of storing to match the sigcontext_ia32.
> 
> 
> Well, more than reordering... Please see below.
> 
>> Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
>> ---
>>  arch/x86/ia32/ia32_signal.c |    4 ++--
>>  1 files changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/arch/x86/ia32/ia32_signal.c b/arch/x86/ia32/ia32_signal.c
>> index 2883f41..909181a 100644
>> --- a/arch/x86/ia32/ia32_signal.c
>> +++ b/arch/x86/ia32/ia32_signal.c
>> @@ -360,13 +360,13 @@ static int ia32_setup_sigcontext(struct sigcontext_ia32 __user *sc,
>>        err |= __put_user(regs->dx, &sc->dx);
>>        err |= __put_user(regs->cx, &sc->cx);
>>        err |= __put_user(regs->ax, &sc->ax);
>> -       err |= __put_user(regs->cs, &sc->cs);
>> -       err |= __put_user(regs->ss, &sc->ss);
>>        err |= __put_user(current->thread.trap_no, &sc->trapno);
>>        err |= __put_user(current->thread.error_code, &sc->err);
>>        err |= __put_user(regs->ip, &sc->ip);
>> +       err |= __put_user(regs->cs, (unsigned int __user *)&sc->cs);
>>        err |= __put_user(regs->flags, &sc->flags);
>>        err |= __put_user(regs->sp, &sc->sp_at_signal);
>> +       err |= __put_user(regs->ss, (unsigned int __user *)&sc->ss);
> 
> 
> Why do you add two casts? If these two are necessary, I am afraid the rest ones
> also need. :)

Thanks, I forgot to mention it.
This cast is to make this code same as arch/x86/kernel/signal_32.c.
No one cares upper part, but it makes improvement by avoiding operand
size prefix.

thanks,
Hiroshi Shimamoto

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [PATCH v2 1/5] x86: ia32_signal: cleanup macro COPY
  2008-11-15  3:24 [PATCH 1/5] x86: ia32_signal: cleanup macro COPY Hiroshi Shimamoto
                   ` (4 preceding siblings ...)
  2008-11-15 17:06 ` [PATCH 1/5] x86: ia32_signal: cleanup macro COPY Américo Wang
@ 2008-11-17 23:44 ` Hiroshi Shimamoto
  2008-11-17 23:47   ` [PATCH v2 2/5] x86: ia32_signal: introduce COPY_SEG_STRICT Hiroshi Shimamoto
                     ` (3 more replies)
  5 siblings, 4 replies; 22+ messages in thread
From: Hiroshi Shimamoto @ 2008-11-17 23:44 UTC (permalink / raw)
  To: Ingo Molnar, Thomas Gleixner, H. Peter Anvin; +Cc: linux-kernel, xiyou.wangcong

From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>

Impact: cleanup

No need to use temporary variable in this case.

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
---
 arch/x86/ia32/ia32_signal.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/arch/x86/ia32/ia32_signal.c b/arch/x86/ia32/ia32_signal.c
index e886907..a28790a 100644
--- a/arch/x86/ia32/ia32_signal.c
+++ b/arch/x86/ia32/ia32_signal.c
@@ -197,10 +197,8 @@ struct rt_sigframe
 	/* fp state follows here */
 };
 
-#define COPY(x)		{ 		\
-	unsigned int reg;		\
-	err |= __get_user(reg, &sc->x);	\
-	regs->x = reg;			\
+#define COPY(x)			{		\
+	err |= __get_user(regs->x, &sc->x);	\
 }
 
 #define RELOAD_SEG(seg,mask)						\
-- 
1.5.6


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [PATCH v2 2/5] x86: ia32_signal: introduce COPY_SEG_STRICT
  2008-11-17 23:44 ` [PATCH v2 " Hiroshi Shimamoto
@ 2008-11-17 23:47   ` Hiroshi Shimamoto
  2008-11-17 23:52     ` H. Peter Anvin
  2008-11-17 23:47   ` [PATCH v2 3/5] x86: ia32_signal: cleanup macro RELOAD_SEG Hiroshi Shimamoto
                     ` (2 subsequent siblings)
  3 siblings, 1 reply; 22+ messages in thread
From: Hiroshi Shimamoto @ 2008-11-17 23:47 UTC (permalink / raw)
  To: Ingo Molnar, Thomas Gleixner, H. Peter Anvin; +Cc: linux-kernel, xiyou.wangcong

From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>

Impact: cleanup

Introduce COPY_SEG_STRICT for ia32_restore_sigcontext().

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
---
 arch/x86/ia32/ia32_signal.c |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/arch/x86/ia32/ia32_signal.c b/arch/x86/ia32/ia32_signal.c
index a28790a..f74178e 100644
--- a/arch/x86/ia32/ia32_signal.c
+++ b/arch/x86/ia32/ia32_signal.c
@@ -201,6 +201,12 @@ struct rt_sigframe
 	err |= __get_user(regs->x, &sc->x);	\
 }
 
+#define COPY_SEG_STRICT(seg)	{			\
+		unsigned short tmp;			\
+		err |= __get_user(tmp, &sc->seg);	\
+		regs->seg = tmp | 3;			\
+}
+
 #define RELOAD_SEG(seg,mask)						\
 	{ unsigned int cur;						\
 	  unsigned short pre;						\
@@ -246,10 +252,8 @@ static int ia32_restore_sigcontext(struct pt_regs *regs,
 	COPY(dx); COPY(cx); COPY(ip);
 	/* Don't touch extended registers */
 
-	err |= __get_user(regs->cs, &sc->cs);
-	regs->cs |= 3;
-	err |= __get_user(regs->ss, &sc->ss);
-	regs->ss |= 3;
+	COPY_SEG_STRICT(cs);
+	COPY_SEG_STRICT(ss);
 
 	err |= __get_user(tmpflags, &sc->flags);
 	regs->flags = (regs->flags & ~FIX_EFLAGS) | (tmpflags & FIX_EFLAGS);
-- 
1.5.6


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [PATCH v2 3/5] x86: ia32_signal: cleanup macro RELOAD_SEG
  2008-11-17 23:44 ` [PATCH v2 " Hiroshi Shimamoto
  2008-11-17 23:47   ` [PATCH v2 2/5] x86: ia32_signal: introduce COPY_SEG_STRICT Hiroshi Shimamoto
@ 2008-11-17 23:47   ` Hiroshi Shimamoto
  2008-11-17 23:48   ` [PATCH v2 4/5] x86: ia32_signal: remove using temporary variable Hiroshi Shimamoto
  2008-11-17 23:49   ` [PATCH v2 5/5] x86: ia32_signal: change order of storing in setup_sigcontext() Hiroshi Shimamoto
  3 siblings, 0 replies; 22+ messages in thread
From: Hiroshi Shimamoto @ 2008-11-17 23:47 UTC (permalink / raw)
  To: Ingo Molnar, Thomas Gleixner, H. Peter Anvin; +Cc: linux-kernel, xiyou.wangcong

From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>

Impact: cleanup

Remove mask parameter because it's always 3.
Cleanup coding styles.

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Reviewed-by: WANG Cong <wangcong@zeuux.org>
---
 arch/x86/ia32/ia32_signal.c |   21 +++++++++++----------
 1 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/arch/x86/ia32/ia32_signal.c b/arch/x86/ia32/ia32_signal.c
index f74178e..0b7fcf6 100644
--- a/arch/x86/ia32/ia32_signal.c
+++ b/arch/x86/ia32/ia32_signal.c
@@ -207,13 +207,14 @@ struct rt_sigframe
 		regs->seg = tmp | 3;			\
 }
 
-#define RELOAD_SEG(seg,mask)						\
-	{ unsigned int cur;						\
-	  unsigned short pre;						\
-	  err |= __get_user(pre, &sc->seg);				\
-	  savesegment(seg, cur);					\
-	  pre |= mask;							\
-	  if (pre != cur) loadsegment(seg, pre); }
+#define RELOAD_SEG(seg)		{		\
+	unsigned int cur, pre;			\
+	err |= __get_user(pre, &sc->seg);	\
+	savesegment(seg, cur);			\
+	pre |= 3;				\
+	if (pre != cur)				\
+		loadsegment(seg, pre);		\
+}
 
 static int ia32_restore_sigcontext(struct pt_regs *regs,
 				   struct sigcontext_ia32 __user *sc,
@@ -244,9 +245,9 @@ static int ia32_restore_sigcontext(struct pt_regs *regs,
 	if (gs != oldgs)
 		load_gs_index(gs);
 
-	RELOAD_SEG(fs, 3);
-	RELOAD_SEG(ds, 3);
-	RELOAD_SEG(es, 3);
+	RELOAD_SEG(fs);
+	RELOAD_SEG(ds);
+	RELOAD_SEG(es);
 
 	COPY(di); COPY(si); COPY(bp); COPY(sp); COPY(bx);
 	COPY(dx); COPY(cx); COPY(ip);
-- 
1.5.6


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [PATCH v2 4/5] x86: ia32_signal: remove using temporary variable
  2008-11-17 23:44 ` [PATCH v2 " Hiroshi Shimamoto
  2008-11-17 23:47   ` [PATCH v2 2/5] x86: ia32_signal: introduce COPY_SEG_STRICT Hiroshi Shimamoto
  2008-11-17 23:47   ` [PATCH v2 3/5] x86: ia32_signal: cleanup macro RELOAD_SEG Hiroshi Shimamoto
@ 2008-11-17 23:48   ` Hiroshi Shimamoto
  2008-11-17 23:49   ` [PATCH v2 5/5] x86: ia32_signal: change order of storing in setup_sigcontext() Hiroshi Shimamoto
  3 siblings, 0 replies; 22+ messages in thread
From: Hiroshi Shimamoto @ 2008-11-17 23:48 UTC (permalink / raw)
  To: Ingo Molnar, Thomas Gleixner, H. Peter Anvin; +Cc: linux-kernel, xiyou.wangcong

From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>

Impact: cleanup

No need to use temporary variable.
Also rename the variable same as arch/x86/kernel/signal_32.c.

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Reviewed-by: WANG Cong <wangcong@zeuux.org>
---
 arch/x86/ia32/ia32_signal.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/arch/x86/ia32/ia32_signal.c b/arch/x86/ia32/ia32_signal.c
index 0b7fcf6..2883f41 100644
--- a/arch/x86/ia32/ia32_signal.c
+++ b/arch/x86/ia32/ia32_signal.c
@@ -218,7 +218,7 @@ struct rt_sigframe
 
 static int ia32_restore_sigcontext(struct pt_regs *regs,
 				   struct sigcontext_ia32 __user *sc,
-				   unsigned int *peax)
+				   unsigned int *pax)
 {
 	unsigned int tmpflags, gs, oldgs, err = 0;
 	void __user *buf;
@@ -265,9 +265,7 @@ static int ia32_restore_sigcontext(struct pt_regs *regs,
 	buf = compat_ptr(tmp);
 	err |= restore_i387_xstate_ia32(buf);
 
-	err |= __get_user(tmp, &sc->ax);
-	*peax = tmp;
-
+	err |= __get_user(*pax, &sc->ax);
 	return err;
 }
 
-- 
1.5.6


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [PATCH v2 5/5] x86: ia32_signal: change order of storing in setup_sigcontext()
  2008-11-17 23:44 ` [PATCH v2 " Hiroshi Shimamoto
                     ` (2 preceding siblings ...)
  2008-11-17 23:48   ` [PATCH v2 4/5] x86: ia32_signal: remove using temporary variable Hiroshi Shimamoto
@ 2008-11-17 23:49   ` Hiroshi Shimamoto
  3 siblings, 0 replies; 22+ messages in thread
From: Hiroshi Shimamoto @ 2008-11-17 23:49 UTC (permalink / raw)
  To: Ingo Molnar, Thomas Gleixner, H. Peter Anvin; +Cc: linux-kernel, xiyou.wangcong

From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>

Impact: cleanup

Change order of storing to match the sigcontext_ia32.
And add casting to make this code same as arch/x86/kernel/signal_32.c.

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
---
 arch/x86/ia32/ia32_signal.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/ia32/ia32_signal.c b/arch/x86/ia32/ia32_signal.c
index 2883f41..909181a 100644
--- a/arch/x86/ia32/ia32_signal.c
+++ b/arch/x86/ia32/ia32_signal.c
@@ -360,13 +360,13 @@ static int ia32_setup_sigcontext(struct sigcontext_ia32 __user *sc,
 	err |= __put_user(regs->dx, &sc->dx);
 	err |= __put_user(regs->cx, &sc->cx);
 	err |= __put_user(regs->ax, &sc->ax);
-	err |= __put_user(regs->cs, &sc->cs);
-	err |= __put_user(regs->ss, &sc->ss);
 	err |= __put_user(current->thread.trap_no, &sc->trapno);
 	err |= __put_user(current->thread.error_code, &sc->err);
 	err |= __put_user(regs->ip, &sc->ip);
+	err |= __put_user(regs->cs, (unsigned int __user *)&sc->cs);
 	err |= __put_user(regs->flags, &sc->flags);
 	err |= __put_user(regs->sp, &sc->sp_at_signal);
+	err |= __put_user(regs->ss, (unsigned int __user *)&sc->ss);
 
 	err |= __put_user(ptr_to_compat(fpstate), &sc->fpstate);
 
-- 
1.5.6


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* Re: [PATCH v2 2/5] x86: ia32_signal: introduce COPY_SEG_STRICT
  2008-11-17 23:47   ` [PATCH v2 2/5] x86: ia32_signal: introduce COPY_SEG_STRICT Hiroshi Shimamoto
@ 2008-11-17 23:52     ` H. Peter Anvin
  2008-11-18  0:09       ` Hiroshi Shimamoto
  0 siblings, 1 reply; 22+ messages in thread
From: H. Peter Anvin @ 2008-11-17 23:52 UTC (permalink / raw)
  To: Hiroshi Shimamoto
  Cc: Ingo Molnar, Thomas Gleixner, linux-kernel, xiyou.wangcong

Hiroshi Shimamoto wrote:
> From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
> 
> Impact: cleanup
> 
> Introduce COPY_SEG_STRICT for ia32_restore_sigcontext().
> 

I don't like the name _STRICT() for this; if anything it seems to have 
quite the opposite meaning.  I would suggest COPY_SEG_USER() or even 
COPY_SEG_CPL3().

	-hpa

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v2 2/5] x86: ia32_signal: introduce COPY_SEG_STRICT
  2008-11-17 23:52     ` H. Peter Anvin
@ 2008-11-18  0:09       ` Hiroshi Shimamoto
  2008-11-18 15:56         ` Ingo Molnar
  0 siblings, 1 reply; 22+ messages in thread
From: Hiroshi Shimamoto @ 2008-11-18  0:09 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: Ingo Molnar, Thomas Gleixner, linux-kernel, xiyou.wangcong

H. Peter Anvin wrote:
> Hiroshi Shimamoto wrote:
>> From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
>>
>> Impact: cleanup
>>
>> Introduce COPY_SEG_STRICT for ia32_restore_sigcontext().
>>
> 
> I don't like the name _STRICT() for this; if anything it seems to have 
> quite the opposite meaning.  I would suggest COPY_SEG_USER() or even 
> COPY_SEG_CPL3().

Sounds nice.
I haven't thought about the name. I could not catch wrong meaning from
_STRICT. My English skill isn't good.

thanks,
Hiroshi Shimamoto


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH v2 2/5] x86: ia32_signal: introduce COPY_SEG_STRICT
  2008-11-18  0:09       ` Hiroshi Shimamoto
@ 2008-11-18 15:56         ` Ingo Molnar
  0 siblings, 0 replies; 22+ messages in thread
From: Ingo Molnar @ 2008-11-18 15:56 UTC (permalink / raw)
  To: Hiroshi Shimamoto
  Cc: H. Peter Anvin, Thomas Gleixner, linux-kernel, xiyou.wangcong


* Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> wrote:

> H. Peter Anvin wrote:
> > Hiroshi Shimamoto wrote:
> >> From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
> >>
> >> Impact: cleanup
> >>
> >> Introduce COPY_SEG_STRICT for ia32_restore_sigcontext().
> >>
> > 
> > I don't like the name _STRICT() for this; if anything it seems to have 
> > quite the opposite meaning.  I would suggest COPY_SEG_USER() or even 
> > COPY_SEG_CPL3().
> 
> Sounds nice.
> I haven't thought about the name. I could not catch wrong meaning from
> _STRICT. My English skill isn't good.

i have changed it to COPY_SEG_CPL3() - no need to resend. Here are the 
patches i've picked up into tip/x86/signal:

 6497760: x86: ia32_signal: change order of storing in setup_sigcontext()
 047ce93: x86: ia32_signal: remove using temporary variable
 8c6e5ce: x86: ia32_signal: cleanup macro RELOAD_SEG
 d71a68d: x86: ia32_signal: introduce COPY_SEG_CPL3
 b78a5b5: x86: ia32_signal: cleanup macro COPY

thanks!

	Ingo

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2008-11-18 15:56 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-15  3:24 [PATCH 1/5] x86: ia32_signal: cleanup macro COPY Hiroshi Shimamoto
2008-11-15  3:26 ` [PATCH 2/5] x86: ia32_signal: introduce COPY_SEG_STRICT Hiroshi Shimamoto
2008-11-15 17:11   ` Américo Wang
2008-11-17 18:03     ` Hiroshi Shimamoto
2008-11-15  3:27 ` [PATCH 3/5] x86: ia32_signal: cleanup macro RELOAD_SEG Hiroshi Shimamoto
2008-11-15 17:15   ` Américo Wang
2008-11-15  3:28 ` [PATCH 4/5] x86: ia32_signal: remove using temporary variable Hiroshi Shimamoto
2008-11-15 17:22   ` Américo Wang
2008-11-17 18:09     ` Hiroshi Shimamoto
2008-11-15  3:28 ` [PATCH 5/5] x86: ia32_signal: change order of storing in setup_sigcontext() Hiroshi Shimamoto
2008-11-15 17:25   ` Américo Wang
2008-11-17 18:20     ` Hiroshi Shimamoto
2008-11-15 17:06 ` [PATCH 1/5] x86: ia32_signal: cleanup macro COPY Américo Wang
2008-11-17 17:57   ` Hiroshi Shimamoto
2008-11-17 23:44 ` [PATCH v2 " Hiroshi Shimamoto
2008-11-17 23:47   ` [PATCH v2 2/5] x86: ia32_signal: introduce COPY_SEG_STRICT Hiroshi Shimamoto
2008-11-17 23:52     ` H. Peter Anvin
2008-11-18  0:09       ` Hiroshi Shimamoto
2008-11-18 15:56         ` Ingo Molnar
2008-11-17 23:47   ` [PATCH v2 3/5] x86: ia32_signal: cleanup macro RELOAD_SEG Hiroshi Shimamoto
2008-11-17 23:48   ` [PATCH v2 4/5] x86: ia32_signal: remove using temporary variable Hiroshi Shimamoto
2008-11-17 23:49   ` [PATCH v2 5/5] x86: ia32_signal: change order of storing in setup_sigcontext() Hiroshi Shimamoto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).