Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1026255imm; Tue, 15 May 2018 12:40:51 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp+vdlTyOJsqxcrbvvqNyPrOstv5+TNWYY75bOfXJRqLTQFEOCbO/Ncw+C4Xw+cLAA+W1OP X-Received: by 2002:a62:f909:: with SMTP id o9-v6mr16505139pfh.256.1526413251139; Tue, 15 May 2018 12:40:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526413251; cv=none; d=google.com; s=arc-20160816; b=NpsGqzrjcYN2L6InRM7ma4xJ/e/Zf4q9wGNsMqHYPNYbTJCTxVNwPhOPYwe1FYGItc EUJ320dztWBo5I44PkWp2fHSRBUp8PrkBpZtrM1pd4advFTzN88malUsO+VeN1NkKkuK dDQyBhzRiBbxeGyFkuEces+yjj6rF38HzpbJ/2BYHG9HerMHid42tNrVgc4f2bb8tYnY 1smaEYAOHlxf3fpHnnMiaDgFfmZzhbxLyKSN7ylS2MwDSBrlN0xkTfSs/sJgpLp3lU8x l2T9TcVLmJDRQtQgXl6N3UOOqC1lnFcJ094NI6/5ytYr9dXqYSClmrdasoS9d2eE3PI3 z1IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=QSHPhhl3K3mK+IjtqdQveK/rwt5DFZpaGHdADigMW7g=; b=vu+Si1WCXxOGhXST4xr2wzbjNn/3d0MQDsZAab9DjbAS8+8Ghs5WGNGtW3Ajgf5Pck CpLmCjM/zr9st4gYiFgZChP3hc1zAYvbKSROvO4HGR9RdzCn34Pa04iOzBUQXIxprVal nRV5Jvb5ywMJLj2QZS+nKs/Imz9GEll4UGb7dVFi4jmUX2QydqJq9BkvvVN1d55GqvRB pNmtY6ZgFhWugIGoOk4W2KjoGdAoyt4q6cSotyX7VtO3g/VDRkFSiJHxwihE3rDOL4Km jPnNmzwV0ORPajrDEHDsFxBuT0Y2UOWiFXVnA8YJvSuxbiSU8jd0VWu6N57hg/QwOMpo LXuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=vX4DY8vC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j10-v6si598707pgq.249.2018.05.15.12.40.35; Tue, 15 May 2018 12:40:51 -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=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=vX4DY8vC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752119AbeEOTkA (ORCPT + 99 others); Tue, 15 May 2018 15:40:00 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:48330 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751847AbeEOTj7 (ORCPT ); Tue, 15 May 2018 15:39:59 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w4FJb91K044695; Tue, 15 May 2018 19:39:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2017-10-26; bh=QSHPhhl3K3mK+IjtqdQveK/rwt5DFZpaGHdADigMW7g=; b=vX4DY8vC/PRxvp3OhkkoVDsA5r+xr2j24YO7zkaCNFmBS64lsXTdz9mdNBPMT81z77Pe udkMOoHkeWcMt3M55LyRDqYAhDIgz9ZSQof1Ky920Q2hIYxKgxITB+ZOcMyW5OMVcDoE 4EbTdJnRsKQ6omSo4oUEdch/pUowkBZiPbl/g1C25HiORdB6yQFoy2armVCp09pphI2W ahpz6o+kVpMy1/zTUGuj0CAJX2jzYrydSc1w/XXBislyoGBXIkgDS5kqma0wOcYVkrCn vfW46x4W/l4Fxuvy+hNGXPhb1b8FFKyk4EN4zFXvq5Go7jdHPjpPqAZNEzYbklv2KSay Bg== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2130.oracle.com with ESMTP id 2hx29w9xce-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 15 May 2018 19:39:45 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w4FJdiZp017975 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 15 May 2018 19:39:44 GMT Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w4FJdhxh027828; Tue, 15 May 2018 19:39:43 GMT Received: from mwanda (/197.254.35.146) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 15 May 2018 12:39:43 -0700 Date: Tue, 15 May 2018 22:39:36 +0300 From: Dan Carpenter To: "Gustavo A. R. Silva" Cc: Mauro Carvalho Chehab , 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: <20180515193936.m25kzyeknsk2bo2c@mwanda> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8894 signatures=668698 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=951 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1805150191 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 15, 2018 at 12:29:10PM -0500, Gustavo A. R. Silva wrote: > > > On 05/15/2018 09:16 AM, Dan Carpenter wrote: > > > > > > > > I'm curious about how you finally resolved to handle these issues. > > > > > > > > I noticed Smatch is no longer reporting them. > > > > > > There was no direct fix for it, but maybe this patch has something > > > to do with the smatch error report cleanup: > > > > > > commit 3ad3b7a2ebaefae37a7eafed0779324987ca5e56 > > > Author: Sami Tolvanen > > > Date: Tue May 8 13:56:12 2018 -0400 > > > > > > media: v4l2-ioctl: replace IOCTL_INFO_STD with stub functions > > > This change removes IOCTL_INFO_STD and adds stub functions where > > > needed using the DEFINE_V4L_STUB_FUNC macro. This fixes indirect call > > > mismatches with Control-Flow Integrity, caused by calling standard > > > ioctls using a function pointer that doesn't match the function type. > > > Signed-off-by: Sami Tolvanen > > > Signed-off-by: Hans Verkuil > > > Signed-off-by: Mauro Carvalho Chehab > > > > > Thanks, Mauro. > > > > > Possibly... There was an ancient bug in Smatch's function pointer > > handling. I just pushed a fix for it now so the warning is there on > > linux-next. > > > > 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). regards, dan carpenter