[Bug bpf/24329] New: bpf userspace: consecutive map string lookups overwrite each other

me at serhei dot io sourceware-bugzilla@sourceware.org
Wed Mar 13 16:30:00 GMT 2019


https://sourceware.org/bugzilla/show_bug.cgi?id=24329

            Bug ID: 24329
           Summary: bpf userspace: consecutive map string lookups
                    overwrite each other
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: bpf
          Assignee: systemtap at sourceware dot org
          Reporter: me at serhei dot io
  Target Milestone: ---

global tab

probe begin {
  printf("BEGIN\n")
  tab["foo"] = "a"; tab["bar"] = "b"
  exit()
}

probe end {
  x = tab["foo"]; y = tab["bar"]
  printf("%s%s\n", x, y)
}

should print: ab
prints: bb

Both map lookups overwrite lookup_tmp in the userspace interpreter.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Systemtap mailing list