From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f49.google.com (mail-qv1-f49.google.com [209.85.219.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 900C83264CB for ; Sun, 14 Jun 2026 17:29:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781458150; cv=none; b=nYEHEEYJLb8DG3+ufoMyNQRpee03YWsgYP0ngebXWrflCYB3LVC/L3tf7pRXdyE8xd/n12D4TPa9AnUIMgle9L6/uPQRq304HgXeOzP0LXYUSAL4rFvoKr598XuuX+q9qcscRLOi1anFXvaD2spEVAtdhbBqdi25ygmsL8X6udg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781458150; c=relaxed/simple; bh=Vnj2Kcr1Phrtwb4GEGjbrLTmLlhtLSNQJ4KuLxPlax4=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=OcqS7yH23QXwaHCaxkiaXqrge2sPX6i/iVbuCOP9M1B+XFehSEvtzYcNNJa91sWt8RggiWr5107BuTj++UqJ8DCigxrb+bokvsH3gLBGFDK/ZwSt2uwJyAWQR7Uk/iF+XKaMpe9S0PGmdiylbsqr1mZib9lIB9yXp2otxXQQgOs= 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=FyOpqCcz; arc=none smtp.client-ip=209.85.219.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="FyOpqCcz" Received: by mail-qv1-f49.google.com with SMTP id 6a1803df08f44-8ce9d444173so33999246d6.2 for ; Sun, 14 Jun 2026 10:29:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781458148; x=1782062948; darn=vger.kernel.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=0Lk8pEj3YUCwblh5VUVTfE/Mk61zPL3H8dNk2qBQA40=; b=FyOpqCczTgsBPMV4in5UHP6FKucAK6gtD1NSBmZjlnkKIv9VEJ7kYEh2J58NfTBGKA ffg1hzN9q0Cta8b3s/fgl8HabHMzOHARbYqsYJkDwUkQzPfF8wIhKU2Qor4ZePFHlwG4 Fpny9pyzN73JQHvl/C0/HZDLlZ6yxBAR3jK4vGtUUGEewvbJXYFbY2+NpESEd4x5hmEJ CzYOWz+g012YkaI+3dZyCZ7Mb7MMhvTCFzntiACy9JaA0m8yRpzD/CvwSQDeO3fkDfYK w6Du6qelG0D5dBMb+aqQfK00qmUFGxfDQbAhxyL9bgk03X3MzcgqgiZvtixrDhyluECt ll8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781458148; x=1782062948; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=0Lk8pEj3YUCwblh5VUVTfE/Mk61zPL3H8dNk2qBQA40=; b=Tys8M3hmX/RT3X5ZQbTkTPYv+lsFEcPH9WVk6chLPcnwdNUH84J8pxUGIEdPoVXsda PtTwD17niI24t5oV8h6edP6dKYAIHUVHup70uRBpmd+53aoENg4yTwrarRjCKnTaap2m TA3z1/6NjY93RAkL2RxoaZ1LTPxkJvaMJppsSBDzQb5vmoo1d6NgVT96sxckQdShajZI d4Hn7CbPRWnirXv9eO2KzoL51soDpur3Y+oIN16gebPOuLMh0XPayQhG8NqjshHkV00I QDSoWMXV8tGbdW0qSpMsuFx7vwWn9C6t0c/mPkEFTOrFTHYDKSustQE7Z30XTiaZyUkQ 0zpg== X-Forwarded-Encrypted: i=1; AFNElJ8mLlN7seXMZeADVhmiEFqUsQnGdFZBhJgTvKWWq22srLy6+p/Uhomr+H96mopGu+AFfbdfXaz6ShjXxTI=@vger.kernel.org X-Gm-Message-State: AOJu0YzCZClpg03q6d7cUK+FqjtTVWw7rtiD9lwID8Cd925KKEgF8kNE rQcltZGMN66uRtZCvV3Lfgfg8QiP4oPkDOcqVjpcp+DyVyvOVo+tYY4zO6ccwL3yvpM= X-Gm-Gg: Acq92OEAIHF5eFv+aiX6WpVyQUplv8ilFp/l5yve0Uh9qiNGRaNaJ6e0b2hZpqlmLdj K11weX2gHTQDNKLO/ORwrvSol7H7Uzi9pfKXF+mwCiwW58mxpbVVYk1oFyGXQhJHye/GONkHrZq xzDvs9jSTDi/uh+IUTvQ/hxzF+JppDC8d7qu70hT5ZzpYgW68MPRXhB23J+rQi7plZsnY1S8wzf 5sdQ4Zo+HdrJO8jTWmNv+By8lDbv0L+8h7c927lifmIPBDCcud1mua5dcXbHK+x7IO57NEp2Uis 00FBvRBbYsS9WdYrksGkjQz4cQ7Farcon+0BOl+R0eZDFk8rTt28SxI0iFm+soG7dzxsKfQdeDl Tuuo8DuiDNhXj8NQzHD6vPY+NNy++6dWNH/d90NZ2Cnh1J7agFQUfwLB+NRcqQvEVb7w0Lxr6vx acQCrljXPxRqyCHLCw0OaIYfMqSLYGVFNYbWAtXYf8aN90n6qgzB6b/BMwxf127RouiA== X-Received: by 2002:a05:6214:e6d:b0:8cc:6aa6:704e with SMTP id 6a1803df08f44-8d32c0106c2mr190274046d6.11.1781458148479; Sun, 14 Jun 2026 10:29:08 -0700 (PDT) Received: from smtpclient.apple ([2607:fb90:a8e7:8c2b:20e1:3889:792:e164]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-8d30105fd75sm83742616d6.2.2026.06.14.10.29.07 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 Jun 2026 10:29:07 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.600.51.1.1\)) Subject: Re: [BUG] KASAN: slab-out-of-bounds in select_usb_power_delivery_show From: Shuangpeng In-Reply-To: <2026061444-flattered-rewrap-3d96@gregkh> Date: Sun, 14 Jun 2026 13:28:36 -0400 Cc: heikki.krogerus@linux.intel.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <178144969600.60470.6584137935143789620@gmail.com> <2026061444-flattered-rewrap-3d96@gregkh> To: Greg KH X-Mailer: Apple Mail (2.3864.600.51.1.1) > On Jun 14, 2026, at 12:37, Greg KH wrote: >=20 > On Sun, Jun 14, 2026 at 11:22:45AM -0400, Shuangpeng Bai wrote: >> Hi Kernel Maintainers, >>=20 >> I hit the following report while testing current upstream kernel: >>=20 >> KASAN: slab-out-of-bounds in select_usb_power_delivery_show >>=20 >> on commit: e8c2f9fdadee7cbc75134dc463c1e0d856d6e5c7 (May 25 2026) >=20 > What about the latest tree? I retested it on the latest Linus tree: 424280953322cf66314f3ba5e2d1ef345f21c770 The same bug still reproduces there. >>=20 >> The reproducer and .config files are here. >> = https://gist.github.com/shuangpengbai/79c08ada299b3ae37b7a0af292ca413f >>=20 >> I'm happy to test debug patches or provide additional information. >>=20 >> Reported-by: Shuangpeng Bai >>=20 >> [ 102.318332] BUG: KASAN: slab-out-of-bounds in = select_usb_power_delivery_show (drivers/usb/typec/class.c:1642) >> [ 102.319225] Read of size 8 at addr ffff888117d2f2c0 by task = cat/8378 >> [ 102.319943] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), = BIOS 1.16.3-debian-1.16.3-2 04/01/2014 >=20 > Does this happen on real hardware, or just on emulated hardware? I have only reproduced it in QEMU so far, not on real hardware. The repro uses QEMU to emulate the hardware environment needed to load = the FUSB302/TCPM driver path. I have not tested whether the same issue = happens on physical hardware. Please let me know if any additional information would be helpful. >=20 > thanks, >=20 > greg k-h