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: <20130827104949.GE19897@arm.com>
Date:	Tue, 27 Aug 2013 11:49:50 +0100
From:	Catalin Marinas <catalin.marinas@....com>
To:	Mark Salter <msalter@...hat.com>
Cc:	Will Deacon <Will.Deacon@....com>,
	linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] arm64: move elf notes into readonly segment

On Fri, Aug 23, 2013 at 04:16:42PM +0100, Mark Salter wrote:
> The current vmlinux.lds.S places the notes sections between the
> end of rw data and start of bss. This means that _edata doesn't
> really point to the end of data. Since notes are read-only, this
> patch moves them to the read-only segment so that _edata does
> point to the end of initialized rw data.
> 
> Signed-off-by: Mark Salter <msalter@...hat.com>
> ---
>  arch/arm64/kernel/vmlinux.lds.S | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/arch/arm64/kernel/vmlinux.lds.S b/arch/arm64/kernel/vmlinux.lds.S
> index f5e5574..f8ab9d8 100644
> --- a/arch/arm64/kernel/vmlinux.lds.S
> +++ b/arch/arm64/kernel/vmlinux.lds.S
> @@ -71,6 +71,7 @@ SECTIONS
>  
>  	RO_DATA(PAGE_SIZE)
>  	EXCEPTION_TABLE(8)
> +	NOTES
>  	_etext = .;			/* End of text and rodata section */
>  
>  	. = ALIGN(PAGE_SIZE);
> @@ -122,8 +123,6 @@ SECTIONS
>  	}
>  	_edata_loc = __data_loc + SIZEOF(.data);
>  
> -	NOTES
> -
>  	BSS_SECTION(0, 0, 0)
>  	_end = .;

The _edata is set before NOTES, so I don't fully understand where the
problem is.

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