linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Paul Mackerras <paulus@samba.org>
To: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Cc: jpoimboe@us.ibm.com, linuxppc-dev@ozlabs.org
Subject: Re: [PATCH] powerpc: Fix error path in kernel_thread function
Date: Thu, 9 Oct 2008 13:57:37 +1100	[thread overview]
Message-ID: <18669.29473.856007.689260@cargo.ozlabs.ibm.com> (raw)
In-Reply-To: <20081007161003.GA5727@yoda.jdub.homelinux.org>

Josh Boyer writes:

> From: Josh Poimboeuf <jpoimboe@us.ibm.com>
> 
> The powerpc 32-bit and 64-bit kernel_thread functions don't properly
> propagate errors being returned by the clone syscall.  (In the case of
> error, the syscall exit code returns a positive errno in r3 and sets
> the CR0[SO] bit.)
> 
> This patch fixes that by negating r3 if CR0[SO] is set after the syscall.
> 
> Signed-off-by: Josh Poimboeuf <jpoimboe@us.ibm.com>
> Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>

Acked-by: Paul Mackerras <paulus@samba.org>

  parent reply	other threads:[~2008-10-09  2:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-07 16:10 [PATCH] powerpc: Fix error path in kernel_thread function Josh Boyer
2008-10-07 16:46 ` Josh Boyer
2008-10-07 18:30 ` Segher Boessenkool
2008-10-09  2:57 ` Paul Mackerras [this message]
2008-10-23 11:56   ` Josh Boyer

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=18669.29473.856007.689260@cargo.ozlabs.ibm.com \
    --to=paulus@samba.org \
    --cc=jpoimboe@us.ibm.com \
    --cc=jwboyer@linux.vnet.ibm.com \
    --cc=linuxppc-dev@ozlabs.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;
as well as URLs for NNTP newsgroup(s).