Blame SOURCES/rhbz1643997.0023-pr23860-verifier-workaround-be-sure-to-delete-all-mo.patch

132810
From b43a06011e0a4606504391ffb94762276c95610d Mon Sep 17 00:00:00 2001
132810
From: Serhei Makarov <smakarov@redhat.com>
132810
Date: Wed, 7 Nov 2018 13:07:51 -0500
132810
Subject: [PATCH 23/32] pr23860 verifier workaround :: be sure to delete all
132810
 mov rN,rN
132810
132810
An apparent bug in the eBPF verifier fails to preserve register state
132810
when MOVing a register to itself, marking rN as 'unknown scalar'.
132810
132810
Previously bpf-opt.cxx failed to remove spurious MOVs if they were the
132810
final instruction in a basic block. This would fail verification if
132810
the register holds a pointer.
132810
---
132810
 bpf-opt.cxx | 2 +-
132810
 1 file changed, 1 insertion(+), 1 deletion(-)
132810
132810
diff --git a/bpf-opt.cxx b/bpf-opt.cxx
132810
index 904b33b46..8b9a6ea60 100644
132810
--- a/bpf-opt.cxx
132810
+++ b/bpf-opt.cxx
132810
@@ -909,7 +909,7 @@ post_alloc_cleanup (program &p)
132810
 	  n = j->next;
132810
 	  if (j->is_move()
132810
 	      && j->src1->is_reg()
132810
-	      && j->dest->reg() == j->src1->reg() && n)
132810
+	      && j->dest->reg() == j->src1->reg())
132810
 	    {
132810
 	      // Delete no-op moves created by partition merging.
132810
 	      insn *p = j->prev;
132810
-- 
132810
2.14.5
132810