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] [day] [month] [year] [list]
Date:	Fri, 10 Jun 2016 14:13:58 +0300
From:	Alexey Dobriyan <adobriyan@...il.com>
To:	Andrew Morton <akpm@...ux-foundation.org>
Cc:	Linux Kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] kbuild: simpler generation of constants for assembly

On Fri, Jun 3, 2016 at 2:24 AM, Andrew Morton <akpm@...ux-foundation.org> wrote:
> On Sat, 21 May 2016 01:27:36 +0300 Alexey Dobriyan <adobriyan@...il.com> wrote:
>
>> Instead of showing how cool sed(1) invocation could be, rely on the fact
>> that gcc doesn't really look inside "asm" statement body and more or less
>> directly emits it into assembly. Pretend "#define" is an instruction.
>>
>> %a prints integer as plain integer without '$' or other characters.
>> C++ comment takes care of trailing '#' character nobody asked for.
>>
>> Remove empty lines in generated file while I'm at it.
>>
>> Signed-off-by: Alexey Dobriyan <adobriyan@...il.com>
>> ---
>>
>>       NOT compile tested on ia64.
>>       Compile tested on arm.
>
> I tried ia64 defconfig and it exploded.

> In file included from include/linux/mm_types.h:14,
>                  from include/linux/sched.h:27,
>                  from arch/ia64/kernel/asm-offsets.c:9:
> include/linux/page-flags-layout.h:14:18: error: operator '<' has no left operand
> include/linux/page-flags-layout.h:16:20: error: operator '<=' has no left operand
> include/linux/page-flags-layout.h:18:20: error: operator '<=' has no left operand
> include/linux/page-flags-layout.h:20:20: error: operator '<=' has no left operand
> include/linux/page-flags-layout.h:23:2: error: #error ZONES_SHIFT -- too many zones configured adjust calculation

"%0" :: "i" (x) prints number with $ sign.
"%a0" :: "i" (x) prints number without $ sign.

on ia64:
"%0: prints number without $.
"%a0" prints nothing.

I can add special case for ia64 but other archs can be inconsistent as well.

    Alexey

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ