scripts/decode_stacktrace: match basepath using shell prefix operator, not regex
authorNicolas Boichat <drinkcat@chromium.org>
Fri, 12 Jul 2019 03:52:27 +0000 (20:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Sep 2019 06:19:33 +0000 (08:19 +0200)
commit90741c3291f2f6c54068e1726370ed0b47ec4885
tree1c0ba0d5bcd737b26a72d0abd6c4ea1706188139
parent6c59cb113e8c2082deab865d4ffb694cdfcbf61f
scripts/decode_stacktrace: match basepath using shell prefix operator, not regex

[ Upstream commit 31013836a71e07751a6827f9d2ad41ef502ddaff ]

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: Sasha Levin <sashal@kernel.org>
scripts/decode_stacktrace.sh