summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-10-09 17:05:35 +0200
committerTakashi Iwai <tiwai@suse.de>2017-10-10 13:45:13 +0200
commit19b592dae895aad10b84246b0e12caad04e9eb0d (patch)
tree7e26bb0aaebe09cdc7b7dc6d0c42b8b2bfef23df /firmware
parenta6aa6cdcecfc0eb8a6fe634535384b4a63f38258 (diff)
downloadlinux-19b592dae895aad10b84246b0e12caad04e9eb0d.tar.bz2
ALSA: seq: Add sanity check for user-space pointer delivery
The sequencer event may contain a user-space pointer with its SNDRV_SEQ_EXT_USRPTR bit, and we assure that its delivery is limited with non-atomic mode. Otherwise the copy_from_user() may hit the fault and cause a problem. Although the core code doesn't set such a flag (only set at snd_seq_write()), any wild driver may set it mistakenly and lead to an unexpected crash. This patch adds a sanity check of such events at the delivery core code to filter out the invalid invocation in the atomic mode. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions