Re: [PATCH] ALSA: pcm: Need to check whether runtime is valid or not

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

 



On Wed, 12 May 2021 06:43:23 +0200,
Chanho Park wrote:
> 
> From: eunwoo kim <ew.kim@xxxxxxxxxxx>
> 
> Since snd_pcm_ioctl_sw_params_compat has no runtime variable check,
> if application call the ioctl after close, it can make kernel crash.
> So, snd_pcm_ioctl_sw_params_compat needs to check the runtime variable
> at the beginning of the function.

In principle, you cannot call ioctl for an already closed file.
Or do you mean other code path?


Takashi



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux