From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f44.google.com (mail-qv1-f44.google.com [209.85.219.44]) (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 C8B2C1C84D0 for ; Mon, 15 Jun 2026 20:33:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781555623; cv=none; b=bwDRatcj+YjXlQ9pBylVMjkRl9fQnUH/OJdoOO2xVtZwFOizBnx+C3G3gh2iM8uYOyOZEyBWLSIUiy/WKfMSwSU1B8CYHIf++DV9v1+/lmEHdfXcg824V3QXEac4dDs/1zLYDLWJ10t3YWVs7xAvuFpjEBW83EoyGMNoF0/X+UU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781555623; c=relaxed/simple; bh=z0REZUQ/vguVRy94U0jC/DZO8Vmt5LAi1vHFLV4NwwU=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=ryJIgQ8g81FEOPnQylDHkTPzz+k1iYD7zr7jNGISj8O4foFvfrziv+FxHFnA6X8KlBckk9ekebNMIXtrY5ylCT5qMZ810KjeFckaXzmOLu4RI9T6jTj3QIXMV8NsIhScydhGq5PlFPtmFMWEQcWNqiyfqTZP3dsxrVns4VdmA4g= 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=MmYcTqNo; arc=none smtp.client-ip=209.85.219.44 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="MmYcTqNo" Received: by mail-qv1-f44.google.com with SMTP id 6a1803df08f44-8ce3876a50cso39196576d6.0 for ; Mon, 15 Jun 2026 13:33:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781555621; x=1782160421; 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=Yq8tyoxw727LBbloxb6+brkHRJze+PdORK+Q+eQrtt8=; b=MmYcTqNo8hiP3MDFY2xZATiu6rE3pVNNxNNsjN2iUu52zYBthMT0ERK2eEuVQ6UeVI kKftjy87pPfOuQ/3Pax7wEFjBB7K1zP7i+ggk4muON6nEc7L4IAYWG5uqu4OE//S0fuj +fda8s+Yfb7uOXB16noKmDRKWsiu4hblfQY53JjJrrMyLRQD4p3iv/UbdH07BZeZeHKk WWyoCquRiHhWldv6+N9ShQSmUdYJXo94sk9GRyTvWworKLmMcKUE0bV7uablG/3q+gZ4 EEcCIyq0yKsVFpkScLbPVODl4mUwLeYrPJPKR0XSDGzv1UH/gnke2KDmNSUjzkPqkok0 w2yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781555621; x=1782160421; 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=Yq8tyoxw727LBbloxb6+brkHRJze+PdORK+Q+eQrtt8=; b=JszXXVWx2Rw45KKjvuWYXrdLR3YeNmvKJL/53Ml9uT2KbP8EGdrKZkBdhycFMloTjv CefylCQlfMrQspK7Ho2xThESNmjBvSkh9Op2s9tR0ki8A4/E9tcBagCyLUxHpYpwWrRS oPi10S0oGwOzalTjWvlGM3wF9BCh75nBdyx2ZIOnuDA2jshlf9S/GeSQoqSVeBdD8RFb Aah3zT64tTYh1DFjCvmzko+QptCeEYi9XzAZaUIbWTiCJCAIvXT8r0A1rvwh3Oqs9hq4 eE+0VXQEt+9nJmU0ho01WPW/iBaYCaVX+aVsvmfYDNc41gzkPADXJH+QQUKN8YsnzXhS Uirw== X-Forwarded-Encrypted: i=1; AFNElJ/rwYpRSEUg0Gt3Hho8ko02vE7dOKfwyAwHWTMZcgVlOFSdoIeR6U03qQIQL9n5T7yZ29DLAlpmySKpz7A=@vger.kernel.org X-Gm-Message-State: AOJu0YzktfrQ2gQeiXRLUJlk/JBCsLIMGQa1wmmdZih0fPlqWgN1jzVv 6evi5xItY8FaHNbzjAqladwD5V7D1h5dxYJx6R7mihVEUsqcbhqmC+XR X-Gm-Gg: Acq92OHdmF31nh0d+kTEsy72ly5ZdTwDYKWa5C6RhnyTlyw8awXD/USKsfyFTBfKLPr MWOwIw1FNdlSN0c2BtDva2KUyNRX4qhdZirkxm6f7VhnqMmzRI8id4bocPHtXszNd4mJTLflXhe Tay7eku+4a1vvo066eUXMK+jkb4ei26rKrtW/5guwX/2Od9FyLhOwzq4ewNP1SbxlB0nZR7OPk+ Rb38vehKClC4vVJUp3kLyg8leadp6f4XjzTwj96LnpwyBFii5amCgUJwoCh6yShfrapj1wTnL8J 1Tar9uoSOwOBNCm1aoYC7BKHnfH9F0aZnk1snCXcIASVhG7dlkLlsoaP/Wilm0h9rHwiLiELxNL XyO4SSQLFRpuWxXKLDRDfqyN61xNQ4lWdoY85606DDn/yQEeQwsHJkT8R8YpajOtV9zG4p/uXcb xAI01L083Nzu1dSGZ5tORjwWOuNluVpgkJ8etTvKcs6riKFel0875VmA== X-Received: by 2002:a05:6214:5902:b0:8cc:ce4d:1d96 with SMTP id 6a1803df08f44-8d44e595917mr217308536d6.19.1781555620466; Mon, 15 Jun 2026 13:33:40 -0700 (PDT) Received: from smtpclient.apple ([104.39.165.68]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-8d9f122b046sm9664696d6.1.2026.06.15.13.33.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jun 2026 13:33:40 -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-use-after-free in ipoctal_write_tty From: Shuangpeng In-Reply-To: <2026061553-childcare-rush-8f26@gregkh> Date: Mon, 15 Jun 2026 16:33:09 -0400 Cc: vaibhavgupta40@gmail.com, jens.taprogge@taprogge.org, kees@kernel.org, industrypack-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: <53780D3D-9EE8-4032-BC37-F17694C4D685@gmail.com> References: <178144969601.60470.1257088106279546587@gmail.com> <2026061553-childcare-rush-8f26@gregkh> To: Greg KH X-Mailer: Apple Mail (2.3864.600.51.1.1) > On Jun 15, 2026, at 00:03, Greg KH wrote: > > On Sun, Jun 14, 2026 at 03:48:50PM -0400, Shuangpeng Bai wrote: >> Hi Kernel Maintainers, >> >> I hit the following report while testing current upstream kernel: >> >> KASAN: slab-use-after-free in ipoctal_write_tty > > Cool, do you have this hardware, or is this only virtual testing? No, I do not have the physical hardware. This was reproduced with unmodified QEMU using its existing TPCI200/IP-Octal emulation. > > If virtual, are you sure that the hardware is being emulated properly? I understand this is not the same as testing on real hardware. However, my current understanding is that the crash is triggered after a successful probe through the normal sysfs unbind/remove path while the ipoctal tty fd is still open. The failing path does not seem to rely on device-specific emulation details after probe, but rather on the lifetime of the tty/device state during removal. Please let me know if I am missing anything here. I would also appreciate any suggestions on what I could check to better evaluate whether the emulation is appropriate for this report. Best, Shuangpeng > thanks, > > greg k-h