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.
This commit is contained in:
Dmitry Vyukov 2019-04-05 08:45:44 +02:00
parent dae7a62f02
commit c3d7012379
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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",
},
{