Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CF31F390219 for ; Tue, 25 Aug 2026 13:14:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787663646; cv=none; b=HrDcKA7ailZ5AKlyr6VvE7+pbM//+kDZOfs+zb0MxPrCM1lKbEExZsuKnkTHzAvtdtPKNnL7SvJ46DKuSsxiXb3pT5q10sjWKDz+SFYjc/P3MhW9Ys4dJ3dTIZYXER6rwfbDlll3CkRRfwv3MDDH0YVexDLjAFhMYcmGSmIgiNk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787663646; c=relaxed/simple; bh=nWO2X7fdORjw82HvVbGkls81SHto9Xfwvzf+kek8l5s=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=js2IfR1+x5ZLnIJfguKxEqZQdIBqO/QR/OdrU9A7ylPouRc6dldjgi5M4wsCEv0oo1FTQnb6P9NiycefGZr6qrYGBAZ5b/u5qzJBIPXmtvubgleXsjVz51vHrv4AfDM6j/ZF4zffRAg65HruHUb8lx4iTl4ed3pNgkfO1jcRWzw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IF7/j30a; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="IF7/j30a" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E6921F00A3A; Tue, 25 Aug 2026 13:13:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787663636; bh=GCpc19NkSNGt32yAX7Z8NY3bTuv/AtiiGfpouv9fIEg=; h=Subject:To:Cc:From:Date; b=IF7/j30a1IbjGshajz1F+/29R30UyldcIRRmxHDFswgDiubv9isYDe/xXzMgqjC8E 4jJRnXO7dkDEGU2gEfyiZzsLKBD5uvEZITTpGAntYFEAyI8+HB21mi15b3TYCsaG9A U5ONqox3l9lMBzkQ/5nFaQu4yQx4Sk1Ny+fGdEc0= Subject: FAILED: patch "[PATCH] HID: asus: fix missing hid_is_usb() check" failed to apply to 6.18-stable tree To: jannh@google.com,jkosina@suse.com Cc: From: Date: Tue, 25 Aug 2026 15:13:50 +0200 Message-ID: <2026082550-stinging-mushily-fa27@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.18-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.18.y git checkout FETCH_HEAD git cherry-pick -x 02bf61dfb44f17ec187d1da1a82495951bbd12df # git commit -s git send-email --to '' --in-reply-to '2026082550-stinging-mushily-fa27@gregkh' --subject-prefix 'PATCH 6.18.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From 02bf61dfb44f17ec187d1da1a82495951bbd12df Mon Sep 17 00:00:00 2001 From: Jann Horn Date: Fri, 3 Jul 2026 17:45:52 +0200 Subject: [PATCH] HID: asus: fix missing hid_is_usb() check to_usb_interface() can only be used on a hid_device whose parent is really USB; uhid can create devices that identify as being on BUS_USB, but don't actually have a USB parent. Fix the use of to_usb_interface() without a hid_is_usb() check. I have verified that it is currently possible to trigger a kernel splat due to this bug in an ASAN build, and that this commit fixes the issue. Fixes: 00e005c952f7 ("hid-asus: check ROG Ally MCU version and warn") Cc: stable@vger.kernel.org Signed-off-by: Jann Horn Signed-off-by: Jiri Kosina diff --git a/drivers/hid/hid-asus.c b/drivers/hid/hid-asus.c index 3a3de999514c..f6e882a1cee6 100644 --- a/drivers/hid/hid-asus.c +++ b/drivers/hid/hid-asus.c @@ -950,7 +950,7 @@ static int asus_kbd_register_leds(struct hid_device *hdev) return ret; } - if (drvdata->quirks & QUIRK_ROG_ALLY_XPAD) { + if ((drvdata->quirks & QUIRK_ROG_ALLY_XPAD) && hid_is_usb(hdev)) { intf = to_usb_interface(hdev->dev.parent); udev = interface_to_usbdev(intf); validate_mcu_fw_version(hdev,