Re: [PATCH] hw/audio/sb16: Restrict I/O sampling rate range for command 41h/42h

2021-06-24 Thread Gerd Hoffmann
On Thu, Jun 24, 2021 at 10:11:35AM +0800, Qiang Liu wrote: > Hi > > > This looks like your mailer mangled the patch. > > Can you resent using 'git send-email`? > Yes, I can. I finally figure it out how to config my Gmail. I should > send a new email > and this thread is supposed to be closed,

Re: [PATCH] hw/audio/sb16: Restrict I/O sampling rate range for command 41h/42h

2021-06-23 Thread Qiang Liu
Hi > This looks like your mailer mangled the patch. > Can you resent using 'git send-email`? Yes, I can. I finally figure it out how to config my Gmail. I should send a new email and this thread is supposed to be closed, right? Best Qiang

Re: [PATCH] hw/audio/sb16: Restrict I/O sampling rate range for command 41h/42h

2021-06-23 Thread Gerd Hoffmann
Hi, Applying: hw/audio/sb16: Restrict I/O sampling rate range for command 41h/42h error: corrupt patch at line 35 error: could not build fake ancestor > @@ -244,17 +261,7 @@ static void dma_cmd8 (SB16State *s, int mask, int > dma_len) This looks like your mailer mangled the patch. Can you

[PATCH] hw/audio/sb16: Restrict I/O sampling rate range for command 41h/42h

2021-06-22 Thread Qiang Liu
The I/O sampling rate range is enforced to 5000 to 45000HZ according to commit a2cd86a9. Setting I/O sampling rate with command 41h/42h, a guest user can break this assumption and trigger an assertion in audio_calloc via command 0xd4. This patch restricts the I/O sampling rate range for command