aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux
diff options
context:
space:
mode:
authorHrutvik Kanabar <hrutvik@google.com>2022-09-30 10:52:11 +0000
committerDmitry Vyukov <dvyukov@google.com>2022-09-30 15:43:22 +0200
commit5e8ac358946b8898e30bb3d9642a1ce5e5b15a5a (patch)
treecf002e7e7342f9db67be6710e1a81247c478a274 /sys/linux
parent45fd7169d5def6b5bc3fb4ff028ba831d1ffa063 (diff)
pkg/report: improve guilty file identification
Previously we would pick the first non-ignored file. Now instead, continue searching the stack trace for more specific files. A "more specific" file wrt the first non-ignored file has: - the same directory prefix - a deeper directory nesting E.g. `fs/ntfs3/*.c` is "more specific" than "fs/*.c". We search for the most specific file (i.e. the deepest nesting), and take the first most specific if there are multiple files with the same nesting. This commit also adds three tests for this behaviour, taken from recent `syzbot` bugs which identified the wrong file. Now the desired file is identified. Only one existing test shows different output with the new behaviour. Updates #3393.
Diffstat (limited to 'sys/linux')
0 files changed, 0 insertions, 0 deletions