RE: [patch 3/3] Staging: sst: fixups in SNDRV_SST_STREAM_DECODE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> This is another patch about copying data to the kernel before using it.
> 
> SNDRV_SST_STREAM_DECODE is sort of tricky because we need to do a
> copy_from_user() that gives us another two pointers and we have copy
> those.  Those again give us some more pointers that we have to copy.
> 
> Besides those problems, the code had a stack overflow:
> -	struct snd_sst_buff_entry ibuf_temp[param->ibufs->entries],
> -		obuf_temp[param->obufs->entries];
> param->ibufs->entries comes from the user.
> 
> Signed-off-by: Dan Carpenter <error27@xxxxxxxxx>
Acked-by: Vinod Koul <vinod.koul@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux