summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@gmail.com>2026-10-01 21:31:03 +0900
committerMiguel Ojeda <ojeda@kernel.org>2026-10-01 21:52:45 +0200
commit951d09ca450ca76a695016ea76c3fa653bd20439 (patch)
tree4fa1fbaa7f7be7f8e978e4e8260445cebd828656 /tools/lib/python/kdoc/python_version.py
parente91836593fbfb0014c290e9a0bbd86d0b98c1d2f (diff)
downloadlinux-next-951d09ca450ca76a695016ea76c3fa653bd20439.tar.gz
linux-next-951d09ca450ca76a695016ea76c3fa653bd20439.zip
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: stable@vger.kernel.org Fixes: dff64b072708 ("rust: Add warn_on macro") Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com> Link: https://patch.msgid.link/20261001123103.2198104-1-tomo@flapping.org Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions