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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090210111154.GA7822@elte.hu>
Date:	Tue, 10 Feb 2009 12:11:54 +0100
From:	Ingo Molnar <mingo@...e.hu>
To:	Jeremy Fitzhardinge <jeremy@...p.org>
Cc:	Tejun Heo <tj@...nel.org>, hpa@...or.com, tglx@...utronix.de,
	linux-kernel@...r.kernel.org, x86@...nel.org, rusty@...tcorp.com.au
Subject: Re: [PATCH 08/11] x86: use asm .macro instead of cpp #define in
	entry_32.S


* Jeremy Fitzhardinge <jeremy@...p.org> wrote:

> Tejun Heo wrote:
>> Hmm... I originally did the conversion because I had some .if trick in
>> SAVE_ALL which got removed later.  Even after the removal, it
>> generally looked like a good idea as x86_64 asm was primarily using
>> .macro too.  I do like being able to see the post-processing output of
>> cpp too but for assembler disassembling the output often seem to give
>> enough clue,
>
> That's assuming that the file assembles.  But if you're trying to assemble
> and the best error the assembler comes up with is "bad operand" on the line
> where you're using the macro, its extremely frustrating trying to work out
> where the problem actually lies.

Yeah, i had that experience with GAS usability with all the CFI restructuring
we did.

But it should be pretty rare that we come up with instructions that do not
assemble - and even rarer that we come up with a _lot_ of new instructions
that do not assemble. The trick i used was to remove bits of the macro to
hone in on the bad instruction/construct. Stone-age tool but works.

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