From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f73.google.com (mail-wm1-f73.google.com [209.85.128.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 7F435316911 for ; Thu, 30 Oct 2025 13:25:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761830724; cv=none; b=RV1a+4bFg15/Z3Cgh+ufE3Is7wKYRmD8C6IhUQKL1BP2MbO+LPySNRrcUQKXIhWGYoBTTgm7vgD8Lx/hCgzp4W1HGrqwZ4GpvyYHEpX3sD5CXsPryJZVUKrKo1hq0jfOMx8qmVpYrm0AUA2YbvbvsNw6tA3A7W1iQ2Lx05RBkvY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761830724; c=relaxed/simple; bh=EBbL28z9+MZVw5L1Pv0y6IwIp7d0O1Hu7XPd9vzv+4E=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=UjTg+EQhbtQy79YsW/bj87ld2+BxBfHlbpCLuxWeSw3hDE12jRBR99jUuqi95QIGiKe7ejqwypnIt8HIVNoCEKk5w8U20ESY3oQ+DDheEuX4CPZUho9g9Oo8ku5g1Rgo99kQHdK2ZbBT/+iJxO22O1wZ0ZFIFw/AUwHIKH5V3Ik= 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=ywQXe4TB; arc=none smtp.client-ip=209.85.128.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="ywQXe4TB" Received: by mail-wm1-f73.google.com with SMTP id 5b1f17b1804b1-476b8c02445so9984225e9.1 for ; Thu, 30 Oct 2025 06:25:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1761830721; x=1762435521; 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=7SeX/dCS6cWxKpNw3QkcX1Xk7rCu/Lia0ZbW7lkHN4o=; b=ywQXe4TBFGJsINg0pYv0IA+lTwGCSmpCq22Ogppws0U6E2t6GJE70/hNG76pvrjpAV pFNeHA2TJcwi3g0Aq/sYYfAcj3evUZ2V3PLLrzwp7ZQ6jr4BGTl1fn6w0mfHy8rnH3PT MF+17zyi7qIztduF68bYzkKpo4HT5CN1mLyHVUPh8ysSa6hLnOD2fuePHb2c5Gwsyju1 8JvOx5ifg1cDMl7J3RZFSlDC61nDYN22bQCPAjroyoNwOc6uB1/DoLFe+gxswIPiZFB9 JINSa7DrhKmjaeLyYte4QqEQ25unB5IzBLf/uxx49v+LtOJKgb5XqtSKr4kvlFHdVVoq Cl1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761830721; x=1762435521; 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=7SeX/dCS6cWxKpNw3QkcX1Xk7rCu/Lia0ZbW7lkHN4o=; b=fymoX078/AA4T1VPFNdjWERWoJy7NQ0NXEgLAs/Pds87bbcU4a29q+0xGqg+xzoesi RN/bu5Qmvo6DKY3leJvaWH0kQQndvVq7GCcFbHixY6MBEyATe53WlL98c00OayhJ9lfA hYRNe7Jy3J2Oux767n+mHayY3Kw6say3YVdxKCo0IbGqSTa65mKsphTDaj5XtAW4qu+p yuAHspq4bWaBWGowM69+G91R+vKU7MvgWk3Tb/b3/BSrYxIiUTTOhBLBi9wK/AxILHqE 3KUMGIbuafZ4Dkv1xFiHT4BU52JdImU/SZgbQAu9iwnh7nsS9x0mUkisLkpojvked8kD vhpQ== X-Forwarded-Encrypted: i=1; AJvYcCU2RoBcY9TEKswysm4UrQwMWyDkZMjLSvcdqL6Yp/yI9AVoHP4PSAuTinekF3K9OxaGEX1DFXaTJRhORhA=@vger.kernel.org X-Gm-Message-State: AOJu0YzF5fw9642vwF6eIQrOuoBaH5ZeZHZfeSlXCLW3Q5f1QIXfPrq9 zjmoWeT50VWhTe7w7AXfh3ELHdUY/S9TR/RDMv7hBksblu/A5FhkX+Sjrodk2DfAQciVkGoj9mr brGgmzb0agzv54y0bGg== X-Google-Smtp-Source: AGHT+IFTtaqS9U/7UQQTwaCrLeQO1lf0jngWAua0qbmHooBBncQ6je3VzSX+qVsJRKDBkzwT5OFndSyoGqXhRE8= X-Received: from wmbz11.prod.google.com ([2002:a05:600c:c08b:b0:475:d8de:fe5b]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:154f:b0:475:de68:3c2e with SMTP id 5b1f17b1804b1-4772687374bmr25909005e9.40.1761830720992; Thu, 30 Oct 2025 06:25:20 -0700 (PDT) Date: Thu, 30 Oct 2025 13:25:19 +0000 In-Reply-To: <2025103017-driller-implant-849e@gregkh> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20251030-binder-compatptrioctl-v1-1-64875010279e@google.com> <2025103017-driller-implant-849e@gregkh> Message-ID: Subject: Re: [PATCH] rust_binder: use compat_ptr_ioctl From: Alice Ryhl To: Greg Kroah-Hartman Cc: Carlos Llamas , "Arve =?utf-8?B?SGrDuG5uZXbDpWc=?=" , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Suren Baghdasaryan , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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. Alice