All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Artem Novikov" <novart962@gmail.com>
Cc: linux-serial@vger.kernel.org
Subject: Re: [PATCH] tty: n_gsm: serialize mux configuration
Date: Tue, 10 Nov 2026 08:07:22 +0000	[thread overview]
Message-ID: <sashiko-outbox-206566@kernel.org> (raw)
In-Reply-To: <20261110075538.51452-1-novart962@gmail.com>

> From: Artem Novikov <naa@amicon.ru>
> 
> Concurrent GSMIOC_SETCONF calls can both decide to restart the same mux.
> gsm_cleanup_mux() releases gsm->mutex before gsm_config() calls
> gsm_activate_mux(), so cleanup and activation from different calls can
> overlap. The activation paths can register the same gsmtty minors, and
> registration rollback can race with another registration or cleanup.
> GSMIOC_SETCONF_EXT can restart the mux through the same paths.
> 
> A 5.10.246-syzkaller report shows a NULL dereference in the unregister
> path:
> 
>  KASAN: null-ptr-deref in range [0x0000000000000060-0x0000000000000067]
>  RIP: 0010:cdev_del+0x22/0x90 fs/char_dev.c:596
>  Call Trace:
> [ ... ]
> finish; independent muxes retain separate locks.
> 
> Fixes: 01aecd917114 ("tty: n_gsm: fix tty registration before control channel open")
> Cc: stable@vger.kernel.org
> Signed-off-by: Artem Novikov <naa@amicon.ru>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261110075538.51452-1-novart962@gmail.com?part=1


  reply	other threads:[~2026-11-10  8:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-10  7:55 [PATCH] tty: n_gsm: serialize mux configuration Artem Novikov
2026-11-10  8:07 ` sashiko-bot [this message]
2026-11-10 16:47 ` Greg KH

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=sashiko-outbox-206566@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=novart962@gmail.com \
    --cc=sashiko-reviews@lists.linux.dev \
    /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.