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 3ABDE414DC1 for ; Tue, 7 Jul 2026 13:18:32 +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=1783430313; cv=none; b=goHnn3h9gk93MqYYl1fkVXuXcgkgUv9ng8iXnNAjNbQ/XUVpcooam0JiN9BW5qvRMLVG2DOuHtsQJ6VzzpfTPdDu3bGn+xiLVC5ll29Imx+xmuHNj9OqlpK8zN68/yzKyLeyaFbO06UpbmiB5Q7TKdFoglAhTd/zhgsquAg2Yak= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783430313; c=relaxed/simple; bh=b6uQNrhNikH2Q0HQopBOVotB+XA9Ug+QLp3Yi/Unzkk=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=kJn2Qk3wCVx7QyUSbCdLDLwjf9D2/ZjVG+vNioUGVf1VUFhVtzVmYOBLjZc4Zz3uG9ZbjUXQ/ZBTtTsURdNDNX/vH7sZPW6vod7NvwWt8nKTJiqsIf9im16gYitq7BiYSwUCqN0HTx0fXrZntbMftexebpMG0oAu6ItcC6M2WOs= 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=twTFpl1A; 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="twTFpl1A" Received: by mail-wm1-f73.google.com with SMTP id 5b1f17b1804b1-493c20d0468so56833945e9.1 for ; Tue, 07 Jul 2026 06:18:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1783430310; x=1784035110; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=rEr1CyyiwHzjsKf/Z8qp2leuOLg38t+LO0nZBG+VMc8=; b=twTFpl1ALfBfuUd/ntDWS1qtEGl0CfYu9P/p2R47wm0nAGUojutMGZ2t+LdorJGcJk G4kWqXDEHkVK+o5vNMJUIX5voSIjNYe/evLY1dSYuYpuuq/QW3r/PHSVfMTtWxKNJgrx f+UVDf4uuWECg94gh8gYlTTrrszK6uS7MAWQgD+bL2NUbVPc53l0SdrXsA528xsZt9sP 0t8r5DO1o7bdbWnCGqCmMTqkMC13UGrPIBlu5KpX1mKQkhhEKCkrVgBGK9sFNVVwrBX4 jr4TNZWtmu8IxxY4PFF8I7BriH8Q757D6KijQ08YWL6ag1Momtt6TpTVqMLcQOrD5YcE RFIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783430310; x=1784035110; h=content-type: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:content-type; bh=rEr1CyyiwHzjsKf/Z8qp2leuOLg38t+LO0nZBG+VMc8=; b=JHvfkptJWw+9ulq0hASlRrBDZD6LWFnsvciuvutBOQOxCs4WHIc/QvE4As1N/CxLKz HLUePlfS70XG5aakyfr3lOAiG/D6dM9XxUcfKaJ0JuTkhhj40xnuOqfxtUqwW3zqzU0f AkIjHi/3r8h9SjtrlgUe+GsuMq4dTBzNd/tLFZc48sv0rZTO8t/3e9R8OYkjX5dDiZg/ xvfVLbk4INNtPoJb61Oily9H+Ln+EhcSkcaeHDS2QayzfyruIeMiqyIxGtYdCMz0fLC4 Jbz47TNpImZvR1Az/YK6Q/duUm9kWYQ+uk8FzXvN6lDAF636LzomdSagePuakgU9vi9M ViLw== X-Forwarded-Encrypted: i=1; AHgh+Rq6zQIhvc60QAebtNiqhJeBtXiP7gfLldDAZc2GEb8aqZ8gTvY36M7WBDf7ICDxWfBOj/JBRD01KmqvCYM=@vger.kernel.org X-Gm-Message-State: AOJu0YxojypAowZtU3ug7GrH9b6JeUHuvh1jiUqz/QObmbCVLVfG29nK 4PNC9pMjTsd4idVV/NC7UeFDisRBm4MEm1MZ1N53+esSO9Rp18VrLonMVtyDutKZ/WcjyYUrKOU XpRdXdALQ1W3sYhWUOQ== X-Received: from wrbce19.prod.google.com ([2002:a5d:5e13:0:b0:460:672f:ad65]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:628f:b0:493:92c9:1e6d with SMTP id 5b1f17b1804b1-493df08f731mr54832105e9.33.1783430310169; Tue, 07 Jul 2026 06:18:30 -0700 (PDT) Date: Tue, 7 Jul 2026 13:18:29 +0000 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260623-pr-ratelimited-v1-0-cc922f544dc0@google.com> <20260623-pr-ratelimited-v1-4-cc922f544dc0@google.com> Message-ID: Subject: Re: [PATCH 4/5] rust_binder: consolidate transaction failure prints From: Alice Ryhl To: Carlos Llamas Cc: Greg Kroah-Hartman , Boqun Feng , Gary Guo , "Onur =?utf-8?B?w5Z6a2Fu?=" , Andreas Hindborg , Benno Lossin , "=?utf-8?B?QmrDtnJu?= Roy Baron" , Daniel Almeida , Danilo Krummrich , Ingo Molnar , Lyude Paul , Miguel Ojeda , Peter Zijlstra , Trevor Gross , Waiman Long , Will Deacon , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org Content-Type: text/plain; charset="utf-8" On Fri, Jun 26, 2026 at 11:28:34PM +0000, Carlos Llamas wrote: > On Tue, Jun 23, 2026 at 03:38:07PM +0000, Alice Ryhl wrote: > > + // We don't yet know the real message size because it depends on the secctx size, so for > > + // now write an estimate. When the real value is computed, this estimate is replaced. > > + // Writing an estimate here ensures that the approx message size can still be printed if > > + // the transaction fails before it is computed exactly. > > + info.debug_total_size = info > > + .data_size > > + .saturating_add(info.offsets_size) > > + .saturating_add(info.buffers_size); > > hmm, I'm not so sure about this "estimation". I can see how it might be > confusing against the "final" size, after secctx and alignment, bla bla. > I wonder if it would be best to leave this as zero (until this is known) > or maybe have the "raw" individual values from userspace? I will print the raw individual values. Alice