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] [day] [month] [year] [list]
Message-ID: <Zd904gtGFPgTLCe5@arm.com>
Date: Wed, 28 Feb 2024 18:01:06 +0000
From: Catalin Marinas <catalin.marinas@....com>
To: Seongsu Park <sgsu.park@...sung.com>
Cc: will@...nel.org, anshuman.khandual@....com, ardb@...nel.org,
	maz@...nel.org, joey.gouly@....com, quic_neeraju@...cinc.com,
	linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
	Leem ChaeHoon <infinite.run@...il.com>,
	Hyongwu Kim <browoo777@...il.com>,
	Gyeonggeon Choi <gychoi@...dent.42seoul.kr>,
	Soomin Cho <to.soomin@...il.com>, Daero Lee <skseofh@...il.com>,
	kmasta <kmasta.study@...il.com>
Subject: Re: [PATCH] arm64: head: Remove the instructions that get the
 virtual offset in __relocate_kernel

On Mon, Feb 26, 2024 at 01:02:24PM +0900, Seongsu Park wrote:
> diff --git a/arch/arm64/kernel/head.S b/arch/arm64/kernel/head.S
> index cab7f91949d8..90db196f7c19 100644
> --- a/arch/arm64/kernel/head.S
> +++ b/arch/arm64/kernel/head.S
> @@ -787,8 +787,6 @@ SYM_FUNC_START_LOCAL(__relocate_kernel)
>  	 */
>  	adr_l	x9, __rela_start
>  	adr_l	x10, __rela_end
> -	mov_q	x11, KIMAGE_VADDR		// default virtual offset
> -	add	x11, x11, x23			// actual virtual offset
>  
>  0:	cmp	x9, x10
>  	b.hs	1f

This code has been removed by commit 734958ef0b54 ("arm64: head: move
relocation handling to C code") in linux-next, so the patch is no longer
needed.

Thanks.

-- 
Catalin

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ