Re: [PATCH] rust: kernel: fix lifetime of copy_from_iter_raw
From: Alexandre Courbot
Date: Sat Nov 14 2026 - 01:31:10 EST
On Sat Nov 14, 2026 at 11:45 AM JST, Marwan Mohamed Zein wrote:
> From: martell0x1 <marawanzein222@xxxxxxxxx>
Please sign with a full name.
>
> The returned slice is derived from `out`, but lifetime elision
> ties it to `self` because this is a method. Explicitly bind the
> return lifetime to `out` so the returned slice cannot outlive
> its backing buffer.
>
> Reported-by: spidermana <xuyiwen14@xxxxxxxxx>
> Closes: https://github.com/Rust-for-Linux/linux/issues/1265
> Signed-off-by: martell0x1 <marawanzein222@xxxxxxxxx>
On these tags as well.