Files
linux/rust/kernel
FUJITA Tomonori 951d09ca45 rust: bug: pass TAINT_WARN to warn_slowpath_fmt() on UML
On UML, `warn_flags!` calls `warn_slowpath_fmt()` directly. Its third
argument is a taint number, but `warn_on!` passes its bug flags there.

As a result, `add_taint()` gets 2304 instead of 9 (`TAINT_WARN`). The
warning is not recorded: `/proc/sys/kernel/tainted` stays 0 after
`warn_on!` fires, where it should be 512. It also causes an
out-of-bounds write in `add_taint()`.

Pass `TAINT_WARN` directly, as C does on UML.

Cc: [email protected]
Fixes: dff64b0727 ("rust: Add warn_on macro")
Signed-off-by: FUJITA Tomonori <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
2026-10-01 21:52:45 +02:00
..
2025-11-05 00:05:38 +01:00
…
2026-04-03 11:57:35 +02:00
2026-08-20 10:58:44 +10:00
…
2026-08-10 12:53:09 +02:00
2026-08-20 10:58:44 +10:00
…
…
2026-09-06 03:44:00 +02:00
2026-07-30 22:50:15 +02:00
2026-05-25 09:40:52 +05:30
2025-12-28 12:43:56 +01:00