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]
Date:	Sun, 14 Jun 2015 20:07:24 +0200
From:	Borislav Petkov <bp@...en8.de>
To:	Enrico Mioso <mrkiko.rs@...il.com>, Michael Matz <matz@...e.de>
Cc:	linux-kernel@...r.kernel.org, x86-ml <x86@...nel.org>
Subject: Re: X86 GIT GCC 5 compilation warning

On Sun, Jun 14, 2015 at 05:14:18PM +0200, Enrico Mioso wrote:
> Hi guys.
> Compiling my kernel with gcc (GCC) 5.1.0
> the GIT snapshot as of commit c8d17b451aa18b07b60e771addf17a5fdd4138c7
> I get the following warning you might be interested in:
> arch/x86/kernel/head_32.S:66: Warning: shift count out of range (32 is not between 0 and 31)

That's

LOWMEM_PAGES = (((1<<32) - __PAGE_OFFSET) >> PAGE_SHIFT)

and a 32-bit build. So gas hasn't been complaning so far about this.

Micha, did something change wrt constants type and width in gas in gcc5?

Judging by the warning, it seems gas considers the "1" a 4-byte type now
and complains about the shift overflow. But it didn't before and the asm
from gcc4.9 looks correct here.

What's up?

-- 
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.
--
--
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