Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3165229imm; Thu, 17 May 2018 04:35:32 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpPhkR+gFQtVQw7AxBM36cVxNq0ythuotN/hKXmSIEN+UjuH60cF2n8QaPMgZeXc7xqnH9w X-Received: by 2002:a62:cc08:: with SMTP id a8-v6mr4796298pfg.219.1526556932087; Thu, 17 May 2018 04:35:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526556932; cv=none; d=google.com; s=arc-20160816; b=WNBFlw7D3k0favNK5mSRP4mTYBt2Ey4/6Ogmn6Le1DjBY3Z0jI0eie/xJ1D5xMYTFv mnZmrKGpDKbMF7exypjuXFiXCgJ5/H9b6KwzclXyKL5JwCHmSRYh1W1ujO1zjtUj+U2A +5cWtELPUlmkd5KDs4r4Qzk1NZa5OjpSGuQFs3Il8GcQ+lYV0wQUi/PqLTQgBnIirHA7 ecmgacJxsxTdXH8Z0+h7JHDl/t6u2KU7eM7e4vLbMoTqHD2wbMLQXHKGo+VXxcsvQMSl y2mGNCgejAp3mOqeRVakZNHdtQUUnAiC/8Zs9Nu4pF9NhUaaTvMyHA5ILkR6oWcWF73Q oXvA== 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=XeZKm6tpgyQoM1mnBoMPyXKZExgv68bvnbBs6N8WLt0=; b=tWNehCWP91mSICIg/borCko1MnN09kbrGDdHAIRvOOtA7XM78IROkomPcyKvcYMWuQ NxR/G+O5xgdPo2ew4sEYJVS+BhYijgeq5t40bEi0eOppqk5W46BiNpenwGBD3eY/k2H6 RGJqed5XE6fDbsmb1+eepEMFcQvJsO5C1cZDkxCEetsPvSAXSaqN9xpuX1WBhrjhxFVR 9qreP6UrrE70O6YA7O8mkk/WEYjaQxdVcRpvOj0ZZzM4covtpvUiDh/3NlBK6cyz5o3r upbMVjlVW7Rzkur6xcE/36Rg+T9CxyGHT0JLTpR6D3OJHOSFe36ouSMJ3QXP5E0ZWO1Y 65JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=nF4883Oa; 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 f6-v6si4031410pgc.262.2018.05.17.04.35.17; Thu, 17 May 2018 04:35:32 -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=nF4883Oa; 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 S1751921AbeEQLeu (ORCPT + 99 others); Thu, 17 May 2018 07:34:50 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:44022 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751367AbeEQLes (ORCPT ); Thu, 17 May 2018 07:34:48 -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=XeZKm6tpgyQoM1mnBoMPyXKZExgv68bvnbBs6N8WLt0=; b=nF4883Oa6F7XZYtgtabpOxROB IVl8wY4jTUkgFFTE22zwc0zU5tupAHAJu1UiXV6JBh3wlEHMBByjiawj6djyEYwfyUWpftUhxU0BP SC9IOSEXKs1mRKK+mL7jdpDIdIjVCFxwnFMGiF+ifXzBJJRRkOPKsNJY/iKnH/8+HTgkrjZlncdNz gjx4Hzs/HU3wN/iLNSbzj4crOaywQdfZ3ZqdlS9F1KgT4rTUspS6TBt0+zfSMc6TICV/AeUIhyD/Y bVNrSOxFuroQHJ+71eZpqHELW8GCcgLRzepKoZgd4BnXEhDVSvyAEua4vGw32P38J/pTfKgp2umf6 MHvCebv/w==; Received: from [191.33.157.70] (helo=vento.lan) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fJHBE-00032c-IB; Thu, 17 May 2018 11:34:44 +0000 Date: Thu, 17 May 2018 08:34:40 -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: <20180517083440.14e6b975@vento.lan> In-Reply-To: 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> 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 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. > >> > > > > 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