projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d64a10
)
scripts/get_abi: fix source path leak
author
Vegard Nossum
<vegard.nossum@oracle.com>
Sun, 31 Dec 2023 23:59:58 +0000
(
00:59
+0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 1 Feb 2024 00:18:55 +0000
(16:18 -0800)
commit
5889d6ede53bc17252f79c142387e007224aa554
upstream.
The code currently leaks the absolute path of the ABI files into the
rendered documentation.
There exists code to prevent this, but it is not effective when an
absolute path is passed, which it is when $srctree is used.
I consider this to be a minimal, stop-gap fix; a better fix would strip
off the actual prefix instead of hacking it off with a regex.
Link:
https://mastodon.social/@vegard/111677490643495163
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link:
https://lore.kernel.org/r/20231231235959.3342928-1-vegard.nossum@oracle.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/get_abi.pl
patch
|
blob
|
history
diff --git
a/scripts/get_abi.pl
b/scripts/get_abi.pl
index
0ffd553
..
408bfd0
100755
(executable)
--- a/
scripts/get_abi.pl
+++ b/
scripts/get_abi.pl
@@
-98,7
+98,7
@@
sub parse_abi {
$name =~ s,.*/,,;
my $fn = $file;
- $fn =~ s,Documentation/ABI/,,;
+ $fn =~ s,
.*
Documentation/ABI/,,;
my $nametag = "File $fn";
$data{$nametag}->{what} = "File $name";