lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <53612634.2070802@zytor.com>
Date:	Wed, 30 Apr 2014 09:35:00 -0700
From:	"H. Peter Anvin" <hpa@...or.com>
To:	Mark Kettenis <mark.kettenis@...all.nl>
CC:	pinskia@...il.com, teawater@...il.com, tglx@...utronix.de,
	mingo@...hat.com, x86@...nel.org, eparis@...hat.com,
	ak@...ux.intel.com, linux-kernel@...r.kernel.org,
	gdb@...rceware.org
Subject: Re: [PATCH] Fix get ERESTARTSYS with m32 in x86_64 when debug by
 GDB

On 04/30/2014 06:35 AM, Mark Kettenis wrote:
> 
> If (and only if) the goal of that TS_COMPAT flag solely is to trigger
> the error code sign-extension in arch/x86/asm/syscall.h:syscall_get_error(),
> we could work around to problem in GDB by checking "orig_ax" to see if
> we're continuing an interrupted system call and sign extend the error
> code in the real "eax" register if we are.
> 

Well... this "if and only if" clause is false, although it might work
specifically in this context.  I need to do a writeup about this... I
should try to do that today.

	-hpa

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ