#0 0x38026582 in do_syscall_WRK () at m_syscall.c:56 51: might return a large offset. Therefore we must not anymore test 52: for < 0, but test for a real error by making sure the value in %eax 53: is a real error number. Linus said he will make sure the no 54: syscall returns a value in -1 .. -4095 as a valid result so we can 55: safely test with -4095. 56: */ 57: SysRes VG_(mk_SysRes_x86_linux) ( UInt val ) { 58: SysRes res; 59: res.isError = val >= -4095 && val <= -1; 60: res.val = res.isError ? -val : val; 61: return res;