From: "Alexandre Courbot" <acourbot@nvidia.com>
To: "Marwan Mohamed Zein" <marawanzein222@gmail.com>
Cc: <ojeda@kernel.org>, <rust-for-linux@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <boqun@kernel.org>,
<gary@garyguo.net>, <bjorn3_gh@protonmail.com>,
<lossin@kernel.org>, <a.hindborg@kernel.org>,
<aliceryhl@google.com>, <tmgross@umich.edu>, <dakr@kernel.org>,
<daniel.almeida@collabora.com>, <tamir@kernel.org>,
<work@onurozkan.dev>, "spidermana" <xuyiwen14@gmail.com>
Subject: Re: [PATCH] rust: kernel: fix lifetime of copy_from_iter_raw
Date: Sat, 14 Nov 2026 15:30:42 +0900 [thread overview]
Message-ID: <DMUQ0R92HOFF.RHMRR3F1JDES@nvidia.com> (raw)
In-Reply-To: <20261114024515.1000882-1-marawanzein222@gmail.com>
On Sat Nov 14, 2026 at 11:45 AM JST, Marwan Mohamed Zein wrote:
> From: martell0x1 <marawanzein222@gmail.com>
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@gmail.com>
> Closes: https://github.com/Rust-for-Linux/linux/issues/1265
> Signed-off-by: martell0x1 <marawanzein222@gmail.com>
On these tags as well.
prev parent reply other threads:[~2026-11-14 6:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-14 2:45 [PATCH] rust: kernel: fix lifetime of copy_from_iter_raw Marwan Mohamed Zein
2026-11-14 6:30 ` Alexandre Courbot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DMUQ0R92HOFF.RHMRR3F1JDES@nvidia.com \
--to=acourbot@nvidia.com \
--cc=a.hindborg@kernel.org \
--cc=aliceryhl@google.com \
--cc=bjorn3_gh@protonmail.com \
--cc=boqun@kernel.org \
--cc=dakr@kernel.org \
--cc=daniel.almeida@collabora.com \
--cc=gary@garyguo.net \
--cc=linux-kernel@vger.kernel.org \
--cc=lossin@kernel.org \
--cc=marawanzein222@gmail.com \
--cc=ojeda@kernel.org \
--cc=rust-for-linux@vger.kernel.org \
--cc=tamir@kernel.org \
--cc=tmgross@umich.edu \
--cc=work@onurozkan.dev \
--cc=xuyiwen14@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox