Re: [BUG] Drivers/8255: Page fault in comedi_8255.c

From: Ian Abbott
Date: Wed Dec 10 2025 - 05:07:20 EST


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 <abbotti@xxxxxxxxx> || 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 )=-