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>] [day] [month] [year] [list]
Date: Thu, 25 Jan 2024 17:00:16 +0800
From: Kunwu Chan <chentao@...inos.cn>
To: oleg@...hat.com,
	linux@...linux.org.uk
Cc: linux-arm-kernel@...ts.infradead.org,
	linux-kernel@...r.kernel.org,
	Kunwu Chan <chentao@...inos.cn>
Subject: [PATCH] ARM: ptrace: Code cleanup

This part was commented in about 19 years before.

If there are no plans to enable this part code in the future,
we can remove this dead code.

Signed-off-by: Kunwu Chan <chentao@...inos.cn>
---
 arch/arm/kernel/ptrace.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/arch/arm/kernel/ptrace.c b/arch/arm/kernel/ptrace.c
index c421a899fc84..71c0b2233f56 100644
--- a/arch/arm/kernel/ptrace.c
+++ b/arch/arm/kernel/ptrace.c
@@ -37,13 +37,6 @@
  * in exit.c or in signal.c.
  */
 
-#if 0
-/*
- * Breakpoint SWI instruction: SWI &9F0001
- */
-#define BREAKINST_ARM	0xef9f0001
-#define BREAKINST_THUMB	0xdf00		/* fill this in later */
-#else
 /*
  * New breakpoints - use an undefined instruction.  The ARM architecture
  * reference manual guarantees that the following instruction space
@@ -54,7 +47,6 @@
  */
 #define BREAKINST_ARM	0xe7f001f0
 #define BREAKINST_THUMB	0xde01
-#endif
 
 struct pt_regs_offset {
 	const char *name;
-- 
2.39.2


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ