Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2698179imm; Wed, 16 May 2018 18:15:56 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpwB6NlhKDCyZxofUtMKv6CPIlF8nifb+W96IPcoVQWtuQpnEMXFvkhDrQq7g7Ax9cKE4NZ X-Received: by 2002:a17:902:bb0b:: with SMTP id l11-v6mr3218094pls.190.1526519756774; Wed, 16 May 2018 18:15:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526519756; cv=none; d=google.com; s=arc-20160816; b=fRFXBjglJ/LvsSS1z0UoLN3pg4yLRrXnKVZB3YQM5Z3oAOraryrBoYwoCDbtJQ4r2n eKfzsEeyOPnpEysuMd+lYdIRHVNFg3lTl4KXTzuYKZrSJrghuc1N5EPphWRUDAiE+Uwd mt1pAen/kkX65Jx1BoXrKSyGZ8oeSSibWs4IeFfUcFFERyAAFoBo6huc8OxfCvktGGZ5 OC86Sskb1d6UuMak2lNf0DZlt2qQEH2LS6PgXwJY6W+fmbSuPgfoiE15zG9bt38oxltK GCCGnKkz3ZagBglHy8Qlis2WxYZamF4+yuiaeSArum2Jy2NbN0dYxPV0tYV4tlX50REI ++xA== 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:from:references:cc:to:subject:arc-authentication-results; bh=NbNKSgZNekKN0ZV+Fj0X+QrL8c6D3i9c9rA7Cj6xJ4k=; b=Ir7gybGVZY/Lwd/ZG+dbxEEllg0Hcj9HupanFUkVPlv5W4q3/73gJiZjhi5LURw+Ba EVDCXKklqeN4TVJ0mjUwRgpFJC21XpYWUQysUrzFD0zB+BHO1FWHETu6Upsimj+o25fi Ok3IH4l3/StPSiONb8pnpUBr+Mf8Wt5ILoVZOCEQYZtt61zuahPEb2ptyJfiWiTksrnM vCHwxVJCdG8xq714ylvVpO/8UzWXwa1DDqLOc42oR0Xnr4/wcaQEewaqBn/piLyl3eB4 tY8mhLNw684nJNJwGF772UY2eKT478qYqLqoVyKgfiTI420mWALQgkKR1YMddM13bqag BbAg== 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 g3-v6si3727337pld.309.2018.05.16.18.15.42; Wed, 16 May 2018 18:15:56 -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 S1752162AbeEQBOV (ORCPT + 99 others); Wed, 16 May 2018 21:14:21 -0400 Received: from gateway31.websitewelcome.com ([192.185.143.234]:20596 "EHLO gateway31.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752014AbeEQBOT (ORCPT ); Wed, 16 May 2018 21:14:19 -0400 Received: from cm14.websitewelcome.com (cm14.websitewelcome.com [100.42.49.7]) by gateway31.websitewelcome.com (Postfix) with ESMTP id CC75AF40E for ; Wed, 16 May 2018 20:14:18 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id J7UofgAeU5CKDJ7UofAGA1; Wed, 16 May 2018 20:14:18 -0500 X-Authority-Reason: nr=8 Received: from [187.172.56.86] (port=34798 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 1fJ7Uo-0036Yi-E5; Wed, 16 May 2018 20:14:18 -0500 Subject: Re: [PATCH 01/11] media: tm6000: fix potential Spectre variant 1 To: Dan Carpenter Cc: Mauro Carvalho Chehab , 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> From: "Gustavo A. R. Silva" Message-ID: <0f31a60b-911d-0140-3546-98317e2a0557@embeddedor.com> Date: Wed, 16 May 2018 20:14:12 -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: <20180515193936.m25kzyeknsk2bo2c@mwanda> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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.172.56.86 X-Source-L: No X-Exim-ID: 1fJ7Uo-0036Yi-E5 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.1.70]) [187.172.56.86]:34798 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/15/2018 02:39 PM, Dan Carpenter wrote: >> Dan, >> >> These are all the Spectre media issues I see smatch is reporting in >> linux-next-20180515: >> >> drivers/media/cec/cec-pin-error-inj.c:170 cec_pin_error_inj_parse_line() >> warn: potential spectre issue 'pin->error_inj_args' >> drivers/media/dvb-core/dvb_ca_en50221.c:1479 dvb_ca_en50221_io_write() warn: >> potential spectre issue 'ca->slot_info' (local cap) >> drivers/media/dvb-core/dvb_net.c:252 handle_one_ule_extension() warn: >> potential spectre issue 'p->ule_next_hdr' >> >> I pulled the latest changes from the smatch repository and compiled it. >> >> I'm running smatch v0.5.0-4459-g2f66d40 now. Is this the latest version? >> >> I wonder if there is anything I might be missing. >> > > You'd need to rebuild the db (possibly twice but definitely once). > Hi Dan, After rebuilding the db (once), these are all the Spectre media warnings I get: drivers/media/pci/ddbridge/ddbridge-core.c:233 ddb_redirect() warn: potential spectre issue 'ddbs' drivers/media/pci/ddbridge/ddbridge-core.c:243 ddb_redirect() warn: potential spectre issue 'pdev->port' drivers/media/pci/ddbridge/ddbridge-core.c:252 ddb_redirect() warn: potential spectre issue 'idev->input' drivers/media/dvb-core/dvb_ca_en50221.c:1400 dvb_ca_en50221_io_do_ioctl() warn: potential spectre issue 'ca->slot_info' (local cap) drivers/media/dvb-core/dvb_ca_en50221.c:1479 dvb_ca_en50221_io_write() warn: potential spectre issue 'ca->slot_info' (local cap) drivers/media/dvb-core/dvb_net.c:252 handle_one_ule_extension() warn: potential spectre issue 'p->ule_next_hdr' drivers/media/dvb-core/dvb_net.c:1483 dvb_net_do_ioctl() warn: potential spectre issue 'dvbnet->device' (local cap) drivers/media/cec/cec-pin-error-inj.c:170 cec_pin_error_inj_parse_line() warn: potential spectre issue 'pin->error_inj_args' I just want to double check if you are getting the same output. In case you are getting the same, then what Mauro commented about these issues: https://patchwork.linuxtv.org/project/linux-media/list/?submitter=7277 being resolved by commit 3ad3b7a2ebaefae37a7eafed0779324987ca5e56 seems to be correct. Thanks -- Gustavo