From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp153-166.sina.com.cn (smtp153-166.sina.com.cn [61.135.153.166]) (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 582FB324B1F for ; Tue, 28 Apr 2026 03:52:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=61.135.153.166 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777348342; cv=none; b=sQ8bXz6+tmJ5ozQgPebeUlOecQIyjuoW9C6XTMVueWJgFxjIlHrxMYfT/ogGOhJsbJO1Lmu1tckOh9+WFsmKNa/P1whQeV8tclZaWaubNJYni5qfRquYbV6vhfV4w30+Ymuwj3l1AwNU4T1DK56kZU8lZOUPQFGfIhJqVAo7v34= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777348342; c=relaxed/simple; bh=fTPYyIVDdVgOl+jGqVsfyBd8fslILl8LoMg4RhXf5tI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BUhJhBV7deXiJpPnQV7rblAyrU5yFoNBnYBCNZN8OeoxRcnpiww/dU4MyAES2fbb1+LlxikwgiSVYDfwga0uEmPLHWYzTuafxn4AeWKEIfKm3k8CrL8k7nkGBmvYuVC8vfhH27wHiDssiJ6/EP3eW/qO4ihBGXzsaREdOcreG80= 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=sEvO6Xty; arc=none smtp.client-ip=61.135.153.166 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="sEvO6Xty" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sina.com; s=201208; t=1777348334; bh=/uCyKZyQ+CGA56y2S7sXs3VSNgpPz/3X7WlFjhdZA7o=; h=From:Subject:Date:Message-ID; b=sEvO6XtyYS6QXsnkxACB/STkLrtRgrCbxzvQJptqewW5Q2JW3KWr+v1ZSoyeMRfMW hPE+I43zzcZqGeshy+IKLw+98bUICPx5k/Pw+5OApRjB+NNh9MnO6m2iy4QFr7RkE/ iqbakFB0oxqYJvVQm2P5Wh2Gn5soe0El3c483nZI= X-SMAIL-HELO: localhost.localdomain Received: from unknown (HELO localhost.localdomain)([114.249.62.144]) by sina.com (10.54.253.33) with ESMTP id 69F02EBB00004617; Tue, 28 Apr 2026 11:51:25 +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: 4092996684985 X-SMAIL-UIID: F41AAEB48C2D4AB2ACADBE1F7D6464BA-20260428-115125-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 11:51:13 +0800 Message-ID: <20260428035113.2163-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); --