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 B1E3A2E764C; Thu, 30 Oct 2025 15:06:17 +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=1761836777; cv=none; b=Hcs/69c09fDz/GnVMu3rPABi+nuXBIaV9VgyCwUxk4/XkoIJ0g60P81OdcWrR+Is5OSq3oSxcuxtTIaYaEVp8YgYffupQcWYLS7rEGnBVH5/nUdXC8nP1mGidEEqMGemcx3hUivKr34I56zDY15w4gNzUMNInr/Gh5Rpp6X9xpU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761836777; c=relaxed/simple; bh=AEzEyVySA2Xgebyu1JxowEscJUTQoS58os36dQ/uQkY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cBNag+jdVt1R7K9RLophbMLjG1xZih7kHxdPEp4oBKmWNbYjMYP4cGldo1t/+W7tOMcatoaasL6yNy+aqGbigDcV3xc/2eaGJYJG5vFHbypAqM9+6kBE2TzyXiH4avYCwE8ahXpLtAyfYkwtbju0NJLnPf9Imtk2kTRN/lUTzOw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iK3X3H0C; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="iK3X3H0C" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3540C116B1; Thu, 30 Oct 2025 15:06:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761836777; bh=AEzEyVySA2Xgebyu1JxowEscJUTQoS58os36dQ/uQkY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iK3X3H0CVcFRATUp1L86BontxlBhmMwHSu2kqpVy4h4ymGlhVhIx5r7K1d6cqYWPc APfZ0WjuzHF594ukH5dvA8oAd3nChieJ1UWW5Ev6u5mG/xGygyqzxfJTXouKZz8ddG blRZU2xGPebdqeZfuoRY469XPFCAA9xo4mm3kWGo= Date: Thu, 30 Oct 2025 16:06:14 +0100 From: Greg Kroah-Hartman To: Alice Ryhl Cc: Carlos Llamas , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Suren Baghdasaryan , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org Subject: Re: [PATCH] rust_binder: use compat_ptr_ioctl Message-ID: <2025103009-sixfold-peculiar-496c@gregkh> References: <20251030-binder-compatptrioctl-v1-1-64875010279e@google.com> <2025103017-driller-implant-849e@gregkh> Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Oct 30, 2025 at 01:25:19PM +0000, Alice Ryhl wrote: > On Thu, Oct 30, 2025 at 01:38:56PM +0100, Greg Kroah-Hartman wrote: > > On Thu, Oct 30, 2025 at 10:41:04AM +0000, Alice Ryhl wrote: > > > This is commit 1832f2d8ff69 ("compat_ioctl: move more drivers to > > > compat_ptr_ioctl") but for Rust Binder. > > > > You might want to spell out why this is happening, not just refer to > > another commit to try to find that information to make it more clear > > here as to how to attempt to review this :) > > I can replace the commit message with: > > Binder always treats the ioctl argument as a pointer. In this scenario, > the idiomatic way to implement compat_ioctl is to use compat_ptr_ioctl. > Thus update Rust Binder to do that. Sounds good to me!