Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3173829imm; Thu, 17 May 2018 04:45:04 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrXLJZoD7DCD3zeFzgQimW8kfyX0ZQA2H4Talmvqe/SLcwWJpwpoq250TslvsliIoUcYpX7 X-Received: by 2002:a63:6110:: with SMTP id v16-v6mr3840059pgb.292.1526557504215; Thu, 17 May 2018 04:45:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526557504; cv=none; d=google.com; s=arc-20160816; b=WDNtFUz9FpQc7vN527006ufux1BbBTyCTt/Yjuf07/cZYyhXwosBoVvTbCHKG7Awm4 2g9dRVT7P1jXq8oJrJF392r1OiDZjbEPsWglsaJYLYsBQV9oKTkZKGrSHjCtqLQbGmPY w8bWgJDT80y4VklDXPKnHGO0Eo8ynhQ3ucQn1vKo6ViNYZK+Y74umLqfxf63Bz3LyHly 80inLm75LEee+VM1zsmJDaG3Y1nTUeW+IK15tW0jJOpj/U2XywuAFfIYrdgK2EPQo8DI BH6PAeis4A4x9cjab/oSCwdDUMcqa0hIjxw4ePcCVhLjzuynyOt2fDB0co8z+YP+ILGl sknA== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=kzHLXbBo0+gIKmV9csRRM0A8j5Qp35xcAYnqTAZAhkY=; b=A+xEo6IIcGK8XD/p8MrIvbRVMYTbYda9SMT+6oBSKYuUwnfY6OMoVvLAoSYAKq6EcH BaGcafhjPgr5Uy0Kv0fzLoeAQNGBVMtPVKhw4MSVbV0voqtlm/yJZjA2L78NPDRFbdQu /vNV+OQY99GCXWvhEhT2bkUOJU0qgH761oxwFxbaXIPLU+noLjIcHb8yowMsXH2LrrN9 NsXTQizoHAjH4/12pw7Xsvie4sUDCGmgNRKVZ0a1p0zwr3HPz/O2mRbE6RtlP4QMBDre jOFLX0jcXwQ4h8ugiicGXydYNK9jgBH9+AjxIwmPGnMAEswQW6ccWr2FqaBxojB0KigJ Ad3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=lB9AiOAX; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u89-v6si5115336pfa.234.2018.05.17.04.44.49; Thu, 17 May 2018 04:45:04 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=lB9AiOAX; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751868AbeEQLnc (ORCPT + 99 others); Thu, 17 May 2018 07:43:32 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:49012 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751274AbeEQLna (ORCPT ); Thu, 17 May 2018 07:43:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To: From:Date:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=kzHLXbBo0+gIKmV9csRRM0A8j5Qp35xcAYnqTAZAhkY=; b=lB9AiOAX32r0gNgF8mpqG1OkB VSMallggNdTBnXfbLEOymlfEXATkCvsiqH0G0WQswdy6b7dkImShvzqDq/kg8MvFzFJ6hOuA3OcUV eNt5x0dxye5talGgavwxmqjg+ABknMnNkfEU/i1iKwGpIX9Q/omSrB33P4RMTAVgXYuamFqexAXF1 kS2cwqiTNK2Ad91nh5ep2xfNXBBac2TrwmRtIR1KL7GVnAT7g2QAdrJVXjhR7Xa84457gctRP+4+U es/4kgjZxRaZ8SpZx54kTGdfbHT8oH4253aT9m3rt5+7QfdwJgX65WEF2s6okSkAp+Vb8mDRo4MgY dcFfklHcw==; Received: from [191.33.157.70] (helo=vento.lan) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fJHJf-0007P4-UV; Thu, 17 May 2018 11:43:28 +0000 Date: Thu, 17 May 2018 08:43:24 -0300 From: Mauro Carvalho Chehab To: "Gustavo A. R. Silva" Cc: Dan Carpenter , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 01/11] media: tm6000: fix potential Spectre variant 1 Message-ID: <20180517084324.3242c257@vento.lan> In-Reply-To: <20180517083440.14e6b975@vento.lan> 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> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, 17 May 2018 08:34:40 -0300 Mauro Carvalho Chehab escreveu: > Em Thu, 17 May 2018 05:36:03 -0500 > "Gustavo A. R. Silva" escreveu: > > > > > > > On 05/16/2018 08:14 PM, Gustavo A. R. Silva wrote: > > > > > > > > > On 05/15/2018 02:39 PM, Dan Carpenter wrote: > > > >> You'd need to rebuild the db (possibly twice but definitely once). > > How? Here, I just pull from your git tree and do a "make". At most, > make clean; make. Never mind. Found it using grep. I'm running this: make allyesconfig /devel/smatch/smatch_scripts/build_kernel_data.sh /devel/smatch/smatch_scripts/build_kernel_data.sh > > > >> > > > > > > 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. > > > > > > > Interesting, I've rebuild the db twice and now I get a total of 75 > > Spectre warnings in drivers/media > > That makes more sense to me, as the same pattern is used by almost all > VIDIOC_ENUM_foo ioctls. > > Thanks, > Mauro Thanks, Mauro