From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) (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 26274221FDC for ; Wed, 16 Apr 2025 10:41:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744800119; cv=none; b=JiD9P+9UB/cmy4A7oqszIPW13yz8uSCXM/TFCZOVDcBJ12hXN72L9ylWKTGyHZJVd6VphzCNhWf5Q9ohHyA31APtM+8e4dCrTd+LNYOJmUVzeVbI0dITvXGVRjxLA5WhPmcVcJsLe6SKMk7l12z4Bz3kqy8vx48bkIgRUGX7ghg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744800119; c=relaxed/simple; bh=h68xXKINGGyp2Zd1XCK0EQjYEAkncB1gRD1F116+4l8=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Br157NJ163Yl+gppv+jyeVOg8HzVRxl/UZf9BER9qRckkd1bdbABuBrwvujbGkj44ogTV5iLgMCRKNzab5Q3hGo+neM9BV7gMoRIiO9eFaoZN2IB6/IZkGCNOlxi34WkMIKZe48AUwu+zH/jv3R9K5jYvN6bXhye94N70IAK31U= 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=jt9td+Y+; arc=none smtp.client-ip=209.85.128.74 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="jt9td+Y+" Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-43cf3168b87so35109375e9.2 for ; Wed, 16 Apr 2025 03:41:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1744800116; x=1745404916; 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=6A0OYhXVyrvwG53WhJNazsiQLTbwvjRH95oKmIwbVlI=; b=jt9td+Y+apu6TXIz01nW6c96+L5WUIovnfFfBwtgml8TdpjVyfVQS4uOHDXUFKvvC6 iDKzj1NiX1+ij31K4llByHishKFt3azDHSUYscVRthZD5wrVziPyZXdxcHDl0+8rBCw2 Md7jVRvyVXgw95U1Jc8inUwYwR/h+GVQvwSXy+x4ZU8gTsSMo8O9H/vRqlRzXiwPCicz eWInKGNTTsi3pjUU0xiT7ae82eRbbqGMgcGsCf4uVHn7rEZJ7vwfcVU6QSSOnBfa1W27 aHsXyg4W0XQqcsKQHfsfhKiv9UCsklOUidjzlXXRZOz9H3EN3x8sME7TNLA/QmnZlyRX HHDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744800116; x=1745404916; 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=6A0OYhXVyrvwG53WhJNazsiQLTbwvjRH95oKmIwbVlI=; b=YHnzinuGOECSWURmCwvk0zWPhXz2qU9XEytMIyur7P4osoklnzrSouF3DdkK3VO8sQ gbKDlO/fG980o3111vKN0s5HDSXTonUwLSB2ICd1ZLoBAT7QVqWUDo63cLq/5/RlgIkq XiffjU9+Id4lHSeXasHACDK+5a4l0/0sQYO3sUhePaMfNKj9EOLNVTyEdtLjhHb88Zkn TMHY+WHo+1S3v6+D9iJX92T6qXL8n2HypMA8vDxFuNluMsBaW88qHnYKuQvD4p54Plbw 562gAW0RYKd3PV6EvAFWjxLycyZLfJk0MsucEYUVUntditnjH999wTNCgsD9WU0cSs1N SoAw== X-Forwarded-Encrypted: i=1; AJvYcCXKewWWn3yNAM1GIhM2gJhi7z9+qUwK78PxUiE3Sd7vyQk6bd67ueoAsdwta+2xpEL/d0e7xstqgGw=@vger.kernel.org X-Gm-Message-State: AOJu0YyZj5xQr//nrNy5LjOgq6ScATMGTwr2hsTLRjjUbTDO2UF9wAHc brjcct81i5a2X9Wf6dPepYl9E3m4ELqrD7Uh9xRvAP8zqZQpU8ZS0vym0x9rvIJ3rU4OWORY3UJ lhwfNMmav3WQRrw== X-Google-Smtp-Source: AGHT+IHbOUuiD9l/lD/r2xNmdxsnmZyj3rRN9YGE8HEdjxjnJL08f4wrTj4agiOUIECbnHkcWVNjdQwPnigBcfM= X-Received: from wmql6.prod.google.com ([2002:a05:600c:4f06:b0:440:5d62:5112]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:4e0f:b0:43c:fa24:8721 with SMTP id 5b1f17b1804b1-4405d6372e0mr14227725e9.17.1744800116579; Wed, 16 Apr 2025 03:41:56 -0700 (PDT) Date: Wed, 16 Apr 2025 10:41:54 +0000 In-Reply-To: <20250415071017.3261009-1-dualli@chromium.org> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20250415071017.3261009-1-dualli@chromium.org> Message-ID: Subject: Re: [PATCH v17 0/3] binder: report txn errors via generic netlink From: Alice Ryhl To: Li Li Cc: dualli@google.com, corbet@lwn.net, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, donald.hunter@gmail.com, gregkh@linuxfoundation.org, arve@android.com, tkjos@android.com, maco@android.com, joel@joelfernandes.org, brauner@kernel.org, cmllamas@google.com, surenb@google.com, omosnace@redhat.com, shuah@kernel.org, arnd@arndb.de, masahiroy@kernel.org, bagasdotme@gmail.com, horms@kernel.org, tweek@google.com, paul@paul-moore.com, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, netdev@vger.kernel.org, selinux@vger.kernel.org, hridya@google.com, smoreland@google.com, ynaffit@google.com, kernel-team@android.com Content-Type: text/plain; charset="utf-8" On Tue, Apr 15, 2025 at 12:10:14AM -0700, Li Li wrote: > From: Li Li > > It's a known issue that neither the frozen processes nor the system > administration process of the OS can correctly deal with failed binder > transactions. The reason is that there's no reliable way for the user > space administration process to fetch the binder errors from the kernel > binder driver. > > Android is such an OS suffering from this issue. Since cgroup freezer > was used to freeze user applications to save battery, innocent frozen > apps have to be killed when they receive sync binder transactions or > when their async binder buffer is running out. > > This patch introduces the Linux generic netlink messages into the binder > driver so that the Linux/Android system administration process can > listen to important events and take corresponding actions, like stopping > a broken app from attacking the OS by sending huge amount of spamming > binder transactiions. I'm a bit confused about this series. Why is [PATCH] binder: add setup_report permission a reply to [PATCH v17 1/3] lsm, selinux: Add setup_report permission to binder? Which patches are supposed to be included and in which order? Alice