From: syzbot <syzbot+843bf2f48f4d12e6682e@syzkaller.appspotmail.com>
To: igorpetindev@gmail.com
Cc: igorpetindev@gmail.com, linux-kernel@vger.kernel.org,
syzkaller-bugs@googlegroups.com
Subject: Re: test fix
Date: Thu, 24 Sep 2026 12:17:10 -0700 [thread overview]
Message-ID: <6ab57736.80e1c6cc.1e8e5f.0015.GAE@google.com> (raw)
In-Reply-To: <CAG21Q81aiFDj+UDw2LMipYvvJFh=mRVVE4bDEgEo3FXfR1nTfg@mail.gmail.com>
> #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
This crash does not have a reproducer. I cannot test it.
> master
>
> diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c
> index 95774b0f1484..030735da6b8c 100644
> --- a/drivers/tty/serial/serial_core.c
> +++ b/drivers/tty/serial/serial_core.c
> @@ -3210,8 +3210,15 @@ static void serial_core_remove_one_port(struct
> uart_driver *drv,
> /*
> * If the port is used as a console, unregister it
> */
> - if (uart_console(uport))
> + if (uart_console(uport)) {
> unregister_console(uport->cons);
> + port->console = false;
> + }
> +
> + guard(mutex)(&port->mutex);
> +
> + if (tty_port_initialized(port))
> + uart_shutdown(NULL, state);
>
> /*
> * Free the port IO and memory resources, if any.
> @@ -3227,7 +3234,6 @@ static void serial_core_remove_one_port(struct
> uart_driver *drv,
> uport->type = PORT_UNKNOWN;
> uport->port_dev = NULL;
>
> - guard(mutex)(&port->mutex);
> WARN_ON(atomic_dec_return(&state->refcount) < 0);
> wait_event(state->remove_wait, !atomic_read(&state->refcount));
> state->uart_port = NULL;
parent reply other threads:[~2026-09-24 19:17 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <CAG21Q81aiFDj+UDw2LMipYvvJFh=mRVVE4bDEgEo3FXfR1nTfg@mail.gmail.com>]
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=6ab57736.80e1c6cc.1e8e5f.0015.GAE@google.com \
--to=syzbot+843bf2f48f4d12e6682e@syzkaller.appspotmail.com \
--cc=igorpetindev@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzkaller-bugs@googlegroups.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®