From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 91C75370AE3; Tue, 19 May 2026 10:39:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779187184; cv=none; b=tZ3XvPmOOY2dAXgHsLPtF0xsZwGxJXoesJVnL/ujdjvcNEafGMXacGxcxzO1fvRZg9Jq1FRbJTdLAroIQJVKVHGHZJiZQsubOQK42rxuTh5+GflnurS5pQrNeF5KHXGRvY0XaGEuKK0C6jOnLNOAXBUeuPQ4m8b0gBmrjeX5W+I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779187184; c=relaxed/simple; bh=8d9cpV7MYabXiaU/WPwazqmKL15k0EHx4/GtitV+QU4=; h=Content-Type:Date:Message-Id:Subject:Cc:To:From:Mime-Version: References:In-Reply-To; b=C9teXddmzYem285CBx+MzwnegKFOztkT6ojQchUSd5u4NqOnx3RVkyA58pZGN85WllcZyR3z6sysqhDoe4I+SpH7zh+0q5wDV5X2rFwKQM1g91kHdyK3tUgakZK2IO3fE3fnBmLGBiNftpiWBgKtNBY5/5ag0YTgf9QaQAEXswY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=H31fv2H7; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="H31fv2H7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2CCBC2BCF6; Tue, 19 May 2026 10:39:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1779187184; bh=8d9cpV7MYabXiaU/WPwazqmKL15k0EHx4/GtitV+QU4=; h=Date:Subject:Cc:To:From:References:In-Reply-To:From; b=H31fv2H7Ias22CXBpSvo+ewqfFwVMzz7gnADIyQKS0WjPxHcwn4Y9f9IWghXxGQ4T g6ZtDZP354KXG6/9XPA6DNIoE7MMlbcM3bJx/engJFqqD9O+UmIpCtsJB98sPRmG5N 3IDAD+V+Br5uYM7gEN/epmZwIc8Hxlr2/8BFjiBcWZlPwo60Fp8Llby2uAhwfiFLhe HPhGYBNxwEie/cw527WdH4byKYHRyYRU3ecjDFFHjiy0EA41H/4DV08fYrhEKGzaep jXlsz/Fyufsk/Gi92Fd56mtpb+/KWaK3t4HuQByRxJ2Tu9oRZ9i+SwJxpbqQddZnq/ lAojQ4HSxpc7g== Content-Type: text/plain; charset=UTF-8 Date: Tue, 19 May 2026 12:39:36 +0200 Message-Id: Subject: Re: [PATCH v3 10/27] rust: pci: make Driver trait lifetime-parameterized Cc: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , To: "Eliot Courtney" From: "Danilo Krummrich" Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable References: <20260517000149.3226762-1-dakr@kernel.org> <20260517000149.3226762-11-dakr@kernel.org> In-Reply-To: On Tue May 19, 2026 at 6:52 AM CEST, Eliot Courtney wrote: > Is this really sound without a covariance proof? For example, with this > version you could stash a Cell> (even > with Gary's suggested Core<'_> change) and then observe that reference > on Drop of Data, which seems unsound to me. The Core<'_> change seems unrelated, Core is not Sync, so you can't store i= t in the first place. Otherwise, I don't see how one can exploit this. The formal invariance of Cell> is not practically exploitable beca= use the framework controls what lifetimes are available and everything reachabl= e through 'bound outlives the data; something that is shorter lived than 'bou= nd can't be stored either. Bringing back ForLt for this reason seems undesirable, as it has a real des= ign cost.