From: Greg KH <greg@kroah.com>
To: Farhad Alemi <farhad.alemi@berkeley.edu>
Cc: Jiri Slaby <jirislaby@kernel.org>,
falemi@asu.edu, linux-serial@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [BUG] nozomi: missing BAR-TYPE check -- writew() on an IOPORT cookie
Date: Fri, 28 Aug 2026 07:49:52 +0200 [thread overview]
Message-ID: <2026082848-subdivide-yield-b210@gregkh> (raw)
In-Reply-To: <CA+0ovCh_phuo7TsORd9dZGA3joG6rAOyXm=cv9+BrGgQb4w33Q@mail.gmail.com>
On Thu, Aug 27, 2026 at 10:33:24PM -0700, Farhad Alemi wrote:
> Hello,
>
> As part of the kernel research at ASU's SEFCOM
> lab, we hit the crash below. Crash reports can be found here:
>
> https://github.com/farhad-alemi/public_bug_reports/tree/main/148-tty-nozomi-writew-on-ioport-cookie/
>
> nozomi 0000:00:02.0: Card type is: 8192
> BUG: unable to handle page fault for address: 000000000001d044
> #PF: supervisor write access in kernel mode
> #PF: error_code(0x0002) - not-present page
> Oops: Oops: 0002 [#1] SMP KASAN NOPTI
> RIP: 0010:nozomi_card_init+0x9fe/0x14c0
> Call Trace:
> nozomi_card_init+0x9fe/0x14c0
> pci_device_probe+0x436/0xc90
> really_probe+0x267/0xaf0
> __driver_probe_device+0x1e2/0x350
> driver_probe_device+0x4f/0x240
> __device_attach_driver+0x270/0x410
> bus_for_each_drv+0x258/0x2f0
> __device_attach+0x2c5/0x450
> drivers_probe_store+0x11c/0x220
> kernfs_fop_write_iter+0x3af/0x540
> ksys_write+0x150/0x270
>
> Our reproducer.c is available upon request.
>
> Happy to test a patch if that would help.
Please send a patch, thanks.
Oh wait, why are you attempting to force drivers to random fake devices?
You have seen this patch set which will taint your kernel if you attempt
such a broken thing to do, right:
https://lore.kernel.org/r/20260826-bind_taint-v1-0-52b05f4a965c@linuxfoundation.org
Please test that patch set (well, after fixing up the obvious problems
with it...)
greg k-h
prev parent reply other threads:[~2026-08-28 5:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-28 5:33 [BUG] nozomi: missing BAR-TYPE check -- writew() on an IOPORT cookie Farhad Alemi
2026-08-28 5:49 ` Greg KH [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2026082848-subdivide-yield-b210@gregkh \
--to=greg@kroah.com \
--cc=falemi@asu.edu \
--cc=farhad.alemi@berkeley.edu \
--cc=jirislaby@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.