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] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260112112842.5d5171c3@gandalf.local.home>
Date: Mon, 12 Jan 2026 11:28:42 -0500
From: Steven Rostedt <rostedt@...dmis.org>
To: Alice Ryhl <aliceryhl@...gle.com>
Cc: Borislav Petkov <bp@...en8.de>, Fushuai Wang <fushuai.wang@...ux.dev>,
 akpm@...ux-foundation.org, brauner@...nel.org, cyphar@...har.com,
 dave.hansen@...ux.intel.com, hpa@...or.com, jack@...e.cz, kees@...nel.org,
 linux-kernel@...r.kernel.org, linux-trace-kernel@...r.kernel.org,
 luto@...nel.org, mathieu.desnoyers@...icios.com, mhiramat@...nel.org,
 mingo@...hat.com, peterz@...radead.org, tglx@...nel.org, vmalik@...hat.com,
 wangfushuai@...du.com, x86@...nel.org, yury.norov@...il.com
Subject: Re: [PATCH v2 1/6] uaccess: Add copy_from_user_nul helper

On Mon, 12 Jan 2026 15:40:53 +0000
Alice Ryhl <aliceryhl@...gle.com> wrote:

> I'm getting the impression that strncpy_from_user() is the real problem
> here. It should append a nul byte.
> 
> That would also be a lot less error-prone than the suggested new API.
> Requiring a length of N+1 is not the most immediately-obvious API.

Should we make a strscpy_from_user() API that acts the same as strscpy()
but from user space?

-- Steve

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ