* [GIT PULL] rust-i2c-next for 7.4
@ 2026-10-21 16:52 Igor Korotin
0 siblings, 0 replies; only message in thread
From: Igor Korotin @ 2026-10-21 16:52 UTC (permalink / raw)
To: Andi Shyti
Cc: linux-i2c, linux-kernel, rust-for-linux, Danilo Krummrich,
Miguel Ojeda, Gary Guo, Nicolás Antinori,
Georgios Androutsopoulos
Hi Andi,
One fix for this window -- a real use-after-free (KASAN-reported, GitHub
issue linked below), not a cleanup.
Thanks
Igor
The following changes since commit 0f6be986ad0eb6fe7338d963a14eaf0dee87677d:
i2c: imx-lpi2c: remove dmaengine_desc_free() (2026-10-13 15:55:40 +0200)
are available in the Git repository at:
https://github.com/ikrtn/linux.git tags/rust-i2c-for-7.4
for you to fetch changes up to e7755b5f29ccbfd1222dd52dc2d6eebf39d02289:
rust: i2c: remove TryFrom<&Device> implementation for &I2cClient (2026-10-21 17:47:21 +0100)
----------------------------------------------------------------
rust: i2c: remove TryFrom<&Device> implementation for &I2cClient
A single fix for the Rust I2C abstractions, targeting 7.4.
Removes an unsound TryFrom<&Device<Ctx>> conversion whose input and
output reference lifetimes were not tied together, letting safe Rust
upgrade a short-lived &Device borrow into an arbitrarily long-lived
&I2cClient that could outlive the underlying device's removal
(use-after-free, reported with a KASAN reproducer). The conversion
had no users, so it's simply removed rather than lifetime-fixed.
Signed-off-by: Nicolás Antinori <nico.antinori.7@gmail.com>
Signed-off-by: Igor Korotin <igor.korotin@linux.dev>
----------------------------------------------------------------
Nicolás Antinori (1):
rust: i2c: remove TryFrom<&Device> implementation for &I2cClient
rust/kernel/i2c.rs | 21 ---------------------
1 file changed, 21 deletions(-)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-21 16:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-21 16:52 [GIT PULL] rust-i2c-next for 7.4 Igor Korotin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®