Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp496066imm; Mon, 21 May 2018 09:19:33 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr8Uw+SlrMLl4hV4VUbLKUBjKaSqRS019DvIZggxrEwCqkTtD0lSh7hP5NyLBekIT/krcx8 X-Received: by 2002:a17:902:7b83:: with SMTP id w3-v6mr21422321pll.12.1526919573194; Mon, 21 May 2018 09:19:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526919573; cv=none; d=google.com; s=arc-20160816; b=ZZJXYFdIzvc6XNsU9ayyTmKzEvw/Q7uM3vhDrsdZDxLUd/Hdx6YSZlxrTREwtvRd3R Rtul9uldWWNxCA2hgtYnu/LPqvOgiTLagni9CjmmQkoC21TL8zRJ7iaVlvUgItAQy/aa ubxgpwBwN70bG4Qeoh8w+J9kaPdTVb7dGncBRPiVZo4r8q0+MZeh3T1jBIjVdYbUefE8 PCyJgks0XniZz5AAQXR+EyM5yX8/SHvdG+/H3JyFD0N1/ZrvajX2LX4lmt+6oDIk6Jza JHiJ0huEM2dXpSNB3ipW3nUEah5rJjEoZ2gQqVTaOGz5ndvs+u/m5aGa/nSPFNBiyG4r BUrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:arc-authentication-results; bh=DTjdRvJt4qWQF6oPMICBVIsc5ds0YW8VrNyhlZd09zA=; b=MCSqXrU7xQoUaXc8tcAsl9ut5npCkIo1S0dzZ+nBOJiKp98VuZZyZ4xAJdGvIg/+wu lYJUffAh2fQX3N+7/IRtbfTjxWMidS//IfiSEo++qZvwXljdKemlTgrTnskH8SJFWlkb xhK4xR0yByOzhbfB/eNoqYRy+SWCJhQKIgKe07qCQX/WLDJTCh5AKod+/kXx0ZfGEU1s VXCgrJ+PncXaUf8eh3B4k4T2bkjrDSQ2+I5Ap3SLujCljbVkYuKx9qq9/01lMO/m8ei6 ofrtzHRlzT88VAUYmnGU75PNSHB3rIRpyDzCewuTg1lzmf3mgwOMUxz3S8pdtWotsCF+ DpMQ== 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 n7-v6si11548175pgt.200.2018.05.21.09.19.17; Mon, 21 May 2018 09:19:33 -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 S1752928AbeEUQS7 (ORCPT + 99 others); Mon, 21 May 2018 12:18:59 -0400 Received: from gateway33.websitewelcome.com ([192.185.145.239]:29101 "EHLO gateway33.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752698AbeEUQSz (ORCPT ); Mon, 21 May 2018 12:18:55 -0400 Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway33.websitewelcome.com (Postfix) with ESMTP id 43A19BA78D for ; Mon, 21 May 2018 11:18:54 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id KnWQfwKfoQUwqKnWQfca87; Mon, 21 May 2018 11:18:54 -0500 X-Authority-Reason: nr=8 Received: from [187.192.46.223] (port=43416 helo=[192.168.1.70]) by gator4166.hostgator.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1fKnWP-003yuN-Rc; Mon, 21 May 2018 11:18:53 -0500 Subject: Re: [PATCH 01/11] media: tm6000: fix potential Spectre variant 1 From: "Gustavo A. R. Silva" To: Mauro Carvalho Chehab Cc: Dan Carpenter , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org References: <3d4973141e218fb516422d3d831742d55aaa5c04.1524499368.git.gustavo@embeddedor.com> <20180423152455.363d285c@vento.lan> <3ab9c4c9-0656-a08e-740e-394e2e509ae9@embeddedor.com> <20180423161742.66f939ba@vento.lan> <99e158c0-1273-2500-da9e-b5ab31cba889@embeddedor.com> <20180426204241.03a42996@vento.lan> <20180515085953.65bfa107@vento.lan> <20180515141655.idzuh2jfdkuu5grs@mwanda> <20180515193936.m25kzyeknsk2bo2c@mwanda> <0f31a60b-911d-0140-3546-98317e2a0557@embeddedor.com> <20180517083440.14e6b975@vento.lan> <20180517084324.3242c257@vento.lan> <20180517091340.7d8c62b2@vento.lan> <5921004a-a7d3-59c9-2ef4-b6a490390d3f@embeddedor.com> Message-ID: Date: Mon, 21 May 2018 11:18:52 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <5921004a-a7d3-59c9-2ef4-b6a490390d3f@embeddedor.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit 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: 187.192.46.223 X-Source-L: No X-Exim-ID: 1fKnWP-003yuN-Rc X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.1.70]) [187.192.46.223]:43416 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 5 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 On 05/17/2018 01:08 PM, Gustavo A. R. Silva wrote: > > BTW, Mauro, you sent a patch to fix an spectre v1 issue in this file > yesterday: dvb_ca_en50221.c:1480, but it seems there is another instance > of the same issue some lines above: > > diff --git a/drivers/media/dvb-core/dvb_ca_en50221.c > b/drivers/media/dvb-core/dvb_ca_en50221.c > index 1310526..7edd9db 100644 > --- a/drivers/media/dvb-core/dvb_ca_en50221.c > +++ b/drivers/media/dvb-core/dvb_ca_en50221.c > @@ -1398,6 +1398,7 @@ static int dvb_ca_en50221_io_do_ioctl(struct file > *file, > >                 info->type = CA_CI_LINK; >                 info->flags = 0; > +               slot = array_index_nospec(slot, ca->slot_count + 1); >                 sl = &ca->slot_info[slot]; >                 if ((sl->slot_state != DVB_CA_SLOTSTATE_NONE) && >                     (sl->slot_state != DVB_CA_SLOTSTATE_INVALID)) { > > Hi Mauro, Just to let you know, I was running smatch during the weekend and the tool is still reporting all these Spectre media warnings (and a lot more): https://patchwork.linuxtv.org/project/linux-media/list/?submitter=7277 Thanks -- Gustavo