Re: [syzbot] WARNING: kmalloc bug in snd_pcm_plugin_alloc (2)

From: Linus Torvalds
Date: Thu Mar 17 2022 - 14:57:12 EST


On Thu, Mar 17, 2022 at 7:13 AM Takashi Iwai <tiwai@xxxxxxx> wrote:
>
> And, we want not only avoiding the overflow but also limiting the
> actual size, too. Practically seen, more than 1MB temporary buffer is
> unrealistic, and better to bail if more than that is requested.

Looks sane to me, although I obviously can't judge how well that 1M
limit works since I don't know the uses.

Thanks,
Linus