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-next>] [day] [month] [year] [list]
Date: Mon, 26 Feb 2024 13:02:24 +0900
From: Seongsu Park <sgsu.park@...sung.com>
To: catalin.marinas@....com, will@...nel.org, anshuman.khandual@....com,
	ardb@...nel.org, maz@...nel.org, joey.gouly@....com,
	quic_neeraju@...cinc.com
Cc: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
	sgsu.park@...sung.com, 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: [PATCH] arm64: head: Remove the instructions that get the virtual
 offset in __relocate_kernel

Since relative references have been used in RELA and RELR tables,
there has been no need to know their start va and end va.
Therefore, the instructions to get virtual offset in __relocate_kernel
should be removed.

Co-developed-by: Leem ChaeHoon <infinite.run@...il.com>
Signed-off-by: Leem ChaeHoon <infinite.run@...il.com>
Co-developed-by: Hyongwu Kim <browoo777@...il.com>
Signed-off-by: Hyongwu Kim <browoo777@...il.com>
Co-developed-by: Gyeonggeon Choi <gychoi@...dent.42seoul.kr>
Signed-off-by: Gyeonggeon Choi <gychoi@...dent.42seoul.kr>
Co-developed-by: Soomin Cho <to.soomin@...il.com>
Signed-off-by: Soomin Cho <to.soomin@...il.com>
Co-developed-by: Daero Lee <skseofh@...il.com>
Signed-off-by: Daero Lee <skseofh@...il.com>
Co-developed-by: kmasta <kmasta.study@...il.com>
Signed-off-by: kmasta <kmasta.study@...il.com>
Signed-off-by: Seongsu Park <sgsu.park@...sung.com>
---
 arch/arm64/kernel/head.S | 2 --
 1 file changed, 2 deletions(-)

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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ