Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Issue 13846002: [MIPS] Fix constraint modifier for syscall clone (Closed)

Created:
7 years, 8 months ago by petarj
Modified:
7 years, 8 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

[MIPS] Fix constraint modifier for syscall clone __v0 has to be marked as read-write rather than early-clobbered. This fixes an issue in which return value from the system call is unexpectedly overridden. When v0 is marked as early-clobbered, (asm) "li %0,%2\n" will be coded as: (objdump) "58: 2410ffea li s0,-22" and at label '1' the value is restored to v0: (objdump) "b0: 02001021 move v0,s0" However, this clobbers the return value from the syscall. When v0 is marked as read-write, (-EINVAL) is correctly loaded in v0: (objdump) "58: 2402ffea li v0,-22" and the value is not overridden later. BUG = described above TEST= used by breakpad for MIPS Committed: https://code.google.com/p/linux-syscall-support/source/detail?r=21

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M lss/linux_syscall_support.h View 1 chunk +1 line, -1 line 4 comments Download

Messages

Total messages: 10 (0 generated)
petarj
7 years, 8 months ago (2013-04-08 23:53:08 UTC) #1
Markus (顧孟勤)
This looks fine, I think. But I really would appreciate a more verbose checkin comment ...
7 years, 8 months ago (2013-04-09 00:20:51 UTC) #2
Mark Seaborn
LGTM. Can you list the faulty assembly output that GCC produced in the commit message? ...
7 years, 8 months ago (2013-04-09 00:29:55 UTC) #3
petarj
I have added additional description about the issue in the commit message. https://codereview.chromium.org/13846002/diff/1/lss/linux_syscall_support.h File lss/linux_syscall_support.h ...
7 years, 8 months ago (2013-04-09 12:17:40 UTC) #4
petarj
For anyone interested in the faulty code for sys_clone (that I refer to in the ...
7 years, 8 months ago (2013-04-09 12:30:20 UTC) #5
Markus (顧孟勤)
lgtm
7 years, 8 months ago (2013-04-09 18:33:17 UTC) #6
petarj
On 2013/04/09 18:33:17, Markus (顧孟勤) wrote: Mark, Markus, can any of you two submit this ...
7 years, 8 months ago (2013-04-09 23:25:22 UTC) #7
Mark Seaborn
On 9 April 2013 16:25, <petarj@mips.com> wrote: > can any of you two submit this ...
7 years, 8 months ago (2013-04-09 23:32:10 UTC) #8
petarj
Committed patchset #1 manually as r21 (presubmit successful).
7 years, 8 months ago (2013-04-10 00:35:57 UTC) #9
petarj
7 years, 8 months ago (2013-04-10 00:38:15 UTC) #10
Message was sent while issue was closed.
On 2013/04/09 23:32:10, Mark Seaborn wrote:
> On 9 April 2013 16:25, <mailto:petarj@mips.com> wrote:
> 
> > can any of you two submit this change?
> > CQ does not work for this repository.
> >
> 
> I've added you as a committer, so you can commit directly using gcl or
> git-cl.
> 
> Mark

Done. Thanks, Mark.

Powered by Google App Engine
This is Rietveld 408576698