diff options
author | Nicolas Boichat <drinkcat@chromium.org> | 2019-07-11 20:52:27 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-09-21 07:18:05 +0200 |
commit | 854c67e19e73e36e2acf59c17f549ec9bbf2d03c (patch) | |
tree | 446bb94e61d2dee980ea4eb9ad4f52ee78be85b3 /scripts | |
parent | 88f16147459fe1c42e543cf697cdcb7ddf061ffa (diff) | |
download | linux-stable-854c67e19e73e36e2acf59c17f549ec9bbf2d03c.tar.gz linux-stable-854c67e19e73e36e2acf59c17f549ec9bbf2d03c.tar.bz2 linux-stable-854c67e19e73e36e2acf59c17f549ec9bbf2d03c.zip |
scripts/decode_stacktrace: match basepath using shell prefix operator, not regex
commit 31013836a71e07751a6827f9d2ad41ef502ddaff upstream.
The basepath may contain special characters, which would confuse the regex
matcher. ${var#prefix} does the right thing.
Link: http://lkml.kernel.org/r/20190518055946.181563-1-drinkcat@chromium.org
Fixes: 67a28de47faa8358 ("scripts/decode_stacktrace: only strip base path when a prefix of the path")
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/decode_stacktrace.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/decode_stacktrace.sh b/scripts/decode_stacktrace.sh index a7a36209a193..6c2c05a75b54 100755 --- a/scripts/decode_stacktrace.sh +++ b/scripts/decode_stacktrace.sh @@ -85,7 +85,7 @@ parse_symbol() { fi # Strip out the base of the path - code=${code//^$basepath/""} + code=${code#$basepath/} # In the case of inlines, move everything to same line code=${code//$'\n'/' '} |