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.DEB.2.00.0902271021370.25593@gandalf.stny.rr.com>
Date:	Fri, 27 Feb 2009 10:21:55 -0500 (EST)
From:	Steven Rostedt <rostedt@...dmis.org>
To:	Uwe Kleine-König 
	<u.kleine-koenig@...gutronix.de>
cc:	KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>,
	linux-kernel@...r.kernel.org,
	Peter Zijlstra <peterz@...radead.org>,
	Ingo Molnar <mingo@...e.hu>
Subject: Re: [PATCH] make CALLER_ADDRx overwriteable


On Fri, 27 Feb 2009, Uwe Kleine-K?nig wrote:

> Hi,
> 
> On Fri, Feb 27, 2009 at 04:32:45PM +0900, KOSAKI Motohiro wrote:
> > > -#ifdef CONFIG_FRAME_POINTER
> > > -/* TODO: need to fix this for ARM */
> > > -# define CALLER_ADDR0 ((unsigned long)__builtin_return_address(0))
> > > -# define CALLER_ADDR1 ((unsigned long)__builtin_return_address(1))
> > > -# define CALLER_ADDR2 ((unsigned long)__builtin_return_address(2))
> > > -# define CALLER_ADDR3 ((unsigned long)__builtin_return_address(3))
> > > -# define CALLER_ADDR4 ((unsigned long)__builtin_return_address(4))
> > > -# define CALLER_ADDR5 ((unsigned long)__builtin_return_address(5))
> > > -# define CALLER_ADDR6 ((unsigned long)__builtin_return_address(6))
> > > -#else
> > > -# define CALLER_ADDR0 ((unsigned long)__builtin_return_address(0))
> > > -# define CALLER_ADDR1 0UL
> > > -# define CALLER_ADDR2 0UL
> > > -# define CALLER_ADDR3 0UL
> > > -# define CALLER_ADDR4 0UL
> > > -# define CALLER_ADDR5 0UL
> > > -# define CALLER_ADDR6 0UL
> > > -#endif
> > > +#ifndef CALLER_ADDR0
> > 
> > but I think this "#ifndef CALLER_ADDR0" don't explain developer intention at all.
> > ARCH_HAS_XXXXX macro is better?
> OK, this seems clearer.  I'd use HAVE_ARCH_CALLER_ADDR though.

Yes, I agree using HAVE_ARH_CALLER_ADDR is the way to handle this.

Thanks,

-- Steve

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