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: <f58f1661-6193-d502-7864-b629ccd10d76@caviumnetworks.com>
Date:   Tue, 7 Mar 2017 17:35:09 -0800
From:   David Daney <ddaney@...iumnetworks.com>
To:     David Daney <david.daney@...ium.com>, Jessica Yu <jeyu@...hat.com>,
        Rusty Russell <rusty@...tcorp.com.au>,
        Andrey Ryabinin <a.ryabinin@...sung.com>,
        linux-kernel@...r.kernel.org,
        Andrey Ryabinin <aryabinin@...tuozzo.com>
Cc:     Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH] module: set .init_array alignment to 8

It looks like Andrey's e-mail changed.  Replying with what I hope is a 
valid e-mail for Andrey.

On 03/07/2017 05:31 PM, David Daney wrote:
> The proper idiom for aligning linker sections in modules is different
> than for built-in sections.  ". = ALIGN();" followed by a forced
> output address of 0 does nothing, as forcing the address changes the
> value of ".".
>
> Use output section alignment specifier instead.
>
> Fixes: 9ddf82521c86 ("kernel: add support for .init_array.* constructors")
> Signed-off-by: David Daney <david.daney@...ium.com>
> ---
>
> I noticed this when doing the __jump_table thing.  Doesn't seem to
> break a defconfig build, but otherwise untested.
>
>  scripts/module-common.lds | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/scripts/module-common.lds b/scripts/module-common.lds
> index 9b6e246..d61b9e8 100644
> --- a/scripts/module-common.lds
> +++ b/scripts/module-common.lds
> @@ -20,8 +20,7 @@ SECTIONS {
>  	__kcrctab_unused_gpl	0 : { *(SORT(___kcrctab_unused_gpl+*)) }
>  	__kcrctab_gpl_future	0 : { *(SORT(___kcrctab_gpl_future+*)) }
>
> -	. = ALIGN(8);
> -	.init_array		0 : { *(SORT(.init_array.*)) *(.init_array) }
> +	.init_array		0 : ALIGN(8) { *(SORT(.init_array.*)) *(.init_array) }
>
>  	__jump_table		0 : ALIGN(8) { KEEP(*(__jump_table)) }
>  }
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ