Received: by 10.192.165.148 with SMTP id m20csp3691837imm; Mon, 23 Apr 2018 10:39:07 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/e7C6bykJKiScXr0XRQPBsFWFJy/OfpJpQcb3Wxat0fyrm9ppvxm4EtGFYcohBwPHDjK5I X-Received: by 2002:a17:902:b48c:: with SMTP id y12-v6mr21271382plr.212.1524505147457; Mon, 23 Apr 2018 10:39:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524505147; cv=none; d=google.com; s=arc-20160816; b=wTZJfQ2XwGsMFIkUwFCQP6X04zJs5qSrwr49hFX2Do/95OjxAQeh5r7g6Su5b1VubP 42sn+ozuy036f2sy5KYz5qs1xqBTCHQfv/lc5EJe2jpEoyUxkKSjaiKC6vv+zTLwm5Gk 8cmzKrU19jCnFLSZndS4KuyaVwnznAkmMQu9pEbjppb7VluOd5IlXREQWtteSSRAGO1P ICw0IdaQYC+ugkm7G+sbh9RK1P2aqXHCspKe17oO67jG/Sea4cc+n4oqU5X+uICZge4F Ws9VJYBQOGq0Hs5NnJ8aT4KntOj1J1Ffwrv/jekjP4v5rUpYEfAG8r3fd/HKf7mzwg5I UMZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date :arc-authentication-results; bh=6lLQ5n8HxUf4RCT2kv/iSw8IcoUcwmLYXu8mXcdAQPU=; b=lX2+iEuaVp+xZnZhH+PnCZSAD2Qtl5ETY/2sHkk/imog21T0qTnbuTElbUHI060sqd lB90MKwbgSGBCO/MkFFnXKcwlEevzOeB3xzXYHCepDt6d+WJqJ7HZg+aAnfkMkGcuP5a nnTsWznYH6B6k3ZMeZIQyg9r7/+GZkKig9FF8JzrdoDNYnpF1CEmPR6zHXQF8jyoEA1v /lxIOiEk2B1P9Y3Q73CvQilVebqXSSOP0dk2oqP17PKv9CApEPeZWvrNay62U0mKwX10 ROAQKA3kd2517MCXB+HP+HVCGDhdNZFBBJC6ShxZjoEeX/20lpTZ9ivOkUSiysKI9Ewj Ejdw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q9-v6si11414268plr.70.2018.04.23.10.38.51; Mon, 23 Apr 2018 10:39:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932140AbeDWRhs (ORCPT + 99 others); Mon, 23 Apr 2018 13:37:48 -0400 Received: from gateway24.websitewelcome.com ([192.185.51.172]:40908 "EHLO gateway24.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932093AbeDWRhp (ORCPT ); Mon, 23 Apr 2018 13:37:45 -0400 Received: from cm14.websitewelcome.com (cm14.websitewelcome.com [100.42.49.7]) by gateway24.websitewelcome.com (Postfix) with ESMTP id 57C9963F0A for ; Mon, 23 Apr 2018 12:37:44 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id AfPMfmKjX5CKDAfPMfKZFn; Mon, 23 Apr 2018 12:37:44 -0500 X-Authority-Reason: nr=8 Received: from [189.145.48.65] (port=49540 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.89_1) (envelope-from ) id 1fAfPL-004LHh-Bz; Mon, 23 Apr 2018 12:37:43 -0500 Date: Mon, 23 Apr 2018 12:37:41 -0500 From: "Gustavo A. R. Silva" To: Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" , Dan Carpenter Cc: Laurent Pinchart , linux-renesas-soc@vger.kernel.org, Hans Verkuil , Ramesh Shanmugasundaram , Niklas =?iso-8859-1?Q?S=F6derlund?= , Jonathan Corbet , Kyungmin Park , Sylwester Nawrocki , Kukjin Kim , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 00/11] fix potential Spectre variant 1 issues Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 189.145.48.65 X-Source-L: No X-Exim-ID: 1fAfPL-004LHh-Bz X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.145.48.65]:49540 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 3 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset aims to fix various media platform and media usb cases where we have user controlled array dereferences that could be exploited due to the Spectre variant 1 vulnerability. All were reported by Dan Carpenter. Notice that given that speculation windows are large, the policy is to kill the speculation on the first load and not worry if it can be completed with a dependent load/store [1]. [1] https://marc.info/?l=linux-kernel&m=152449131114778&w=2 Thanks Gustavo A. R. Silva (11): media: tm6000: fix potential Spectre variant 1 exynos4-is: mipi-csis: fix potential Spectre variant 1 fsl-viu: fix potential Spectre variant 1 marvell-ccic: mcam-core: fix potential Spectre variant 1 omap_vout: fix potential Spectre variant 1 rcar-v4l2: fix potential Spectre variant 1 rcar_drif: fix potential Spectre variant 1 sh_vou: fix potential Spectre variant 1 vimc-debayer: fix potential Spectre variant 1 vivid-sdr-cap: fix potential Spectre variant 1 vsp1_rwpf: fix potential Spectre variant 1 drivers/media/platform/exynos4-is/mipi-csis.c | 5 ++++- drivers/media/platform/fsl-viu.c | 8 ++++---- drivers/media/platform/marvell-ccic/mcam-core.c | 3 +++ drivers/media/platform/omap/omap_vout.c | 3 +++ drivers/media/platform/rcar-vin/rcar-v4l2.c | 4 +++- drivers/media/platform/rcar_drif.c | 4 +++- drivers/media/platform/sh_vou.c | 3 +++ drivers/media/platform/vimc/vimc-debayer.c | 5 ++++- drivers/media/platform/vivid/vivid-sdr-cap.c | 6 ++++++ drivers/media/platform/vsp1/vsp1_rwpf.c | 3 +++ drivers/media/usb/tm6000/tm6000-video.c | 2 ++ 11 files changed, 38 insertions(+), 8 deletions(-) -- 2.7.4