From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp153-165.sina.com.cn (smtp153-165.sina.com.cn [61.135.153.165]) (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 BAFEC1CEAC2 for ; Tue, 28 Apr 2026 11:34:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=61.135.153.165 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777376074; cv=none; b=hQeF+fTIrLAYxqOS6MyqaI+Tis270/buedu0BrsVUTZp3iffXfiLYx4M4a2HluBILxWF/k1/5PYPtN6W6ywT7ZUpQkDOqEarQJx3i70MVH8g42S2no3Sxm08i/JLv6jIRZTmlZY0lo0sC8pCmOsb66d15B9JlU3bNi2Nf+d7wsQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777376074; c=relaxed/simple; bh=l4OxIlrpI8iVrjHzI2uo0+ri1LAEMTMKvwaed1tRZfs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BsMahr2n562qTBIUxehVZdveYGAb/9FV3lQV7NCPAtaVzwjnPBdjrsH2hzVYH8mouLe3QIZrSy4rFvZQSSv4JCgfkOPAdaku9f9Sx/EuNrgA3v7ctLL6w6GIJ4Ggb3ZMsO0qJ+uxJHVZsyfpG1jkdxrIStnZsDcYUhoYrLgP2sI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sina.com; spf=pass smtp.mailfrom=sina.com; dkim=pass (1024-bit key) header.d=sina.com header.i=@sina.com header.b=qdu8MQsT; arc=none smtp.client-ip=61.135.153.165 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sina.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=sina.com header.i=@sina.com header.b="qdu8MQsT" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sina.com; s=201208; t=1777376065; bh=n6KK6Gt99fuotGoF/cxogH0U0Jrrce8OhNxqhY/K8Pc=; h=From:Subject:Date:Message-ID; b=qdu8MQsTw+2V5isOvAsHaDO/phoSRjWuEL6x0CONZmONHNv5mBm0kWcrm1WPhMCe1 PVtlc7LckxWz3Kz8YYhhnYeRk/5snm/MC48bdKdVQsSk9C67VaMGKtnJfysX70acUb KmOsIM1urnRdQaEG0exikZiA9szLKbV2zik2S9NE= X-SMAIL-HELO: localhost.localdomain Received: from unknown (HELO localhost.localdomain)([114.249.62.144]) by sina.com (10.54.253.32) with ESMTP id 69F09B310000567E; Tue, 28 Apr 2026 19:34:10 +0800 (CST) X-Sender: hdanton@sina.com X-Auth-ID: hdanton@sina.com Authentication-Results: sina.com; spf=none smtp.mailfrom=hdanton@sina.com; dkim=none header.i=none; dmarc=none action=none header.from=hdanton@sina.com X-SMAIL-MID: 4643644456755 X-SMAIL-UIID: 7F2CFD28BABE422EB1D8942B31125D2C-20260428-193410-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [input?] [usb?] KASAN: slab-use-after-free Read in hidraw_report_event Date: Tue, 28 Apr 2026 19:33:58 +0800 Message-ID: <20260428113359.2216-1-hdanton@sina.com> In-Reply-To: <69eed7e0.a00a0220.7773.0026.GAE@google.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit > Date: Sun, 26 Apr 2026 20:28:32 -0700 > Hello, > > syzbot found the following issue on: > > HEAD commit: 7080e32d3f09 Add linux-next specific files for 20260424 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=13d8b2d2580000 > kernel config: https://syzkaller.appspot.com/x/.config?x=d941ac7f11ceb230 > dashboard link: https://syzkaller.appspot.com/bug?extid=9eebf5f6544c5e873858 > compiler: Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14d309ba580000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13a082ce580000 #syz test --- x/drivers/hid/hid-core.c +++ y/drivers/hid/hid-core.c @@ -2404,8 +2404,8 @@ EXPORT_SYMBOL_GPL(hid_hw_start); */ void hid_hw_stop(struct hid_device *hdev) { - hid_disconnect(hdev); hdev->ll_driver->stop(hdev); + hid_disconnect(hdev); } EXPORT_SYMBOL_GPL(hid_hw_stop); --- x/drivers/hid/usbhid/hid-core.c +++ y/drivers/hid/usbhid/hid-core.c @@ -279,6 +279,8 @@ static void hid_irq_in(struct urb *urb) switch (urb->status) { case 0: /* success */ usbhid->retry_delay = 0; + if (test_bit(HID_DISCONNECTED, &usbhid->iofl)) + return; if (!test_bit(HID_OPENED, &usbhid->iofl)) break; usbhid_mark_busy(usbhid); @@ -1278,6 +1280,11 @@ static int usbhid_power(struct hid_devic struct usbhid_device *usbhid = hid->driver_data; int r = 0; + if (test_bit(HID_DISCONNECTED, &usbhid->iofl)) + return -ENODEV; + if (!test_bit(HID_STARTED, &usbhid->iofl)) + return -ENODEV; + switch (lvl) { case PM_HINT_FULLON: r = usb_autopm_get_interface(usbhid->intf); --