From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f49.google.com (mail-ot1-f49.google.com [209.85.210.49]) (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 228864A0C for ; Wed, 15 Jul 2026 06:21:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784096481; cv=none; b=JtQTZxeO5LHMuje090F1leqS79Y/18xKBsZqdhan4ITLM4V6ERfejtsVyDS9YpGt8+PxPgis8sUCgi2Sz4wauVesM0GkjMIu5HsW8DXCxoB57cJ01TI9eVAruKK3bwwR9GKqZ2gRuzpbLK7BcVEKTNOi+zUpvkbJVXsQbyJmXpI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784096481; c=relaxed/simple; bh=8oneNuTPvrj8s0MKldXDp2LqzuJfuNLreLAOuRzjQtM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gQYJSF9KpCzbJw35oFxAIQ2IFWZwrSQRAx5oppOeQnnNlOuINgruptNmNwygruKhaPBiL0LGLRXmAWUz2QLbP4YIkVl2GPPM8QeGrzJz+zCl7ShMOZY2AdFYF1vcmmv9fAgvRv7cZoOksRRae9EIseFIY0QK6Undm85Xwx6GECA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=OH9Kv9r2; arc=none smtp.client-ip=209.85.210.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="OH9Kv9r2" Received: by mail-ot1-f49.google.com with SMTP id 46e09a7af769-7eb4d532e65so1964125a34.0 for ; Tue, 14 Jul 2026 23:21:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784096479; x=1784701279; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=LxB5892Gv+ZQSWhWKdOfUMiixSzBac5s7jzifFXhxdg=; b=OH9Kv9r2G0FnlTDE/jYDmXBI9CdGEtxUIi5/Il5DA+87NXICx+5dyXM87H4ozGXQWp VWXBCRG34ze/0dGlRa3s4ircnaelJhe2xhp8UA6ihAtit5ile0EibVra7LRouuCL93cM jDOa7jbANsRp13/Al3yWecrAhaZ8c0OnMkApQ1qVvA9tA+96mRbEMHHOTeGc74fPJZzZ EJf0C4w+CydDL+2qmszyxZlibCX16w7TSOeOdOYU/FoldFWeXnmRWJpCnJNBe/CZdP9s yvdHoIiShwmydDwRt2pJ/rdtDIzdDnaPWvXqUj8kcs9/FQYhStAxNIneQ+IkcMndfuHV dyLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784096479; x=1784701279; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=LxB5892Gv+ZQSWhWKdOfUMiixSzBac5s7jzifFXhxdg=; b=lnr9stF7V+RXDz9am0LaJrITiaWN+7jFP/Tazv098s+bSElsijs4uHQ8C1YU6Wpvo/ SaTSMsJjdZq0cpH+jW4iqmY/C52YqFOZZQpWHmAFlC/Tf1L0lBAkuA9fNGcsERjusDev Dkp1lzy7Z5jndqUgocx8K8NmqA9jBh45+BksnWRCXRlZOYzNUyF8zY8Jmp0+5IhPhVbm 6FrDXOwnWw6uKgaQpMNvGkXqYdg2RmEDy2d80SnYfvueUUtFmIfpqbpyGvCtOoVKago6 HuQiwlP+lFBbbkSZnPWIpex/NsHT3A27Z3DWXJVAAgr1s7q4OqP/5SeLAOGG30eIailT aoCA== X-Forwarded-Encrypted: i=1; AHgh+Rqr2p3YBNXfRlRx6WjLV/RBwAzF7v8ZpXh9kGB5ll1qJZF47MYbR5EDFX/2IFrzEgdJ184mrL0aIy7Ei5I=@vger.kernel.org X-Gm-Message-State: AOJu0YwFu4e58KXLY07XEkT5aaUyLvybTPlegkYILqNL00+It9BZfl3T y65BednXj2Es/8uJfDZ8AtQlEk8g8QVPVTVBALb14nQZWQ6WtS4y1xl4 X-Gm-Gg: AfdE7cma4wzzxT0Je6OBbnkvy56u7MzydWbHR7VY65TwI5NqzFzDzpFsVgK1sMIxnL4 5o5ERwSsbzDgp1foAjJLg1BRpOs83nxfpDDzYthGyXx3FPwHO3WIjwyrgdXVsu13qIfTPR/Uo4A 0DfLqmNxCUymIyTQP4RjiKrBKjv+HmrFmFxv0hA+DTDndIRx8UbF6MthIJmGxCZ/2ewW7RkCN1T yyU946H1GiIa/MC8wFQL0hh9/+u8gcRhoKEz8ecS+5BrJOaqC/ihEkqvD971qnTrdYEcT+TBR0g 5OEOaSZZUcK4p8XMuaNsgmwErrzZKO2YOBXjcVWqqmCXfavF4FZ4JiDhkrR6NQAabTzXFrCBKwa r3gqWiw/OaqVEcg4GjuYQTFcHfDB/vlGRFK2JzOzX+I9DLAlh4AaRE/b/snaT+nJBIuY0IW6XL3 HoZrxcWjwPQtTp X-Received: by 2002:a05:6830:25cc:b0:7e9:8867:cb23 with SMTP id 46e09a7af769-7ec59d20770mr874309a34.16.1784096478979; Tue, 14 Jul 2026 23:21:18 -0700 (PDT) Received: from desktop ([2806:2f0:9260:f072:92d3:78b1:9863:130a]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7ebcb2b79c9sm16655936a34.22.2026.07.14.23.21.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jul 2026 23:21:17 -0700 (PDT) From: =?UTF-8?q?Jose=20Villase=C3=B1or=20Montfort?= To: Alec Hall Cc: Jiri Kosina , Benjamin Tissoires , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Jose=20Villase=C3=B1or=20Montfort?= Subject: Re: [PATCH 3/3] HID: magicmouse: report charge status over Bluetooth Date: Wed, 15 Jul 2026 00:20:56 -0600 Message-ID: <20260715062056.616625-1-pepemontfort@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260714101235.99447-4-signshop.alec@gmail.com> References: <20260714101235.99447-4-signshop.alec@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi Alec, Heads-up on a textual overlap: I posted an independent fix earlier today that also touches magicmouse_raw_event(), so it will conflict with this patch: HID: magicmouse: prevent unbounded recursion in magicmouse_raw_event() https://lore.kernel.org/linux-input/20260715053526.574725-1-pepemontfort@gmail.com/ It bounds the DOUBLE_REPORT_ID recursion -- a malicious device can chain 0xf7 packets and drive magicmouse_raw_event() deep enough to overflow the kernel stack. Mechanically it renames the body to __magicmouse_raw_event(..., bool nested) and adds a small wrapper, which lands in the same region where your 3/3 inserts magicmouse_report_charge_status() and its call site. We share the same base-commit, so whichever goes in first the other needs a trivial rebase. No action needed on your side; I just wanted it on the radar so it is not a surprise at apply time. I'm happy to rebase mine on top of your series, or the maintainers can take them in either order -- the two changes are independent and straightforward to combine. Thanks, Jose