From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796486501; b=D2Jit4B51cUu0CjtW6sutxqRCCp90QQvkYORzSwHwWOy56nTbSUqM/nool4eNVjYJbxY k7m6r4yONjTI8Qris1Pr62CMR3fAB5hQsfaFEeLk6NldGDyP/Jbxm6iR55dqc5wxluAtz ajZyV8RKr/wBh2zuAQYwcDTbfRalTRiRIl/FuNEwsz1pwxmjJ0moqjaQead+Ckbi6X9yu r5fhNsREP6Kz3r9zm24qZn6YS2RWndg+stsbS5tdXsx4qfYAxmkZhh1ZMSRAy2Wn3AA+E 6isvUaP4TC2ghAHKrFeBb+0HnO233WlQ85PbnrpiiI1QPo+LzuHVpTaAPfMqlVlhLlQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796486501; h=Received:DKIM-Signature:Content-Type:Date:Message-Id:Subject:Cc:To: From:Mime-Version:Content-Transfer-Encoding:X-Mailer:X-TUID; bh=OUZwyZdQsWwsXAP8iFKo1YYcN8RJgjRH5M8fXQJ86EU=; b=Bf2zt+tOnRkurQhhxAXBsafrSdeBMj2gc7VI1aT2+A5/vaMHwBjXLzpM9uQdtcbsD7Mg vNx8TsgZRK1iqQ88g8IdNLYJyljy5LdjIb46TFmO+KPbWqY0MpOZ0HcT+v0I2ea8Uhe/y z8XfNZUqm9xv7dTYttmFSnu1RfVl+hCXiK5UBWEZFEHnVglLlpsAsWZf7WPAygFKgZrPp l3C4tGAx8e6ox++TEEmCnnq0LvBYYpdWxBwEOAc3rs6FH1uEvCqdNEpSKeRE+la5wCj43 UMWoqH5GUuceY4gaozVM5xulDkgtMiHse7QKnrMFlGMfeCPNU1bd2J0pdPNhA/8IICA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=owSa4gl1; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EF30F606A31F; Sat, 5 Dec 2026 16:01:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=owSa4gl1 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 382841F0092B; Sat, 5 Dec 2026 16:01:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796486500; bh=OUZwyZdQsWwsXAP8iFKo1YYcN8RJgjRH5M8fXQJ86EU=; h=Date:Subject:Cc:To:From; b=owSa4gl1gsvuG4g1YrKqMs8y4G/N1YbMNn5/Wh8ruh6urwBYTMQCkqm39Fo8IkMJA f15pfib75snBlD5YGSFHzOgntZ6jZZEVmi6MUG+Zlh+6ogLJjwB2aW8Q30KkDARmnn kPtgd+MZMxfidA8w+cM8aK8p0eV1pUqe8ym1xj44R9LHqwJI6+ZS9orEbm4/WZUFvR uLz32okC0csDIbFLhFv8o/RhsK2Y6ZBD5l3aR36tOQMT91SKo65H9vKHySKxAls5d/ ZJh7TZioBO7gV79FYFQGYYfJ4fiKDwJsodDMkUw901Pi6A8o5tRbV6DZ3+i1N/jXS/ EFmjenFN7DhIA== Content-Type: text/plain; charset=UTF-8 Date: Sat, 05 Dec 2026 17:01:35 +0100 Message-Id: Subject: [GIT PULL] Alloc changes for 7.5-rc1 Cc: "Alice Ryhl" , "Lorenzo Stoakes" , "Vlastimil Babka" , "Liam R. Howlett" , "Uladzislau Rezki" , "Boqun Feng" , "Gary Guo" , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , "Benno Lossin" , "Andreas Hindborg" , "Trevor Gross" , "Daniel Almeida" , "Tamir Duberstein" , "Alexandre Courbot" , =?utf-8?q?Onur_=C3=96zkan?= , , To: "Miguel Ojeda" From: "Danilo Krummrich" X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mailer: aerc 0.22.0-0-gc2f86b7abde3 X-TUID: jV4PuHM9o4+6 Hi Miguel, The stable tag alloc-vec-7.5-rc1, containing ArrayVec and Vec::{try_}push_init(), has been shared with the DRM tree. Thanks, Danilo The following changes since commit 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4= : Linux 7.4-rc1 (2026-11-01 13:26:31 -0800) are available in the Git repository at: https://github.com/Rust-for-Linux/linux.git tags/alloc-7.5-rc1 for you to fetch changes up to 0af3f653e1559e651c0fe143791a3e125c7f6a29: rust: alloc: add a ring buffer implementation (2026-12-02 20:55:51 +0100) ---------------------------------------------------------------- Alloc changes for 7.5-rc1 - Collections: - Add ArrayVec, a fixed-capacity vector with embedded storage and support for in-place construction and element initialization. - Add RingBuffer, a fixed-capacity FIFO buffer generic over the backing allocator. - Add Vec::try_push_init() and Vec::push_init() for in-place element initialization with fallible and infallible initializers. - Check the length <=3D capacity precondition in Vec::from_raw_parts() with a debug assertion for nonzero-sized elements. - Memalloc: - Add alloc_scope() for per-task NoIo, NoFs, NoReclaim and Pin allocation policies, restoring the previous policies when the closure returns. ---------------------------------------------------------------- Andreas Hindborg (2): rust: alloc: add per-task memalloc scope abstractions rust: alloc: add a ring buffer implementation Eliot Courtney (2): rust: alloc: add Vec::try_push_init and Vec::push_init rust: alloc: add ArrayVec Peder Bergan (1): rust: alloc: check the length precondition in Vec::from_raw_parts rust/bindings/bindings_helper.h | 1 + rust/helpers/mm.c | 10 +++ rust/kernel/Kconfig.test | 10 +++ rust/kernel/alloc.rs | 10 +++ rust/kernel/alloc/arrayvec.rs | 351 +++++++++++++++++++++++++++++++++++= ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ rust/kernel/alloc/kvec.rs | 103 ++++++++++++++++++++++++++- rust/kernel/alloc/kvec/errors.rs | 32 ++++++++- rust/kernel/alloc/ringbuffer.rs | 453 +++++++++++++++++++++++++++++++++++= +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= ++++++++ rust/kernel/alloc/scoped.rs | 134 +++++++++++++++++++++++++++++++++++ 9 files changed, 1100 insertions(+), 4 deletions(-) create mode 100644 rust/kernel/alloc/arrayvec.rs create mode 100644 rust/kernel/alloc/ringbuffer.rs create mode 100644 rust/kernel/alloc/scoped.rs