[DTrace-devel] [PATCH] Eliminate no-longer-needed DT_CG_ALLOCA_NULLPTR workaround

eugene.loh at oracle.com eugene.loh at oracle.com
Tue Apr 26 17:07:00 UTC 2022


From: Eugene Loh <eugene.loh at oracle.com>

Signed-off-by: Eugene Loh <eugene.loh at oracle.com>
---
 bpf/inet_ntoa.S | 20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/bpf/inet_ntoa.S b/bpf/inet_ntoa.S
index f8a3f112..ff36e226 100644
--- a/bpf/inet_ntoa.S
+++ b/bpf/inet_ntoa.S
@@ -155,26 +155,6 @@ dt_inet_ntoa:
 	mov	SRC, %r1
 	mov	DST, %r2
 
-#if 1
-#define BPF_FUNC_probe_read	4
-	/*
-	 * FIXME: copy src data over
-	 *
-	 * Currently, the code generator's handling of DT_CG_ALLOCA_NULLPTR
-	 * is such that there are scenarios where the BPF verifier thinks an
-	 * unsuitable value is being passed in as the "src" argument.  Until
-	 * this is fixed, simply use bpf_probe_read() to copy the src data
-	 * onto the BPF stack.  Reset the src argument to point to that
-	 * stack location.
-	 */
-	mov	%r3, %r1
-	mov	%r2, 4
-	mov	SRC, %fp
-	add	SRC, -4
-	mov	%r1, SRC
-	call	BPF_FUNC_probe_read
-#endif
-
 	mov	%r3, 0
 	lddw	LEN, STRSZ
 
-- 
2.18.4




More information about the DTrace-devel mailing list