diff options
author | Sung-hun Kim <sfoon.kim@samsung.com> | 2023-03-14 10:37:07 +0900 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2023-03-19 13:16:21 -0400 |
commit | e400be674a1a40e9dcb2e95f84d6c1fd2d88f31d (patch) | |
tree | 72c1c5db82a8bbc9fc2cedaf7c387dbfcd214cfe /security | |
parent | 8732565549011cabbea08329a1aefd78a68d96c7 (diff) |
tracing: Make splice_read available again
Since the commit 36e2c7421f02 ("fs: don't allow splice read/write
without explicit ops") is applied to the kernel, splice() and
sendfile() calls on the trace file (/sys/kernel/debug/tracing
/trace) return EINVAL.
This patch restores these system calls by initializing splice_read
in file_operations of the trace file. This patch only enables such
functionalities for the read case.
Link: https://lore.kernel.org/linux-trace-kernel/20230314013707.28814-1-sfoon.kim@samsung.com
Cc: stable@vger.kernel.org
Fixes: 36e2c7421f02 ("fs: don't allow splice read/write without explicit ops")
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions