summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/vfs.py
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2025-02-19 01:57:17 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2025-06-18 00:57:14 +0300
commit101841c38346f4ca41dc1802c867da990ffb32eb (patch)
treeb24a1cf0dc2d7ce8072a6ebc4db7a6b03b7db231 /scripts/gdb/linux/vfs.py
parent19272b37aa4f83ca52bdf9c16d5d81bdd1354494 (diff)
downloadlinux-101841c38346f4ca41dc1802c867da990ffb32eb.tar.xz
[ceph] parse_longname(): strrchr() expects NUL-terminated string
... and parse_longname() is not guaranteed that. That's the reason why it uses kmemdup_nul() to build the argument for kstrtou64(); the problem is, kstrtou64() is not the only thing that need it. Just get a NUL-terminated copy of the entire thing and be done with that... Fixes: dd66df0053ef "ceph: add support for encrypted snapshot names" Tested-by: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com> Reviewed-by: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'scripts/gdb/linux/vfs.py')
0 files changed, 0 insertions, 0 deletions