lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <09e11947-beee-2e4e-843b-53ad7214f67c@huawei.com>
Date: Fri, 1 Nov 2024 09:45:11 +0800
From: Jinjie Ruan <ruanjinjie@...wei.com>
To: Steven Rostedt <rostedt@...dmis.org>, Mathieu Desnoyers
	<mathieu.desnoyers@...icios.com>
CC: <mhiramat@...nel.org>, <linux-kernel@...r.kernel.org>,
	<linux-trace-kernel@...r.kernel.org>
Subject: Re: [PATCH v2] tracing: Replace strncpy() with strscpy() when copying
 comm



On 2024/10/31 23:48, Steven Rostedt wrote:
> On Thu, 31 Oct 2024 11:12:06 -0400
> Mathieu Desnoyers <mathieu.desnoyers@...icios.com> wrote:
> 
>>> --- a/kernel/trace/trace.c
>>> +++ b/kernel/trace/trace.c
>>> @@ -1934,7 +1934,7 @@ __update_max_tr(struct trace_array *tr, struct task_struct *tsk, int cpu)
>>>   	max_data->critical_start = data->critical_start;
>>>   	max_data->critical_end = data->critical_end;
>>>   
>>> -	strncpy(max_data->comm, tsk->comm, TASK_COMM_LEN);
>>> +	strscpy(max_data->comm, tsk->comm);  
>>
>> make allyesconfig + make please ?
> 
> Or at a minimum, make sure all the code you change is compiled.

Sure, x86 and arm64 allmodconfig is ok

Thank you!

> 
> -- Steve

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ