Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1347274

[PATCH 4.4 225/342] drm/i915/dsi: dont pass arbitrary data to sideband

Path csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Newsgroups linux.kernel
Subject [PATCH 4.4 225/342] drm/i915/dsi: dont pass arbitrary data to sideband
Date Wed, 02 Mar 2016 01:30:05 +0100
Message-ID <r82PX-8co-87@gated-at.bofh.it> (permalink)
References <r82mS-7Ml-9@gated-at.bofh.it>
X-Original-To <linux-kernel@vger.kernel.org>
Dkim-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; s=mandrill; d=linuxfoundation.org; h=From:Subject:To:Cc:Message-Id:In-Reply-To:References:Date:MIME-Version:Content-Type:Content-Transfer-Encoding; i=gregkh@linuxfoundation.org; bh=MYNym7WaKSyUqVYw0n2hIUK2+Gw=; b=fQbef8m4UyW3kb5ObGj2SGtU/S7+J5Ajbw1ehKQPQCTUuBfO6z+0CMYf67tFvIBcnp/qSHgqwy6B no/2ft0ZnXwilZ9y0qAOGqtEuiSGlWyySUdYUTeyccrsTc1MHEOcAdpWbLwfTUzihF2bbah1oq37 KmtGD2NrMdmpb3q5/no=
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; i=@mandrillapp.com; q=dns/txt; s=mandrill; t=1456876508; h=From : Subject : To : Cc : Message-Id : In-Reply-To : References : Date : MIME-Version : Content-Type : Content-Transfer-Encoding : From : Subject : Date : X-Mandrill-User : List-Unsubscribe; bh=sNhigNob5Y3VNMmhWDhDYu4Iy4P311XzFRav4tz6o0w=; b=MCpxEPEmg0lFkH9Lz7haRsPEzQ+SUGEHXgeZZXwKiBd83FodkT1ncEOGLHGYMLd64NDC82 onl/crN13PjXlCNQUUNcauiQNSFiZ74DGSyLNLQpls2Qt+neWXUvHY72H8q+OQ8iUhCxYCww jZh8Fk8SLe70MWx1K7nCK5LrLzgpg=
X-Mailer git-send-email 2.7.2
X-Report-Abuse Please forward a copy of this message, including all headers, to abuse@mandrill.com
X-Report-Abuse You can also report abuse here: http://mandrillapp.com/contact/abuse?id=30481620.574af88ab1d640598569c6a959a80502
X-Mandrill-User md_30481620
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8BIT
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 36
Organization linux.* mail to news gateway
X-Original-Cc Greg Kroah-Hartman <gregkh@linuxfoundation.org>, <stable@vger.kernel.org>, Ville Syrjälä <ville.syrjala@linux.intel.com>, Jani Nikula <jani.nikula@intel.com>
X-Original-Date Tue, 01 Mar 2016 23:55:08 +0000
X-Original-Message-ID <20160301234535.203552344@linuxfoundation.org>
X-Original-References <20160301234527.990448862@linuxfoundation.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1347274

Show key headers only | View raw


4.4-stable review patch.  If anyone has any objections, please let me know.

------------------

From: Jani Nikula <jani.nikula@intel.com>

commit 26f6f2d301c1fb46acb1138ee155125815239b0d upstream.

Since sequence block v2 the second byte contains flags other than just
pull up/down. Don't pass arbitrary data to the sideband interface.

The rest may or may not work for sequence block v2, but there should be
no harm done.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/ebe3c2eee623afc4b3a134533b01f8d591d13f32.1454582914.git.jani.nikula@intel.com
(cherry picked from commit 4e1c63e3761b84ec7d87c75b58bbc8bcf18e98ee)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 drivers/gpu/drm/i915/intel_dsi_panel_vbt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/gpu/drm/i915/intel_dsi_panel_vbt.c
+++ b/drivers/gpu/drm/i915/intel_dsi_panel_vbt.c
@@ -207,7 +207,7 @@ static const u8 *mipi_exec_gpio(struct i
 	gpio = *data++;
 
 	/* pull up/down */
-	action = *data++;
+	action = *data++ & 1;
 
 	if (gpio >= ARRAY_SIZE(gtable)) {
 		DRM_DEBUG_KMS("unknown gpio %u\n", gpio);

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH 4.4 225/342] drm/i915/dsi: dont pass arbitrary data to sideband Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2016-03-02 01:30 +0100

csiph-web