From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (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 35BBF3ACA6E for ; Sat, 11 Jul 2026 10:29:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=209.85.214.177 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783765746; cv=pass; b=rOXyxQjKx70iIlfKx3uwVVnNHy9M2trUXDhSG/HU0Awo//TcxPRZzNPgp2uA4ag0LDDKHs5TMJW81FSCT+83e2IeQhL4QtjsWDAFV+qjhNiWrgOkRoEHpc1HrAMKZ34636PtPWnxExW41/EMUhLDP6zS/7KreV3UHWb1GlY5pFg= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783765746; c=relaxed/simple; bh=v7N7WBZIoji8pk3g78CbdkF7r0kKnU9EWaTwbfXpxQw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=CwUrsofb1ps5RxQS9b4+ieRtGTiLWg2N5nDXj3xzRbcZNUh8blqb6OyAGkQzAmt81EhA0RE0rates43rQjJggXxaGX30MkFn9XY/CkLWefBS+aickt6ia/G0HZ5DgnVaWsGt50YTYRv9aVOT2RFonuKwk/jxG9luDWu6K0s8Egc= ARC-Authentication-Results:i=2; 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=vshMRqpe; arc=pass smtp.client-ip=209.85.214.177 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="vshMRqpe" Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-2ccdf36f63dso65345ad.0 for ; Sat, 11 Jul 2026 03:29:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1783765743; cv=none; d=google.com; s=arc-20260327; b=BZylUH7seBY1Df2iW4om9zuy1DlqbZu4MvOXlGhULSqGMP9kpFBX3Utp4NTG1/Tff+ iVgrYn3yEN//Be1w8eAvwjgdCYpVIWPWDvRW7nCVoUgGCItk2qTXbN/47SiCb9EDWLCS WSbim5ko+B5s62TcprqpUTUwjglqLCAj0vcO1EPUZ8sThy3owP3wlmpV/8ICwpgnr301 4CtNtsid7DyXy7kykMy5oi8+mVYrPEWdZsZgtQypDZyMBS/LmMQXp7OfakrqnSuS86gz ZWS7pb/vDgYw5xYopEf9oNaz/e7BcQcm1IACq4sUwV+DkJfBmX9nHzXpZh9hjlHewCSM 4y/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=oV/kudkJykLXrPCFSfzrdIQB6KqnLT0upf2KM2vQErw=; fh=o4efYqrRLDai97lJVpjlNy+4M0GgiUUJn6y7/7S4EfE=; b=iqOoc9sU36Gg3N9S/wcTqvQjW/DmzmLoC8ZT9ihfxG4laF2Dksd+2oBUmHcb/lgOU+ bC6jCXwsHWCt0HD6dUGgK7t6mWmT65uJLssQDwAa7o0CaDa+DUlGeNDS/9HtCyHsM97y OUYcmh/AF0F7QDlWDlXP4lC2gEmikcKtWyH8vSCAmh2/yZcnFX7mDt7zzyIicaa0Z505 Zf1LTPMqegUwbY1M8eIKtf6zJ5JDxR8ZUnthtYEvlbKkUwXvMMVgjq6C+OHkRgkRK0eO ziyGmdQ94R8JyBXXCj4RHoKvzycMYoQG1i9eMjKkuczIoZphnfjId7wu0SdYpXzQ+WPn Orcw==; darn=vger.kernel.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1783765743; x=1784370543; darn=vger.kernel.org; h=content-transfer-encoding:content-type:cc:to:subject:message-id :date:from:in-reply-to:references:mime-version:from:to:cc:subject :date:message-id:reply-to:content-type; bh=oV/kudkJykLXrPCFSfzrdIQB6KqnLT0upf2KM2vQErw=; b=vshMRqpewM1gdglf8iXrCqOh0oo9pvn3GSefHNBlLTcBGMsfOACdC478iNUm0OLpa0 ZqoIf6VjOvPPGH/+u4rJJGzZRDuii9QzP8OiKIgLb/BEi49knlFvPEo4BJrvNTciGXtC 6R/0A3UfZFCh++GKGKdq5BMrbCvAuSKQgct45CutnsTxJVs+rTxKuMubfWZoIfpTYTZW Xqa0n/N0zQL3VNImAqGa6NAjALYrAVGS85PQCKJ45ARXMCvLidPDBMLQm11UdvfWkV3u Ugc56GwfoqS8r2e0bKW8HZJeVyD+wy6uuZ78z3R3Lx0/qW0Uvb84P1xubbITwxHz5RZm KUiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783765743; x=1784370543; h=content-transfer-encoding:content-type:cc:to:subject:message-id :date:from:in-reply-to:references:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=oV/kudkJykLXrPCFSfzrdIQB6KqnLT0upf2KM2vQErw=; b=jVfyfgJ0ePab1o/MqkV+BUGvujzgZKX/a+e8eGsN2WPkM3qLvbr2pcnLxfvM+qeK8j L3CXmm0QjEwJOWdBQ88bz6F6y6y0uV5+knj38eSk+ZDC8tLPlBl20BbVoSMzVgspu/+5 pg17h3ILgnXrepJ6IPGIjIZ/Hqa87miFYlRiguhkdUSn9exJvhPdhEo9hzgffdbO6gI7 Y/smzlnxC82m4uQPp9O1NqdnKa02oHnD6YbCSObCQPJ0m8mtiRmkKqYczn+GWXu23VWK 5ERKbfPPCKaAxfqh6rO7RhcEGHjdbCoZiFxWizDIpdfJ6HLH+0i/njljH61WmO8XEfVr fN3Q== X-Forwarded-Encrypted: i=1; AHgh+Rri4n76q39UQ1zslCYdpXf0rffs0z5lJpj1/uVNkptUsjkuMm9uqrvc2SUdlJwEOBVPTuCAKkQV+h8yccQ=@vger.kernel.org X-Gm-Message-State: AOJu0YwUCHNgwdT6x7Io7gRs3uc6zW/t0ZSrGIjgcXJjLddUc6B4rvTU UDFT7MipLGf68N7rs/Xj2mqo71L2o2lLLEJPjn/35tsC+xl7OAxVTURL7JvoUA/4bx0U2oD0+aa eNDdkH94Qv5hH+p/s69rHxci8xylHHYOHBFmQ5Pev X-Gm-Gg: AfdE7cnuoYVkFHhBaJMJQoZqh/dqzNrhQXYGewL2g0JT/gzO+g/umqDvQH8RUT0vKoX 4MKKpT4McvxtjSDn6Qu4bkSGJgDTjTgUpSjGYMQZo658x5HpdxEaQo/F2jfph1XScq6tL3TyPl4 0WskXaWxfFoC68X0kgKZ/5O/UgTt8W8phxhhX1XfXc6U4ItZOtjMOEs9+Qywi05pRTpP3zb4K/s PVbGFQYi14nwVm97eFAEsfLJPbR1owP/DPqLTufzPUEfL/HsMSSjnh8HvxBrsparx9fzB0TUI4Y AoNLmmQg X-Received: by 2002:a17:903:2a85:b0:2c9:d89f:fd98 with SMTP id d9443c01a7336-2cea1d79204mr2038715ad.1.1783765743095; Sat, 11 Jul 2026 03:29:03 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20260710-rust_binder_debug_mask-v2-0-2846410e3ae6@google.com> <2026071046-musty-subfloor-53ec@gregkh> In-Reply-To: <2026071046-musty-subfloor-53ec@gregkh> From: Jahnavi Nitheesha Mandava Date: Sat, 11 Jul 2026 15:58:51 +0530 X-Gm-Features: AVVi8CdVA0e9M39pTo7f9PmDS5PArNQHHOoIpLiTjQMgExKbzuAD-FSltKzzmyE Message-ID: Subject: Re: [PATCH v2 0/7] rust_binder : Implement dynamic debug logging mask To: Greg Kroah-Hartman Cc: =?UTF-8?B?QXJ2ZSBIasO4bm5ldsOlZw==?= , Todd Kjos , Christian Brauner , Carlos Llamas , Alice Ryhl , Miguel Ojeda , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Trevor Gross , Danilo Krummrich , Daniel Almeida , Tamir Duberstein , Alexandre Courbot , =?UTF-8?Q?Onur_=C3=96zkan?= , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Jul 10, 2026 at 8:31=E2=80=AFPM Greg Kroah-Hartman wrote: > > On Fri, Jul 10, 2026 at 02:32:51PM +0000, Jahnavi MN via B4 Relay wrote: > > When a user-space application sends malformed data or makes a > > lifecycle mistake, the driver rejects it with a generic error code > > (like -EINVAL). Without internal logs, the driver acts as a > > "black box," forcing developers to guess which check failed. > > > > In the legacy C Binder driver, this issue is solved using a dynamic > > debug_mask module parameter that toggles verbose logs for specific > > subsystems. This series brings the same critical capability to the > > Rust Binder driver to provide developers with clear, real-time > > feedback. > > > > Instead of rebuilds, reboots, or guessing: > > - Developers can enable logs instantly on a running device by writing t= o > > `/sys/module/rust_binder/parameters/debug_mask`. > > - It prints the exact reason for failures (such as alignment errors, > > mismatched call stacks, or invalid handle references) directly into > > `dmesg`, reducing debugging time from hours to seconds. > > - It protects system logs by keeping logging off by default and only > > enabling it when developers are actively troubleshooting. > > > > Based on top of: > > https://lore.kernel.org/rust-for-linux/20260707-upgrade-poll-v6-0-4b8fa= e7bf1d9@google.com/ > > > > Signed-off-by: Jahnavi MN > > Patches 5 and 7 did not apply to my tree, can you rebase against the > char-misc-testing branch and send just those? Other ones are now all > queued up, nice work! > > thanks, > > greg k-h Hi Greg, Thanks! I will rebase and resubmit only patches 5 and 7 as a new version (v3) of this series shortly. Regarding the feedback I received on Patch 1 (using the BIT macro and Atomic), since Patch 1 is already queued, I will send those cleanups as a separate, follow-up patch. Does that sound good? Thanks, Jahnavi