]> sourceware.org Git - systemtap.git/commit
stapbpf: fix temporary registers appearing in translator output and null ptr deref.
authorAaron Merey <amerey@redhat.com>
Thu, 5 Oct 2017 16:35:44 +0000 (12:35 -0400)
committerAaron Merey <amerey@redhat.com>
Thu, 5 Oct 2017 17:49:32 +0000 (13:49 -0400)
commit046af7a6c74d586252abcc0625978807e38cb17e
treed5427a6a63d40a89a6f6969217ce27bd5d20c7a6
parent51b398ba81a797bffdb2a6f8154c5fce8c77e7e0
stapbpf: fix temporary registers appearing in translator output and null ptr deref.

* bpf-opt.cxx (reg_alloc): When replacing temp registers with hard registers in
  bpf instructions, allow for a maximum of 10 dereferences of vector "partition",
  up from 2.
  (post_alloc_cleanup): Avoid removing redundant instructions if they
  are their block's only instruction since removing them will cause a null pointer
  deref in bpf-translate.cxx (output_probe).
bpf-opt.cxx
This page took 1.19814 seconds and 5 git commands to generate.