]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: asihpi: fix kernel memory disclosure
authorVlad Tsyrklevich <vlad@tsyrklevich.net>
Thu, 13 Oct 2016 12:36:41 +0000 (14:36 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 18 Oct 2016 12:08:25 +0000 (14:08 +0200)
commitb0e15f3905d82e901e23cc7b0578683b4d424934
tree7bbc369e84e7466fdfb8b669db191d2cc88ac7c5
parent9aa44894c029a4e484632ac8fdf95d0b4c5eef4b
ALSA: asihpi: fix kernel memory disclosure

Some elements in hr are not cleared before being copied to user space,
leaking kernel heap memory to user space. For example, this happens in
the error handling code for the HPI_ADAPTER_DELETE case. Zero the memory
before it's copied.

Signed-off-by: Vlad Tsyrklevich <vlad@tsyrklevich.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/asihpi/hpioctl.c