From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp74.iad3a.emailsrvr.com (smtp74.iad3a.emailsrvr.com [173.203.187.74]) (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 6E99E308F27 for ; Wed, 10 Dec 2025 10:06:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=173.203.187.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765361221; cv=none; b=bj9LIK9wUQWY7OQpQOi8KWwmtB5nILTVkST+qgK4Zd26hLVkzaMYF6bsfN7WkjmLkecSEkTHfFliiHXcMkoprCul+hPmQS5zd+KDzkx8pj1Rdo7FpzTqDs2MLYVV2lFW/2W3JZzqXuYNGJoTH+KiJi2eqyTHYF1NGO+eyuG/BQE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765361221; c=relaxed/simple; bh=XsgN8/2gmGjdy/BLZmBKl1mkHa7STGxu4p7JygElRpI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=FG2D4Nlzn+JcwH2bxuei12IeTNl13lHInjFCb6HLKr23niswpZbF2TOoog+bVLQcj+zIOgszrs/pS+2OSHgXoxafJ0REBX616D0ScdS1X5Iai6g4OvyJqNMsSWq/Ypme3pARicwBZFvCXiTiF7xPCar8CbjOa7WwgR5xJBaYY+0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mev.co.uk; spf=pass smtp.mailfrom=mev.co.uk; dkim=pass (1024-bit key) header.d=mev.co.uk header.i=@mev.co.uk header.b=GzusAyK0; arc=none smtp.client-ip=173.203.187.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mev.co.uk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mev.co.uk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mev.co.uk header.i=@mev.co.uk header.b="GzusAyK0" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mev.co.uk; s=20221208-6x11dpa4; t=1765361211; bh=XsgN8/2gmGjdy/BLZmBKl1mkHa7STGxu4p7JygElRpI=; h=Date:Subject:To:From:From; b=GzusAyK0BRTU94zoe0BjhnOYeJNCtOsas4s28FFPzLDhIsRbzGLiUj5r3kE9ZPhOG Dn9kP1rRj2QUYiZw3FJ7cReSUBNwmtRrlLqj9VjiVGEmVFQpcFD3oa9IwYfdZhkUaq e84+apHBGHM2ITH38/6BQmjhtKXljXS0RD/eMgEo= X-Auth-ID: abbotti@mev.co.uk Received: by smtp10.relay.iad3a.emailsrvr.com (Authenticated sender: abbotti-AT-mev.co.uk) with ESMTPSA id 1F8EC3341; Wed, 10 Dec 2025 05:06:50 -0500 (EST) Message-ID: <3e45e797-6c58-4937-a8b8-e71b869bbc97@mev.co.uk> Date: Wed, 10 Dec 2025 10:06:50 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [BUG] Drivers/8255: Page fault in comedi_8255.c To: Tianyu Li <2200013188@stu.pku.edu.cn> Cc: linux-kernel , hsweeten , xujiakai2025 , "zhaoruilin22@mails.ucas.ac.cn" References: <22bbe97e-db08-481b-96d0-eb1d12227083@mev.co.uk> <2dd7ba02-6af0-4b66-9a72-d06da8b0057d@mev.co.uk> Content-Language: en-GB From: Ian Abbott Organization: MEV Ltd. In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Classification-ID: de1fa07d-6f1a-471d-ae44-dee18aa16d0a-1-1 On 09/12/2025 13:24, Tianyu Li wrote: > Hi Ian, > > Thank you for the detailed explanation — that clarifies the situation very well. > > You mentioned that in linux-next the 8255 driver now returns an error immediately when reserving an I/O port region fails, which would also avoid the crash during fuzzing. I would like to take a closer look at that change. > > > One thing that will affect the fuzzing tests is that the "8255" driver > > in "linux-next" now returns an error as soon as it fails to reserve any > > I/O port region, so unless the special base addresses (0x100 etc.) > > appear early in the list before the conflicting base addresses, it won't > > crash. > > Could you please point me to the specific commit or patch where this improvement was introduced (a commit hash or link would be perfect if convenient)? This would help me better understand the context and verify the behavior on my side. It's this one: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=98d86d87aafb01e7c60b46d327a0a32619a167ff > Thanks again for your guidance — I really appreciate your help. > > Best regards, > Tianyu Li Kind regards, Ian -- -=( Ian Abbott || MEV Ltd. is a company )=- -=( registered in England & Wales. Regd. number: 02862268. )=- -=( Regd. addr.: S11 & 12 Building 67, Europa Business Park, )=- -=( Bird Hall Lane, STOCKPORT, SK3 0XA, UK. || www.mev.co.uk )=-