summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm/sev.c
diff options
context:
space:
mode:
authorDietmar Eggemann <dietmar.eggemann@arm.com>2021-05-27 11:11:05 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-06-04 15:01:08 +0200
commitf501b6a2312e27fffe671d461770426fe5162184 (patch)
tree6af391ab1c113efbe29dd13c9ae7213eb6a00647 /arch/x86/kvm/svm/sev.c
parent8124c8a6b35386f73523d27eacb71b5364a68c4c (diff)
downloadlinux-f501b6a2312e27fffe671d461770426fe5162184.tar.bz2
debugfs: Fix debugfs_read_file_str()
Read the entire size of the buffer, including the trailing new line character. Discovered while reading the sched domain names of CPU0: before: cat /sys/kernel/debug/sched/domains/cpu0/domain*/name SMTMCDIE after: cat /sys/kernel/debug/sched/domains/cpu0/domain*/name SMT MC DIE Fixes: 9af0440ec86eb ("debugfs: Implement debugfs_create_str()") Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com> Link: https://lore.kernel.org/r/20210527091105.258457-1-dietmar.eggemann@arm.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86/kvm/svm/sev.c')
0 files changed, 0 insertions, 0 deletions