[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20211014093108.3fdf22bd@gandalf.local.home>
Date: Thu, 14 Oct 2021 09:31:08 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: Yafang Shao <laoar.shao@...il.com>
Cc: Kees Cook <keescook@...omium.org>,
Peter Zijlstra <peterz@...radead.org>,
Petr Mladek <pmladek@...e.com>,
Al Viro <viro@...iv.linux.org.uk>,
Andrew Morton <akpm@...ux-foundation.org>,
Valentin Schneider <valentin.schneider@....com>,
Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
qiang.zhang@...driver.com, robdclark@...omium.org,
christian@...uner.io, Dietmar Eggemann <dietmar.eggemann@....com>,
Ingo Molnar <mingo@...hat.com>,
Juri Lelli <juri.lelli@...hat.com>,
Vincent Guittot <vincent.guittot@...aro.org>,
Benjamin Segall <bsegall@...gle.com>,
Mel Gorman <mgorman@...e.de>,
Daniel Bristot de Oliveira <bristot@...hat.com>,
David Miller <davem@...emloft.net>, kuba@...nel.org,
LKML <linux-kernel@...r.kernel.org>,
Vladimir Zapolskiy <vzapolskiy@...il.com>,
David Howells <dhowells@...hat.com>
Subject: Re: [PATCH v4 2/5] connector: use __get_task_comm in
proc_comm_connector
On Thu, 14 Oct 2021 17:26:16 +0800
Yafang Shao <laoar.shao@...il.com> wrote:
> > > But that should probably be a separate patch.
> >
> > strscpy_pad() is the right thing here -- it'll retain the NUL-fill
> > properties of strncpy and terminate correctly.
> >
>
> strscpy_pad() can also work, and seems more simple.
I'm fine either way. As long as the string that is updated is terminated.
-- Steve
Powered by blists - more mailing lists