From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (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 B286D3EBF01 for ; Fri, 23 Jan 2026 18:15:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769192130; cv=none; b=NXI8BLJCOT3nJtvi2U/ArLxuOOI7fsVL8waLla+LHo7hjfz+96hbwsSFBtXXAhEl3aCT9oHnI9IVpZR3EIgSKKRlkIo9d/CxFNOFJlh9obYypDokTySHcJY2YMnWYTxangg9IMtR+pAWMSyYZpd6u/YJrwVIpURwdKlSJw8lb7c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769192130; c=relaxed/simple; bh=GeiVkoys+ZV9WCFIh+pTRLKwojT6VShoLOOSeXRMB68=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cf+c/gWbixU5/C74xILzkXiVYnHLpLBTL22goonWOR+3um+f+SCwpQZMhtAmY0LoFoKx3R0RtQB/mI29BJwWWhUVevsLppgFmJlnZqCGPhuwQqTh1jj2MkRmzUG8rOwppg9Zhaex1wu06dBL3qaiU/VoE1FheHUDISBP/8O1opo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=k+VDZZxn; arc=none smtp.client-ip=209.85.214.173 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=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="k+VDZZxn" Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-2a35ae38bdfso3095ad.1 for ; Fri, 23 Jan 2026 10:15:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1769192129; x=1769796929; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=IohDYNeHkOn/d8TkWg/ylD9BddFNWCchlmynMRMxh7Q=; b=k+VDZZxnMZYiOqjaqAw5FpFZqRBVX5FQ+AuKWuFKPk7FiZlaVyNaZIEjDlZqU2e8oi AX1oeE6dDoHMnW+3PZiwtSEcQ+C5W4Ls1oPm2EjLDEPXSj81gspckTyqt1XRgFGugcIT XVElu56DwH3M1FyN+3XEnr4Cv2GyPjJMyLUYGelAfRM6Xvue3LQqawzVctDAGKbfSggu 8cbqS8UR3aTxXZ9J4hunUf5TsBik0/3mfT4I1IX+hI/kaX0RotmYtxXXbr2SziKw3SiS W10HaoHg85UlTs46h0mEYLBYjdGMKYkVDfu2Oumk+Fy5hm5yCkZAB6bTFwtv2EcTOMpg FnMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769192129; x=1769796929; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IohDYNeHkOn/d8TkWg/ylD9BddFNWCchlmynMRMxh7Q=; b=CWPwVi8PRq4BTMLvnZ9LEOBf0awOPaQmTLZcTJyw+1vfD3njAnF1jT/BypbDezLXPj E810mBPnHehrvk57zkxu7EGZIzPenXKw7aUDY2grtCrHzxonE0twI0n16ot9h7yhX2jL 0vuDg6w+bgrCtpWN+Hq9rpjJ9+zsNiCD/PPn3pTBSVl+IPqzQ3BCteeXBmEmrgb2cm7H 1EB01p8NYZC9deOuZLK91qZtx207+BhTIa/ZGXIEDDA4GA4CSa+KxyzrcxuzhUkOernq marKK2rPXAB849WhLyWKDJvv1TuD7mAQcw8UgyfgJ0wWgmqVbOKsJAfAPrVbSNyalOYk sx0A== X-Forwarded-Encrypted: i=1; AJvYcCWWku030q/yqOk2gkn/BcZq3dEPuTXC8d9tT/Uk2DgSJb2esYkAcXHsUsjjFCuI0tj6BmXdy6BlY190Dhg=@vger.kernel.org X-Gm-Message-State: AOJu0Yz0xWCtbnk0UWJLyJ5xoUypU10aRY/9v3BO/rmt5o4Yb/EogCr2 OqaA4DFCVb5qyDRGnQav7wkREnU5SRdJPnyT5sYh4wZz5OqSC4z/+N2Rm1RKkAEa/Q== X-Gm-Gg: AZuq6aLrPQaXxIJADhcyJ0ck3JHaX8LlPaTfwbNyEmOCiJfoXEPW12rspo4Z85PEOR2 ayz3J0/aD6ay2l2HYBs4+2jeIFIKBfdhH6a1OaeCRFwSGL0ZTb7ipU2YRoqJyMErm6qcJrP2uX9 Nh8mJFz/+l1eRNAyb8VMzRpZcLSLG1O+B7QSHyMrdAqCLwcThLSIMXXtVjt1WgxiHFLzdY4d2i1 tMyvqEusDq82WUoBhQwWgBJTnvDgSXYLX1B5jnGxLprU0PIqURvgICjVN3aU3YHnPE4Xh7z+BYH 1DBgDMJycr6/c8N1wq8obnFY1N5Rgato/m12p2Mkk0LIlh4UciGUuYhoXNrgYBDbtMV5U7F0Cul Ygx+F32ARXkrpJbKsrWcTMxOlcyYoftI6nA72w3iY5+58rHrgkoiYKhpG78JTpCk3d8eMZEe5PN vDoILGbSpsfDFDavZINUEa8FuL0LaB/cwv13rPxk3Br1z2dfgaVCMX0jV9Morc X-Received: by 2002:a17:902:b216:b0:294:ecba:c8e with SMTP id d9443c01a7336-2a82409033emr18055ad.3.1769192128631; Fri, 23 Jan 2026 10:15:28 -0800 (PST) Received: from google.com (210.53.125.34.bc.googleusercontent.com. [34.125.53.210]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2a802dcd97bsm26088195ad.35.2026.01.23.10.15.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jan 2026 10:15:27 -0800 (PST) Date: Fri, 23 Jan 2026 18:15:23 +0000 From: Carlos Llamas To: Alice Ryhl Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] rust_binder: add additional alignment checks Message-ID: References: <20260123-binder-alignment-more-checks-v1-1-7e1cea77411d@google.com> Precedence: bulk X-Mailing-List: linux-kernel@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: <20260123-binder-alignment-more-checks-v1-1-7e1cea77411d@google.com> On Fri, Jan 23, 2026 at 04:23:56PM +0000, Alice Ryhl wrote: > This adds some alignment checks to match C Binder more closely. This > causes the driver to reject more transactions. I don't think any of the > transactions in question are harmful, but it's still a bug because it's > the wrong uapi to accept them. > > The cases where usize is changed for u64, it will affect only 32-bit > kernels. > > Cc: stable@vger.kernel.org > Fixes: eafedbc7c050 ("rust_binder: add Rust Binder driver") > Signed-off-by: Alice Ryhl > --- Acked-by: Carlos Llamas