All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: "Yannick Müller" <mail@ynnk.dev>
Cc: tiwai@suse.com, perex@perex.cz, linux-sound@vger.kernel.org
Subject: Re: [PATCH 0/2] ALSA: usb-audio: Limit recursion depth when walking audio units
Date: Wed, 25 Nov 2026 14:44:58 +0100	[thread overview]
Message-ID: <87v75l6n51.wl-tiwai@suse.de> (raw)
In-Reply-To: <20261124132551.137134-1-mail@ynnk.dev>

On Tue, 24 Nov 2026 14:25:49 +0100,
Yannick Müller wrote:
> 
> Fix a bug that makes it possible to overflow the kernel stack by
> specifying a long chain of unique nested audio units. The current
> implementation lets an external device specify up to 255 audio units,
> which results in a stack overflow, as walking through all of them
> recursively leads to too many nested calls.
> 
> Limit the recursion depth to 16 nested units so that a device can no
> longer exhaust the kernel stack with a long chain.
> 
> Yannick Müller (2):
>   ALSA: usb-audio: Limit the depth of the clock topology walk
>   ALSA: usb-audio: Limit the unit nesting depth in the mixer parser

Applied both patches to for-next branch.  Thanks.


Takashi

      parent reply	other threads:[~2026-11-25 13:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 13:25 [PATCH 0/2] ALSA: usb-audio: Limit recursion depth when walking audio units Yannick Müller
2026-11-24 13:25 ` [PATCH 1/2] ALSA: usb-audio: Limit the depth of the clock topology walk Yannick Müller
2026-11-24 13:30   ` sashiko-bot
2026-11-24 13:25 ` [PATCH 2/2] ALSA: usb-audio: Limit the unit nesting depth in the mixer parser Yannick Müller
2026-11-25 13:44 ` Takashi Iwai [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=87v75l6n51.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=linux-sound@vger.kernel.org \
    --cc=mail@ynnk.dev \
    --cc=perex@perex.cz \
    --cc=tiwai@suse.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 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.