From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f48.google.com (mail-qv1-f48.google.com [209.85.219.48]) (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 2D8012EEE62 for ; Sun, 14 Jun 2026 19:11:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781464310; cv=none; b=KDey6QAmkxT4YcheDzHXZeP4jaC7E0Yv0PM0h4qRY/asHdYB+LP+tZZY+GQ6GcMl1x9iucUVhCwgUJtA+L0GdGowdtPyONUxZZmxvO4g1EUqLmA/mSH43G1eVgbMTDk+MgCUjrWoslo5Mukbh36KCdGX882CkxTE910WoOwO/Eo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781464310; c=relaxed/simple; bh=Oc4NZoffZJrtWCptOazzuLlG24KnxwgLA1+XKC6m+Kc=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=geyHGITR0QE9Gi9V/DxkZg8uCgKVUZ7Sd17p4NL1M+gdmXM2zDvhGsLmqPisQY/d5akXGrD5YrCXwaseN905/K7zznWeVr4Jp+69nlg8O1rvlcEsvBaYvuvyp0BmRZe0ZFQtmWMm3oMRrD0181iFIWbKdFbJuIG3H1d+CKrWAcQ= 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=V6EV5QiQ; arc=none smtp.client-ip=209.85.219.48 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="V6EV5QiQ" Received: by mail-qv1-f48.google.com with SMTP id 6a1803df08f44-8ccf18ef922so40560266d6.3 for ; Sun, 14 Jun 2026 12:11:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781464308; x=1782069108; 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=7RYt6Pm+UxWAry0ZkieTkpkpp8yOGTDeiY+ywKFe8Xs=; b=V6EV5QiQN4DfyfRqmfpa59k+amIf+buZwPSICKf11l8nEo1K9NU+v1eWPbWs3+C4Bi LJ9BUeQKOcvzgDDQO18vtoD9dKIo4jVdXf/h/jx7riRrukyWezemDAqzruNHWxx6bsWk Nkmp2wg3vmpBM4prQLGHyWagsOP+wGrw4dOxsA5xhJbDM8DXDEzdVveVhjTZoiLYfGxq aHdmyNpV4hidFWaB9FuvN09zfw+mNPsdLbWRNYcZv2Xs23MOWiX90c6/0SZMGYYV1ki0 SBabi+6DXKw42qDfnP4ZqdA/zA/9wNnJwmxDzOqUB34ThyZYuEPVK+EqP0cwYykcazNi EhCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781464308; x=1782069108; 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=7RYt6Pm+UxWAry0ZkieTkpkpp8yOGTDeiY+ywKFe8Xs=; b=tZR5yRRt70X32j6c27WiNfXtodJMcHNp6wbLQuX9BjJaK1HhbhcziBLy1iL3t1NKKg SPvdLTuu2HSgAcQ+ttBIZHTh09HAp7KG1W6wmiQsfQhEQabtH1n9eO358HSGVQrVaBEl It+iYSyYJi+TpdKxWS72x/K95btxQnfFmoDNTIQR6d4Xdfl473RjjQBK4STb5+o7wIiF 0MDCa+dAZ1CoGPyOsr1AHhoJn9qzBdimSL+Hzrf2u9DvBxr+iVrdUVKd5ALjwPbQdLbm Ks3rdCWmsr1eqQ6kaoNJ3SkALTrzjbYrbSF9i0RH9q0qTKi+2NwJK7UZFFuVlbLS3pT+ NvEg== X-Forwarded-Encrypted: i=1; AFNElJ/5elA2JuQo5Nf5PqyPSYcdL9aGDJQXBPbaiNJCTpXQ/JDBwYA9oVjWp1aT4K9Ge9WMXz6gUS6ngyaVdZM=@vger.kernel.org X-Gm-Message-State: AOJu0YwDmddiMcwy1vQ3isHOx4cjyHTW51QYCf4A/l0X483hv8cWu2Tb QKRQqoECgVNIafXcnZAX0XnS2UFx0q4uOllzMsO6PwjLGVL03Cu2fxJD+O6n1YPvyg8= X-Gm-Gg: Acq92OHqFS/muQeOT3nyiXVKqVg/0SM/EmN3kuD0XGsg9NgKIjBlqA/v1pME/RJOHSf 4nsLxlyzl138DEjdIfT8f+iUFeO7Y3dxNpIMZAJb0gAqPjt3A82j4J+VQqrs7AkjVNE2yabGQjV wn9RPe/UAj+eWit7HDGdDYG/S6c5Jh4N3t4meDTzrepAWSLiYXTqJk4K7Eyc+bd1wxDHqC2KFd/ GCo7kpQYmzV1eJ33BeiGRIr4G8B4+U6E15VIXrm7uR5ifuJ1klemwYJW/oSGq74kOV+t4otpEWF 2h2+Ug10m1QnBOiK1ruI04y4Dv1FqVDQaw0TTzOqZ0jFqd7N4n9mdkUK0SfoI4IzNaeMeKY3uJM z5flmLOquRaMrJ3wggghUMmC4RYJMVDolvS5hBKStgQoeBR763Gjdb7KiGqhwwaFIDBP7mWpUVO 1FjKFknnPDJ258r/LLDQZ1gpNOn1ElyF3r3WeCaz9HDhXJHnSWzk7ZwJpiGqVglN4uQdA= X-Received: by 2002:a05:6214:f64:b0:8ac:b1ad:3a29 with SMTP id 6a1803df08f44-8d44f424f0fmr141011706d6.35.1781464308045; Sun, 14 Jun 2026 12:11:48 -0700 (PDT) Received: from smtpclient.apple ([2607:fb90:a8d1:8eec:5c3c:2f7e:d7e3:b1bd]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-8d30105fcfesm88575226d6.5.2026.06.14.12.11.47 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 Jun 2026 12:11:47 -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: <2026061454-pep-avenging-9656@gregkh> Date: Sun, 14 Jun 2026 15:11:16 -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> <2026061454-pep-avenging-9656@gregkh> To: Greg KH X-Mailer: Apple Mail (2.3864.600.51.1.1) > On Jun 14, 2026, at 13:32, Greg KH wrote: >=20 > On Sun, Jun 14, 2026 at 01:28:36PM -0400, Shuangpeng wrote: >>=20 >>=20 >>> 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? >>=20 >> I retested it on the latest Linus tree: >>=20 >> 424280953322cf66314f3ba5e2d1ef345f21c770 >>=20 >> The same bug still reproduces there. >>=20 >>>>=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? >>=20 >> 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. >>=20 >> Please let me know if any additional information would be helpful. >=20 > If you could test on real hardware, that would be best. How do we = know > that qemu is actually correct? :) Thanks for the clarification, that makes sense. Unfortunately, I do not have real FUSB302/TCPM hardware available to = test this on, so I cannot confirm whether it happens on physical hardware. > thanks, >=20 > greg k-h