[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20220720100243.7c1151a71ae8400b81d46130@linux-foundation.org>
Date: Wed, 20 Jul 2022 10:02:43 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: "Kassey Li (QUIC)" <quic_yingangl@...cinc.com>
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Sasha Levin <sashal@...nel.org>,
Joonsoo Kim <iamjoonsoo.kim@....com>,
Minchan Kim <minchan@...nel.org>
Subject: Re: [PATCH] mm/cma_debug.c: align the name buffer length as struct
cma
On Wed, 20 Jul 2022 10:45:33 +0000 "Kassey Li (QUIC)" <quic_yingangl@...cinc.com> wrote:
> Hi, Andrew:
>
> Is it the case that the output is never >16 chars anyway? If so, we'll be OK.
> >> Yes. I verified on my device by giving cma.name length l< 16 and >16 both. Result is OK. I mean > 16 showed correctly with this patch.
> >> without this patch, cma.name > 16, only showed 16 characters.
>
Well that's my point. With this patch the output is changed and this
might break userspace code which expects the truncation.
That should be OK as there are no guarantees with debugfs interfaces.
I added this as the patch's changelog:
: Avoids truncating the debugfs output to 16 chars. Potentially alters
: the userspace output, but this is a debugfs interface and there are no
: stability guarantees.
Powered by blists - more mailing lists