This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/19371] New: Wrong error return on syscall ()


https://sourceware.org/bugzilla/show_bug.cgi?id=19371

            Bug ID: 19371
           Summary: Wrong error return on syscall ()
           Product: glibc
           Version: 2.22
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---
            Target: x32

X32 has

(gdb) disass syscall
Dump of assembler code for function syscall:
   0x000daaf0 <+0>:     mov    %rdi,%rax
   0x000daaf3 <+3>:     mov    %rsi,%rdi
   0x000daaf6 <+6>:     mov    %rdx,%rsi
   0x000daaf9 <+9>:     mov    %rcx,%rdx
   0x000daafc <+12>:    mov    %r8,%r10
   0x000daaff <+15>:    mov    %r9,%r8
   0x000dab02 <+18>:    mov    0x8(%rsp),%r9
   0x000dab07 <+23>:    syscall 
   0x000dab09 <+25>:    cmp    $0xfffffffffffff001,%rax
   0x000dab0f <+31>:    jae    0xdab12 <syscall+34>
   0x000dab11 <+33>:    retq   
   0x000dab12 <+34>:    mov    0x2b3397(%rip),%rcx        # 0x38deb0
   0x000dab19 <+41>:    neg    %eax
   0x000dab1b <+43>:    mov    %eax,%fs:(%rcx)
   0x000dab1e <+46>:    or     $0xffffffff,%eax
                                ^^^^^^^^^^^^^^^^^ It should be 64-bit.
   0x000dab21 <+49>:    retq   
End of assembler dump.
(gdb)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]