[PATCH v1] rust: bug: update the SAFETY comment for warn_slowpath_fmt() on UML
Miguel Ojeda
miguel.ojeda.sandonis at gmail.com
Fri Oct 2 03:54:47 PDT 2026
On Fri, Oct 2, 2026 at 12:46 PM FUJITA Tomonori <tomo at flapping.org> wrote:
>
> The SAFETY comment says that it is always safe to call
> `warn_slowpath_fmt()` with a valid null-terminated string. This is not
> true. The taint argument must also be a valid taint number.
> Commit 951d09ca450c ("rust: bug: pass TAINT_WARN to warn_slowpath_fmt()
> on UML") fixed a bug where it was not.
>
> List each condition that the call meets: the file name, the taint
> number, and the null `fmt`.
>
> Suggested-by: Miguel Ojeda <ojeda at kernel.org>
> Signed-off-by: FUJITA Tomonori <fujita.tomonori at gmail.com>
Thanks Tomo!
(By the way, you have been authoring all the work in this file -- we
could have an entry for the file in `MAINTAINERS` if you want it)
Cheers,
Miguel
More information about the linux-um
mailing list