Linux Kernel Mailing List | 2 Jan 20:59 2011

kconfig: fix undesirable side effect of adding "visible" menu attribute

Gitweb:     http://git.kernel.org/linus/7ad1227818f09242cfe9bf1845fd24211f5f99bd
Commit:     7ad1227818f09242cfe9bf1845fd24211f5f99bd
Parent:     307991055b0ce65d53dc1eb501c456c10eb36360
Author:     Jan Beulich <JBeulich <at> novell.com>
AuthorDate: Thu Dec 9 08:11:38 2010 +0000
Committer:  Michal Marek <mmarek <at> suse.cz>
CommitDate: Wed Dec 29 23:31:34 2010 +0100

    kconfig: fix undesirable side effect of adding "visible" menu attribute

    This lead to non-selected, non-user-selectable options to be written
    out to .config. This is not only pointless, but also preventing the
    user to be prompted should any of those options eventually become
    visible (e.g. by de-selecting the *_AUTO options the "visible"
    attribute was added for.

    Furthermore it is quite logical for the "visible" attribute of a menu
    to control the visibility of all contained prompts, which is what the
    patch does.

    Signed-off-by: Jan Beulich <jbeulich <at> novell.com>
    Signed-off-by: Michal Marek <mmarek <at> suse.cz>
---
 scripts/kconfig/menu.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c
index b9d9aa1..5f77dcb 100644
--- a/scripts/kconfig/menu.c
+++ b/scripts/kconfig/menu.c
(Continue reading)

Linux Kernel Mailing List | 2 Jan 20:59 2011

sound: Prevent buffer overflow in OSS load_mixer_volumes

Gitweb:     http://git.kernel.org/linus/d81a12bc29ae4038770e05dce4ab7f26fd5880fb
Commit:     d81a12bc29ae4038770e05dce4ab7f26fd5880fb
Parent:     7693457547b729d9010a6014bbb8572b085f58d4
Author:     Dan Rosenberg <drosenberg <at> vsecurity.com>
AuthorDate: Sat Dec 25 16:23:40 2010 -0500
Committer:  Takashi Iwai <tiwai <at> suse.de>
CommitDate: Thu Dec 30 13:20:55 2010 +0100

    sound: Prevent buffer overflow in OSS load_mixer_volumes

    The load_mixer_volumes() function, which can be triggered by
    unprivileged users via the SOUND_MIXER_SETLEVELS ioctl, is vulnerable to
    a buffer overflow.  Because the provided "name" argument isn't
    guaranteed to be NULL terminated at the expected 32 bytes, it's possible
    to overflow past the end of the last element in the mixer_vols array.
    Further exploitation can result in an arbitrary kernel write (via
    subsequent calls to load_mixer_volumes()) leading to privilege
    escalation, or arbitrary kernel reads via get_mixer_levels().  In
    addition, the strcmp() may leak bytes beyond the mixer_vols array.

    Signed-off-by: Dan Rosenberg <drosenberg <at> vsecurity.com>
    Cc: stable <stable <at> kernel.org>
    Signed-off-by: Takashi Iwai <tiwai <at> suse.de>
---
 sound/oss/soundcard.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/oss/soundcard.c b/sound/oss/soundcard.c
index 46c0d03..fcb14a09 100644
--- a/sound/oss/soundcard.c
(Continue reading)

Linux Kernel Mailing List | 2 Jan 20:59 2011

ALSA: hda: Use LPIB quirk for Dell Inspiron m101z/1120

Gitweb:     http://git.kernel.org/linus/e03fa055bc126e536c7f65862e08a9b143138ea9
Commit:     e03fa055bc126e536c7f65862e08a9b143138ea9
Parent:     d81a12bc29ae4038770e05dce4ab7f26fd5880fb
Author:     Daniel T Chen <crimsun <at> ubuntu.com>
AuthorDate: Tue Dec 28 17:20:02 2010 -0500
Committer:  Takashi Iwai <tiwai <at> suse.de>
CommitDate: Thu Dec 30 13:26:19 2010 +0100

    ALSA: hda: Use LPIB quirk for Dell Inspiron m101z/1120

    Sjoerd Simons reports that, without using position_fix=1, recording
    experiences overruns. Work around that by applying the LPIB quirk
    for his hardware.

    Reported-and-tested-by: Sjoerd Simons <sjoerd <at> debian.org>
    Cc: <stable <at> kernel.org>
    Signed-off-by: Daniel T Chen <crimsun <at> ubuntu.com>
    Signed-off-by: Takashi Iwai <tiwai <at> suse.de>
---
 sound/pci/hda/hda_intel.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index b030c8e..a1c4008 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
 <at>  <at>  -2300,6 +2300,7  <at>  <at>  static struct snd_pci_quirk position_fix_list[] __devinitdata = {
 	SND_PCI_QUIRK(0x1028, 0x01cc, "Dell D820", POS_FIX_LPIB),
 	SND_PCI_QUIRK(0x1028, 0x01de, "Dell Precision 390", POS_FIX_LPIB),
 	SND_PCI_QUIRK(0x1028, 0x01f6, "Dell Latitude 131L", POS_FIX_LPIB),
(Continue reading)

Linux Kernel Mailing List | 2 Jan 20:59 2011

ASoC: codecs: Add missing control_type initialization

Gitweb:     http://git.kernel.org/linus/7f984b55acb6530bf854bfcac13104228f3336c1
Commit:     7f984b55acb6530bf854bfcac13104228f3336c1
Parent:     862af8adbe6b9ccb7c00c13717b1f92465f79aa2
Author:     Lars-Peter Clausen <lars <at> metafoo.de>
AuthorDate: Tue Dec 28 21:08:57 2010 +0100
Committer:  Mark Brown <broonie <at> opensource.wolfsonmicro.com>
CommitDate: Tue Dec 28 23:18:43 2010 +0000

    ASoC: codecs: Add missing control_type initialization

    Some codec drivers do not initialize the control_type field in their private
    device struct, but still use it when calling snd_soc_codec_set_cache_io.
    This patch fixes the issue by properly initializing it in the drivers probe
    functions.

    Signed-off-by: Lars-Peter Clausen <lars <at> metafoo.de>
    Signed-off-by: Mark Brown <broonie <at> opensource.wolfsonmicro.com>
    Cc: stable <at> kernel.org (for 2.6.37 only)
---
 sound/soc/codecs/wm8940.c |    1 +
 sound/soc/codecs/wm8955.c |    1 +
 sound/soc/codecs/wm8960.c |    1 +
 sound/soc/codecs/wm8971.c |    1 +
 sound/soc/codecs/wm9081.c |    1 +
 5 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/sound/soc/codecs/wm8940.c b/sound/soc/codecs/wm8940.c
index 2cb16f8..23086e2 100644
--- a/sound/soc/codecs/wm8940.c
+++ b/sound/soc/codecs/wm8940.c
(Continue reading)

Linux Kernel Mailing List | 2 Jan 20:59 2011

ASoC: codecs: wm8741: Fix register cache incoherency

Gitweb:     http://git.kernel.org/linus/52ca353bc8597dcc1d6d7abc03eecc1b452d79c9
Commit:     52ca353bc8597dcc1d6d7abc03eecc1b452d79c9
Parent:     beebca312009e9567d5e0229ea6b82bdf9a864cf
Author:     Lars-Peter Clausen <lars <at> metafoo.de>
AuthorDate: Tue Dec 28 21:37:58 2010 +0100
Committer:  Mark Brown <broonie <at> opensource.wolfsonmicro.com>
CommitDate: Tue Dec 28 23:19:27 2010 +0000

    ASoC: codecs: wm8741: Fix register cache incoherency

    The multi-component patch(commit f0fba2ad1) moved the allocation of the
    register cache from the driver to the ASoC core. Most drivers where adjusted to
    this, but the wm8741 driver still uses its own register cache for its
    private functions, while functions from the ASoC core use the generic cache.
    Thus we end up with two from each other incoherent caches, which can lead to
    undefined behaviour.
    This patch fixes the issue by changing the wm8741 driver to use the
    generic register cache in its private functions.

    Signed-off-by: Lars-Peter Clausen <lars <at> metafoo.de>
    Cc: Ian Lartey <ian <at> opensource.wolfsonmicro.com>
    Cc: Dimitris Papastamos <dp <at> opensource.wolfsonmicro.com>
    Signed-off-by: Mark Brown <broonie <at> opensource.wolfsonmicro.com>
    Cc: stable <at> kernel.org (for 2.6.37 only)
---
 sound/soc/codecs/wm8741.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/sound/soc/codecs/wm8741.c b/sound/soc/codecs/wm8741.c
index 90e31e9..aea60ef 100644
(Continue reading)

Linux Kernel Mailing List | 2 Jan 20:59 2011

ASoC: codecs: wm8904: Fix register cache incoherency

Gitweb:     http://git.kernel.org/linus/f578a188e8b21be623b48bb0eb3a92174c2e5b82
Commit:     f578a188e8b21be623b48bb0eb3a92174c2e5b82
Parent:     52ca353bc8597dcc1d6d7abc03eecc1b452d79c9
Author:     Lars-Peter Clausen <lars <at> metafoo.de>
AuthorDate: Tue Dec 28 21:37:59 2010 +0100
Committer:  Mark Brown <broonie <at> opensource.wolfsonmicro.com>
CommitDate: Tue Dec 28 23:19:36 2010 +0000

    ASoC: codecs: wm8904: Fix register cache incoherency

    The multi-component patch(commit f0fba2ad1) moved the allocation of the
    register cache from the driver to the ASoC core. Most drivers where adjusted to
    this, but the wm8904 driver still uses its own register cache for its
    private functions, while functions from the ASoC core use the generic cache.
    Thus we end up with two from each other incoherent caches, which can lead to
    undefined behaviour.
    This patch fixes the issue by changing the wm8904 driver to use the
    generic register cache in its private functions.

    Signed-off-by: Lars-Peter Clausen <lars <at> metafoo.de>
    Cc: Ian Lartey <ian <at> opensource.wolfsonmicro.com>
    Cc: Dimitris Papastamos <dp <at> opensource.wolfsonmicro.com>
    Signed-off-by: Mark Brown <broonie <at> opensource.wolfsonmicro.com>
    Cc: stable <at> kernel.org (for 2.6.37 only)
---
 sound/soc/codecs/wm8904.c |   37 ++++++++++++++++++-------------------
 1 files changed, 18 insertions(+), 19 deletions(-)

diff --git a/sound/soc/codecs/wm8904.c b/sound/soc/codecs/wm8904.c
index 9001cc4..1ec12ef 100644
(Continue reading)

Linux Kernel Mailing List | 2 Jan 20:59 2011

ASoC: codecs: wm8962: Fix register cache incoherency

Gitweb:     http://git.kernel.org/linus/7f87e30ef29951f4509a7f86acf00e1ba48af54a
Commit:     7f87e30ef29951f4509a7f86acf00e1ba48af54a
Parent:     715920d04c787ed718327da53cf51689e51ef3ce
Author:     Lars-Peter Clausen <lars <at> metafoo.de>
AuthorDate: Tue Dec 28 21:38:01 2010 +0100
Committer:  Mark Brown <broonie <at> opensource.wolfsonmicro.com>
CommitDate: Tue Dec 28 23:20:12 2010 +0000

    ASoC: codecs: wm8962: Fix register cache incoherency

    The multi-component patch(commit f0fba2ad1) moved the allocation of the
    register cache from the driver to the ASoC core. Most drivers where adjusted to
    this, but the wm8962 driver still uses its own register cache for its
    private functions, while functions from the ASoC core use the generic cache.
    Thus we end up with two from each other incoherent caches, which can lead to
    undefined behaviour.
    This patch fixes the issue by changing the wm8962 driver to use the
    generic register cache in its private functions.

    Signed-off-by: Lars-Peter Clausen <lars <at> metafoo.de>
    Signed-off-by: Mark Brown <broonie <at> opensource.wolfsonmicro.com>
    Cc: stable <at> kernel.org (for 2.6.37 only)
---
 sound/soc/codecs/wm8962.c |   45 ++++++++++++++++++++-------------------------
 1 files changed, 20 insertions(+), 25 deletions(-)

diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c
index 1304ca9..7c421cc 100644
--- a/sound/soc/codecs/wm8962.c
+++ b/sound/soc/codecs/wm8962.c
(Continue reading)

Linux Kernel Mailing List | 2 Jan 20:59 2011

ASoC: codecs: max98088: Fix register cache incoherency

Gitweb:     http://git.kernel.org/linus/d24eb0db9c8a7ceecae860bdc636ed1e8a86943a
Commit:     d24eb0db9c8a7ceecae860bdc636ed1e8a86943a
Parent:     7f984b55acb6530bf854bfcac13104228f3336c1
Author:     Lars-Peter Clausen <lars <at> metafoo.de>
AuthorDate: Tue Dec 28 21:37:56 2010 +0100
Committer:  Mark Brown <broonie <at> opensource.wolfsonmicro.com>
CommitDate: Tue Dec 28 23:19:06 2010 +0000

    ASoC: codecs: max98088: Fix register cache incoherency

    The multi-component patch(commit f0fba2ad1) moved the allocation of the
    register cache from the driver to the ASoC core. Most drivers where adjusted to
    this, but the max98088 driver still uses its own register cache for its
    private functions, while functions from the ASoC core use the generic cache.
    Thus we end up with two from each other incoherent caches, which can lead to
    undefined behaviour.
    This patch fixes the issue by changing the max98088 driver to use the
    generic register cache in its private functions.

    Signed-off-by: Lars-Peter Clausen <lars <at> metafoo.de>
    Cc: Peter Hsiang <Peter.Hsiang <at> maxim-ic.com>
    Signed-off-by: Mark Brown <broonie <at> opensource.wolfsonmicro.com>
    Cc: stable <at> kernel.org (for 2.6.37 only)
---
 sound/soc/codecs/max98088.c |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/sound/soc/codecs/max98088.c b/sound/soc/codecs/max98088.c
index d63e287..6447dbb 100644
--- a/sound/soc/codecs/max98088.c
(Continue reading)

Linux Kernel Mailing List | 2 Jan 20:59 2011

ASoC: codecs: wm8523: Fix register cache incoherency

Gitweb:     http://git.kernel.org/linus/beebca312009e9567d5e0229ea6b82bdf9a864cf
Commit:     beebca312009e9567d5e0229ea6b82bdf9a864cf
Parent:     d24eb0db9c8a7ceecae860bdc636ed1e8a86943a
Author:     Lars-Peter Clausen <lars <at> metafoo.de>
AuthorDate: Tue Dec 28 21:37:57 2010 +0100
Committer:  Mark Brown <broonie <at> opensource.wolfsonmicro.com>
CommitDate: Tue Dec 28 23:19:17 2010 +0000

    ASoC: codecs: wm8523: Fix register cache incoherency

    The multi-component patch(commit f0fba2ad1) moved the allocation of the
    register cache from the driver to the ASoC core. Most drivers where adjusted to
    this, but the wm8523 driver still uses its own register cache for its
    private functions, while functions from the ASoC core use the generic cache.
    Thus we end up with two from each other incoherent caches, which can lead to
    undefined behaviour.
    This patch fixes the issue by changing the wm8523 driver to use the
    generic register cache in its private functions.

    Signed-off-by: Lars-Peter Clausen <lars <at> metafoo.de>
    Cc: Ian Lartey <ian <at> opensource.wolfsonmicro.com>
    Cc: Dimitris Papastamos <dp <at> opensource.wolfsonmicro.com>
    Signed-off-by: Mark Brown <broonie <at> opensource.wolfsonmicro.com>
    Cc: stable <at> kernel.org (for 2.6.37 only)
---
 sound/soc/codecs/wm8523.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/sound/soc/codecs/wm8523.c b/sound/soc/codecs/wm8523.c
index 9a433a5..deca79e 100644
(Continue reading)

Linux Kernel Mailing List | 2 Jan 20:59 2011

ASoC: codecs: wm8955: Fix register cache incoherency

Gitweb:     http://git.kernel.org/linus/715920d04c787ed718327da53cf51689e51ef3ce
Commit:     715920d04c787ed718327da53cf51689e51ef3ce
Parent:     f578a188e8b21be623b48bb0eb3a92174c2e5b82
Author:     Lars-Peter Clausen <lars <at> metafoo.de>
AuthorDate: Tue Dec 28 21:38:00 2010 +0100
Committer:  Mark Brown <broonie <at> opensource.wolfsonmicro.com>
CommitDate: Tue Dec 28 23:20:00 2010 +0000

    ASoC: codecs: wm8955: Fix register cache incoherency

    The multi-component patch(commit f0fba2ad1) moved the allocation of the
    register cache from the driver to the ASoC core. Most drivers where adjusted to
    this, but the wm8955 driver still uses its own register cache for its
    private functions, while functions from the ASoC core use the generic cache.
    Thus we end up with two from each other incoherent caches, which can lead to
    undefined behaviour.
    This patch fixes the issue by changing the wm8955 driver to use the
    generic register cache in its private functions.

    Signed-off-by: Lars-Peter Clausen <lars <at> metafoo.de>
    Signed-off-by: Mark Brown <broonie <at> opensource.wolfsonmicro.com>
    Cc: stable <at> kernel.org (for 2.6.37 only)
---
 sound/soc/codecs/wm8955.c |   30 +++++++++++++++---------------
 1 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/sound/soc/codecs/wm8955.c b/sound/soc/codecs/wm8955.c
index a2ad91d..2ac35b0 100644
--- a/sound/soc/codecs/wm8955.c
+++ b/sound/soc/codecs/wm8955.c
(Continue reading)


Gmane