linux/sound/usb/usx2y
Takashi Iwai 7682e39948 ALSA: usx2y: Suppress kernel warning at page allocation failures
The usx2y driver allocates the stream read/write buffers in continuous
pages depending on the stream setup, and this may spew the kernel
warning messages with a stack trace like:
  WARNING: CPU: 1 PID: 1846 at mm/page_alloc.c:3883
  __alloc_pages_slowpath+0x1ef2/0x2d70
  Modules linked in:
  CPU: 1 PID: 1846 Comm: kworker/1:2 Not tainted
  ....

It may confuse user as if it were any serious error, although this is
no fatal error and the driver handles the error case gracefully.
Since the driver has already some sanity check of the given size (128
and 256 pages), it can't pass any crazy value.  So it's merely page
fragmentation.

This patch adds __GFP_NOWARN to each caller for suppressing such
kernel warnings.  The original issue was spotted by syzkaller.

Reported-by: Andrey Konovalov <andreyknvl@google.com>
Tested-by: Andrey Konovalov <andreyknvl@google.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2017-10-02 18:10:47 +02:00
..
Makefile ALSA: Add USB US122L driver 2008-08-01 13:37:12 +02:00
us122l.c ALSA: us122l: Use common error handling code in us122l_create_card() 2017-09-07 10:27:42 +02:00
us122l.h ALSA: us122l: clean up US144 handling 2017-05-15 11:02:08 +02:00
usX2Yhwdep.c ALSA: usb-audio: replace /proc/bus/usb by /dev/bus/usb 2017-04-17 10:23:55 +02:00
usX2Yhwdep.h
usb_stream.c ALSA: usx2y: Suppress kernel warning at page allocation failures 2017-10-02 18:10:47 +02:00
usb_stream.h ALSA: usx2y: Move UAPI definition into include/uapi/sound/usb_stream.h 2015-01-28 17:33:49 +01:00
usbus428ctldefs.h
usbusx2y.c ALSA: usbusx2y: constify usb_device_id. 2017-08-06 22:20:13 +02:00
usbusx2y.h ALSA: usx2y: Don't peep the card internal object 2014-02-17 10:16:25 +01:00
usbusx2yaudio.c ALSA: usb: constify snd_pcm_ops structures 2017-08-19 11:02:27 +02:00
usx2y.h
usx2yhwdeppcm.c ALSA: usb: constify snd_pcm_ops structures 2017-08-19 11:02:27 +02:00
usx2yhwdeppcm.h ALSA: sound/usb/usx2y: fix sparse warning: Should it be static? 2009-02-26 09:57:17 +01:00