From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.71 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795948562; b=aRM5SxOhpwZewF3CAsNivQAcOvSPl+oNXIGwrPHcOmMEE036+Mbw+iaS2KgjG9Rcws3U esamIhMQwiSrcH6qoQVQ3dUhKDLsxGrVJ03ZBs47gpfaaJSc9BaDdU4Wl0zW5hD5d5PpD Z6YIqnGkPmCKFY2CxNLC+DYoMJDq/auIiNGIVBgEzp0zAeR22B2Mn+FecuVB3hK06Vv+I jnposdF8HljY9sFlkwISBiGxt9chPC2KVdA7FEKeFEgQ/s1KZIecQMM5BKIq6CQcAA/rU +QsnXZZw7poKS1J67/BGeLKirJD1X56TVPpQCN3cTxQQWgoQERONA2XtcK4/4m4UM6g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795948562; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:X-Mailer:Message-ID:Subject:From:To:Cc: Content-Type; bh=uazbbgNwEruPeLwiPYck4COTfabYotEdsp9t2r2TaSk=; b=u6ztJ62+qbjDIP4PvC8EHcjpU2b31c6MpmzF5Dmmv1Acww0gQnRQRzUaulAh8I6cWVHU rRnFON/K176AZ6v+b3k4tq7QPcl7qk+TR4eRT071oeLyM7Lf9fJkvKgVzAS6+YOiUc/cd YiLjpQK1kPoCt3ouxGgAJ+3lyfFTMcVm/FvZsW3VQAZAcO6AJcKaoQW9jDlfKU12o+ynY SdPQ4/qxsFaAH/RGb5sTlXiaswFAETRBtzh1F8LCybXvdNMy2ygaAYflybUex+N35v+F2 1AIQ2S5pF6tlcRz8y6gn+NyQcyeZ2BP4emZt8FFEqOWyfJbyRHs1gaJbfN4Nmq/dyIw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=aJSkHqEU; arc=none smtp.remote-ip=209.85.221.71 Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E321A606A323 for ; Sun, 29 Nov 2026 10:36:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E321A606A323 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.a=rsa-sha256 header.s=20260707 header.b=aJSkHqEU Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-492b5408dedso1446202f8f.3 for ; Sun, 29 Nov 2026 02:36:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1795948560; x=1796553360; 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=uazbbgNwEruPeLwiPYck4COTfabYotEdsp9t2r2TaSk=; b=aJSkHqEUJKuedZ9UgzbpmyFFxhkHh2adl6JY6Q2BbpPFxRWw/60+tngSPJo8hwR2Ts 4RXd/WSEIOvUw8XUtN+SEu7od07BSjduwU+42twlfmK1dw+L+AI7xROgCPov1lsAd6ne 2cRBXNz1JZSG2XUFLX1NYJ+EGtSE9Hx1oTQ48G8WGy9tII/aFzZHHU19Sa7wUjywEhNR H+MU6IUQCCJQjaNeZU6k8L0NQapWaFmHOXlpg/THkC/AZ8tND8RqBGb7sToje1uml/YT qk0TKsFcF+kkyWYfplkBSeDr0xEcycQNAYSTOwmH3EVXqeZCzH2megDd8N5OuYA79adn T6uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795948560; x=1796553360; 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=uazbbgNwEruPeLwiPYck4COTfabYotEdsp9t2r2TaSk=; b=Z/AOTqpolrqEO4yNQF8/RrzWgGAb1LhdLFsh9Q0pdKlF2H+yqI7MixArkLLKwa4EuD 6sRDZohNtL/KjxZ2oSLY/YoCcKu5UZBER9GzGP3kfpnFgcWcvGakkeS9CI9NXmEcq3BQ s9nOPFXpD1KOepIiZ9ao161LkrCBakeQnBInPJ52ruPuv7g1qj0+T1+5Uxs4PlFg36BC Kf47GZR/HRjT+s9VwYH0cL1c/ClaC/SgnBcZlEs2squ6GdnUeUHtJqbJL3gSQetMtwq/ ZWihYnjN3egF3INvPEVO3GVscskDiz+Wt2ZDkkH26ydY1RBX+Wzwvf5KLUQgRNF/Z7NA +++g== X-Forwarded-Encrypted: i=1; AL+hErEbwx7UC9kC2Cvy9A+fXfFBHSH3BR1RKKD6KV/O5Hr5ksKxq+TYm9PAhJyt4FY0FdJ+oq5CgG54EAA30Pg=@vger.kernel.org X-Gm-Message-State: APuU4Z958jXaYhuo1cOkFvw8GM4OONgaeA/O07N/gZ0pS85bhFSpHu2A 7ZWrX+Htn/FXCbV5AQxl1Q2LTUAE4W+k2Ml+/L8snsujcg+uYhHvZGssmECizBhAbZSmipv9igd iNGb2n0hIIR7Dhw+Gqw== X-Received: from wmdd17.prod.google.com ([2002:a05:600c:a211:b0:4a1:e925:1a39]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:45d4:b0:4a2:84c:52f3 with SMTP id 5b1f17b1804b1-4bb8880988cmr625169685e9.6.1795948560247; Sun, 29 Nov 2026 02:36:00 -0800 (PST) Date: Sun, 29 Nov 2026 10:35:59 +0000 In-Reply-To: <20261128153719.143637-1-adhyanshverma2010@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: <20261128153719.143637-1-adhyanshverma2010@gmail.com> X-Mailer: git-send-email 2.56.1.839.g22a8290db9-goog Message-ID: <20261129103559.918379-1-aliceryhl@google.com> Subject: Re: [PATCH] rust_binder: decrement requested_thread_count on BR_SPAWN_LOOPER write failure From: Alice Ryhl To: Adhyansh Verma Cc: Alice Ryhl , Greg Kroah-Hartman , Carlos Llamas , "=?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?=" , Todd Kjos , Christian Brauner , Miguel Ojeda , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" I don't think we should take this patch: in general, -EFAULT from an illegal userspace buffer is fatal in Binder and we don't need to recover from it. (Also, C Binder does not decrement proc->requested_threads on put_user(BR_SPAWN_LOOPER) failure either.) See also: https://lore.kernel.org/r/20261129103508.897811-1-aliceryhl@google.com Alice