Skip to content
Permalink
Browse files

pkg/report: remove .PID from syz-executor

pkg/ipc changed format of binaries, but pkg/report wasn't updated.
Update pkg/report for the new format.
  • Loading branch information...
dvyukov committed Apr 5, 2019
1 parent dae7a62 commit c3d701237955a14c9dc23ed609d84aa739b8c67c
Showing with 2 additions and 1 deletion.
  1. +1 −0 pkg/ipc/ipc.go
  2. +1 −1 pkg/report/report.go
@@ -196,6 +196,7 @@ func MakeEnv(config *Config, pid int) (*Env, error) {
// we create a link from 'syz-executor.15' to 'syz-executor' and use 'syz-executor.15' as binary.
// This allows to easily identify program that lead to a crash in the log.
// Log contains pid in "executing program 15" and crashes usually contain "Comm: syz-executor.15".
// Note: pkg/report knowns about this and converts "syz-executor.15" back to "syz-executor".
base := filepath.Base(env.bin[0])
pidStr := fmt.Sprintf(".%v", pid)
const maxLen = 16 // TASK_COMM_LEN is currently set to 16
@@ -155,7 +155,7 @@ func replaceTable(replacements []replacement, str string) string {
var dynamicTitleReplacement = []replacement{
{
// Executor PIDs are not interesting.
regexp.MustCompile(`syz-executor[0-9]+((/|:)[0-9]+)?`),
regexp.MustCompile(`syz-executor\.?[0-9]+((/|:)[0-9]+)?`),
"syz-executor",
},
{

0 comments on commit c3d7012

Please sign in to comment.
You can’t perform that action at this time.