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: <alpine.LFD.2.11.1504291025430.17786@eddie.linux-mips.org>
Date:	Wed, 29 Apr 2015 10:49:21 +0100 (BST)
From:	"Maciej W. Rozycki" <macro@...ux-mips.org>
To:	James Hogan <james.hogan@...tec.com>
cc:	Leonid Yegoshin <Leonid.Yegoshin@...tec.com>,
	linux-mips@...ux-mips.org, markos.chandras@...tec.com,
	Ralf Baechle <ralf@...ux-mips.org>,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] MIPS64: R6: R2 emulation bugfix

On Wed, 29 Apr 2015, James Hogan wrote:

> > Error recovery pointers for fixups was improperly set as ".word"
> > which is unsuitable for MIPS64.
> > 
> > Replaced by __stringify(PTR)
> 
> Every other case of this sort of thing uses STR(PTR) (or __UA_ADDR in
> uaccess.h). Can we stick to STR(PTR) for consistency please?

 Or __PA_ADDR in paccess.h.

 I have mixed feelings, the reason for __stringify being absent is the 
macro being generic and more recently added than pieces of code that use 
STR, e.g. unaligned.c that has been there since forever.  And we do use 
__stringify in many other cases.

 On the other hand STR is short and sweet, unlike __stringify.

 So how about adding a macro like __STR_PTR that expands to 
__stringify(PTR) and converting all the places throughout our port 
(including ones currently using __UA_ADDR/__PA_ADDR) to use the new macro?

 Leonid's bug fix will need to go in first of course.

  Maciej
--
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