Re: [PATCH] debugfs: Fix debugfs_read_file_str()
From: Greg Kroah-Hartman
Date: Fri Jun 04 2021 - 04:41:48 EST
On Fri, Jun 04, 2021 at 10:39:43AM +0200, Peter Zijlstra wrote:
> 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>
Yes, I'll pick it up now, thanks.
greg k-h