Re: [PATCH] debugfs: Fix debugfs_read_file_str()
From: Peter Zijlstra
Date: Fri Jun 04 2021 - 04:40:14 EST
On Thu, May 27, 2021 at 11:11:05AM +0200, Dietmar Eggemann wrote:
> 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()")
> Signed-off-by: Dietmar Eggemann <dietmar.eggemann@xxxxxxx>
Urgh.. so much for last minute changes :/
Greg, AFAICT that commit has since landed in Linus, will you take care
of this?
Acked-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>