From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f73.google.com (mail-wr1-f73.google.com [209.85.221.73]) (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 4D6B2477E34 for ; Thu, 2 Jul 2026 10:00:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782986402; cv=none; b=PErmIL3eZqDRNGDXqh4WmZDVLZ1EUCC8Uq+wvuQxUkiI+USWqb7Z1g00+OSOzzNBt72wqVmWMNbvfZWqFuBPFnwTjGKDU9/n/I+hzYeHu2Ke491aSRaMIp1xjWrvuYvLUNE/4W05GYhsRwxrcyEdfjA/7vva1Cqw7g7dchdPbgc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782986402; c=relaxed/simple; bh=BSA2WdyfbLCUhzNNGPs5/C9IUi3QFF+5MumSiBfzJ4o=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=kXcsY8IptwPfUAlGzj8IbyvZqCCD6RJx9bMmJA1VtT5tPGwDKOLvFlzJuWUECYvAP6uM2GLTUki58lRXoTGS+IUY4Q+aPHzx+xQSSOOtull9BqAG5tdobd4l1yXKNyhLzB0dHzAR59FSEwKYLbZ1W+qhKf8vpM38OrRLWq4noN4= 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=bp3tD5YC; arc=none smtp.client-ip=209.85.221.73 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="bp3tD5YC" Received: by mail-wr1-f73.google.com with SMTP id ffacd0b85a97d-47127ee7e07so1079585f8f.2 for ; Thu, 02 Jul 2026 03:00:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1782986399; x=1783591199; 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=6uEKCYanCW33pB2ww8Id6q0Z68mqRCxROZRE1/7Rx8I=; b=bp3tD5YCU7waRP3TtvF+VA97Urfc6POFcUWkk3e+V9bF85nbcrOZQj0tnhwgOd3jGe 0ys7OvurJ1Kn9chjGr/eC8BBaslKoGl0H4ZemIr6Km5L9FSr3WzsX5PDWbwb+KKXRMc/ 66mMN3TRYiU+645SOIBtYA7A39AvzmeAGDsObup13hFl6E4GMuyf1Vjdle0cnX9hxbXO DJhLVUaHLCQ6FXPRt8+0VObv3p7D3sYcolkYOE07RC0H9JDLLALiwYKNeM3J/2k3o8Xb lllz3kGE3FEuVa5QG7PBM9E46r3XsNuzolYMr7an2jb/XuYsn8CG27XA9EIu3GWmRL8+ 5XUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782986399; x=1783591199; 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=6uEKCYanCW33pB2ww8Id6q0Z68mqRCxROZRE1/7Rx8I=; b=bfAkyTK5J58nzb1Tr6AfFVwySM4CZVTQZj3t2e2CvdDGaLN+CtCWtqovviJ+WO3H4j sGTnXr2u/pHTseFkstrYNNgXdymWG7ggiUZdCXYq+aiFo0K2poshZa6uUg/buH0ktZ9/ VMQ0SVEa/trwI4eBFkP9C2o2K21SfmD1LSISzNpLE0y41vqebnYeW8Hga0EMVOlZfu3W fQXJllJbaNZuQLhjDnofSAxBxR32G4vI12Yev5AsPRb6QdNaCDTJPSK85qevJR8KfTCN wC6ybSSDBspADlFtOlSEDLysxU1mS/8veO/0EaXqUSYS0a3olCvbf3q9A/HBYlHgfCy8 Svow== X-Forwarded-Encrypted: i=1; AHgh+Rr7La2als0bWkalDMxy1CVMi6dt5EcWsUIKO8vZHGoY+zj6F3mqeGMA/sB9IhcrqeTwvGTpNuw9utAMbIY=@vger.kernel.org X-Gm-Message-State: AOJu0Yxb+D3x14JOHby/zdI9fuk33JCKz29wcYTpRY5kT6KE6JL923W1 HfBHLEYoxwAi9lJKnx7HNRQ46Um+APnBK6Wv+gpjRBjXVaU47GEvnusnTjz4ColWl9pnunoK5wT KEbQTAM78uZt3yN52VQ== X-Received: from wrvq16.prod.google.com ([2002:a5d:61d0:0:b0:478:d483:f095]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a5d:5d82:0:b0:46f:7d90:8125 with SMTP id ffacd0b85a97d-477578976c3mr8573530f8f.15.1782986398482; Thu, 02 Jul 2026 02:59:58 -0700 (PDT) Date: Thu, 2 Jul 2026 09:59:57 +0000 In-Reply-To: <20260625103957.730-1-iganschel@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260621210134.441-1-iganschel@gmail.com> <20260625103957.730-1-iganschel@gmail.com> Message-ID: Subject: Re: [PATCH v3] rust_binder: reject context manager self-transaction From: Alice Ryhl To: Keshav Verma Cc: Carlos Llamas , Greg Kroah-Hartman , "Arve =?utf-8?B?SGrDuG5uZXbDpWc=?=" , Todd Kjos , Christian Brauner , Miguel Ojeda , Boqun Feng , Gary Guo , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, stable@kernel.org Content-Type: text/plain; charset="utf-8" On Thu, Jun 25, 2026 at 04:09:57PM +0530, Keshav Verma wrote: > Rust binder resolved handle 0 to the context manager node, but it does not > reject the case where the caller owns the same node. > > The C binder driver rejects transactions from the context-manager process > to handle 0 after resolving the target node. Match that behavior in Rust > Binder by rejecting handle 0 transactions when the resolved context-manager > node is owned by the calling process. > > This applies to both synchronous and oneway transactions because both paths > resolve the target through Process::get_transaction_node(). > > Cc: stable@kernel.org > Fixes: eafedbc7c050 ("rust_binder: add Rust Binder driver") > Signed-off-by: Keshav Verma Reviewed-by: Alice Ryhl