]> git.baikalelectronics.ru Git - kernel.git/commit
erofs: fix up erofs_lookup tracepoint
authorGao Xiang <hsiangkao@linux.alibaba.com>
Tue, 21 Sep 2021 14:35:30 +0000 (22:35 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Sep 2021 08:09:22 +0000 (10:09 +0200)
commite53f83a89a28e36e077f40f458f1c887a46c0a4d
tree0803924885fe59f80528f345e2e270d76f979dc1
parentcec0c15566fa829197c524bb1cb4f9e483f470c1
erofs: fix up erofs_lookup tracepoint

commit 93368aab0efc87288cac65e99c9ed2e0ffc9e7d0 upstream.

Fix up a misuse that the filename pointer isn't always valid in
the ring buffer, and we should copy the content instead.

Link: https://lore.kernel.org/r/20210921143531.81356-1-hsiangkao@linux.alibaba.com
Fixes: b95e3fa8a352 ("staging: erofs: support tracepoint")
Cc: stable@vger.kernel.org # 4.19+
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/trace/events/erofs.h