From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2040246797 for ; Sun, 18 Jan 2026 09:37:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768729037; cv=none; b=spzQoa01/205iiIT/79o7dTcZVxxfuqwX0d2Ulpcfo2os8bEb00Q4aHeZ1PqqjMeupKHi2UChHMHUYG5OBEJoD0dAobFHgQJ2t0iX2E8N9utZGfsUaOC41hol2s53vcLVuao5FBjSN8yP9aK0i7Hi11Rfun2nT1bUE8Nav6vom0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768729037; c=relaxed/simple; bh=dBoxj9nBj23anAoOYNhu8i4sW78L65pVmBQM+bIdaSk=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=MwtdFPCoJuTRMIbXuIfjMWZ9YkaF+VRqrgoFUvbHT0iy/BG22yowaTpbpi6NszygxikKFgIIxPpMOYsozdgeECsXq07iNjCzYMXmk7JliwNfRUmUdxjmHSjG4tBkiBtFGEl3JgjJVVbp89/RU+p155lQokKn0EdO9BIrOQZBzRo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=h8Vp0Vuo; arc=none smtp.client-ip=209.85.128.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="h8Vp0Vuo" Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-47ee432070aso18437045e9.1 for ; Sun, 18 Jan 2026 01:37:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1768729034; x=1769333834; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=Ju1+XQC2ZPS3QAfDSxBCfWKu5AS8wPZiPApknbHzui4=; b=h8Vp0Vuo9T17Sd5ZEqvGCoMwQrqSjy/T3g2B97wh4xXTgrnz7gPezZcOPiPbQa8ah3 b8akpGA1fTK7tWHlARYzBdBEsClT6NwkCrhcCBwIcWDFvN6usRms2C2b2GfQHxd4rdq/ 86j6A+lrpvuT2sIjAs9g/c22WbAHeBIjE5ckjJuGbFjhRHsAwhDuRq6PzRh1dmgk6B/a GfkM9NfsI6nn6SXky7HWxMyrv6sqYYHnaBdvaXzdv4XwDht94p8zI6C9P570y5Vpk7W7 f8EdiBq74+MuUQvjVhO3XRoS4MTFfFMZ/PsXsCef36FsgcYI76Rn8zBbIkzrqyrhERWk g6EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768729034; x=1769333834; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ju1+XQC2ZPS3QAfDSxBCfWKu5AS8wPZiPApknbHzui4=; b=UHs7Wgc9uE+uubLi6n2Qt9b2du21lNxs2ELWHvlwpfcCDr6TfEhjI/uoIkC/03WfyJ MPt00hSRGztnDVF4eWajj+dRBbTLi3j4ddnxCi/vd6oJeMdX3VcISrVm5ethYHWaUYXa 78a8IiUDuXHfuCswHGU5iC2KKPfU8RJV/wXAOky5cBNjCHEBnugShf7EsgSS9yzdC7Vb G474a1v4KF1IpmaOUWjiwi3LaSloEOGLt8XNUwu6tjysCzJ0iaLIen/oxUZ+k/+jh/1R Iv+If3gGPH1M/Wr6T61dF3MvutP2pG5Qihtu807ZmQJmKB8R/hpR5kzpdVCnm4uMDTow Yekg== X-Forwarded-Encrypted: i=1; AJvYcCWxSAd67TN+F1nPtRZViD0ugVklGROmG1G5joqN/GFWT5/hWKTsp5iw1fNFiPd9FFVdeakTQcElbMcNVaE=@vger.kernel.org X-Gm-Message-State: AOJu0Yy0Nnf7ekUsiputcQDQ63XoxT8ep7WkncUE7aXofdQu71EKij7W f/gHXhZmiABcIkjGvU5HyQkotJKo0Kn4IxRD6j8pVban5eCnaWQdea/nA8+gOL4vjnKWWxGOetI gsu51vAcd9oTpJYL8fA== X-Received: from wmbgx18.prod.google.com ([2002:a05:600c:8592:b0:477:5a4b:d57f]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:6388:b0:480:1c10:5633 with SMTP id 5b1f17b1804b1-4801eb10a70mr96487575e9.26.1768729034301; Sun, 18 Jan 2026 01:37:14 -0800 (PST) Date: Sun, 18 Jan 2026 09:37:13 +0000 In-Reply-To: <20260117162242.950194-1-jason.kei.hall@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260117162242.950194-1-jason.kei.hall@gmail.com> Message-ID: Subject: Re: [PATCH rust-next] rust: binder: refactor context management to use KVVec From: Alice Ryhl To: jkhall81 Cc: Greg Kroah-Hartman , "Arve =?utf-8?B?SGrDuG5uZXbDpWc=?=" , Todd Kjos , Carlos Llamas , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org Content-Type: text/plain; charset="utf-8" On Sat, Jan 17, 2026 at 09:22:42AM -0700, jkhall81 wrote: > Replace the intrusive linked list management in context.rs with KVVec. > This modernization simplifies the ownership model by using standard > Arc-based tracking and moves away from manual unsafe list removals. > > The refactor improves memory safety by leveraging Rust's contiguous > collection types while maintaining proper error propagation for > allocation failures during process registration. > > Suggested-by: Alice Ryhl > Link: https://github.com/rust-for-linux/linux/issues/1215 > Signed-off-by: jkhall81 This could cc the rust for linux list: rust-for-linux@vger.kernel.org Alice