mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-27 13:20:34 +00:00
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:
parent
dae7a62f02
commit
c3d7012379
@ -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",
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user