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

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