Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp658100imm; Tue, 15 May 2018 07:18:22 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpHOJLCl2pqE3eVYnzlRpyVR/xZ8WYG7ws0P7YP59ruRqVh84RzroX4C34b8I8qsLmRloLO X-Received: by 2002:a63:7804:: with SMTP id t4-v6mr5811306pgc.323.1526393902854; Tue, 15 May 2018 07:18:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526393902; cv=none; d=google.com; s=arc-20160816; b=rbVhGy2DGkLF0eMHKoMHo8TBJopkf7ttPe0zEHFtNIyb/fGe1tkl36+0yUHW+Dc4vr 62aTL9tjdQp9d9PPpyoUTrawvskQOoYRQ657MSks5zpUpSba+XO5wHIP9VpUcAI+qGTO CplEwTyQNx6vh8XvQljRcOxG3Nj3MflK/N9hlotXrRAZO/EyN+URsZINExy/495v3JLK nhq21bDB22TwY1kYvzcYXioGyv5QTjJ1sXmkgPTRfr1Pb1AjFhR+ce4AwIBX4eAAOls3 r3p4OcWm3z2a/6SCMgV/sJ9ecPkumFsQZOKBMrvdcTTSlE8TG3og6qHd96KtXWf8gRZd yjhQ== 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=9KrH5/F44wYUQXhsldnhj2c/geyCY5YEmztMflgtyEg=; b=h43dpfMVvHhnptBR4rRsnQl/96D8W73cnHmzW0Nslrm5OicJwxR3Nkd8OY4tN+X54e aXqtSmzzkImEEpjv5WhS12u60pto7utXM4TmyYaLSnmcIqnNLtS00ezz16hJiNC0ERUO E93wuTbMj7O0jLCo3Clq9ROpr9zTb0K9m1eJR2DwjSz0C6ktenH/IIxwZJurNb+9da/U 1BPp/cLZRPaWzq0rXe0uwAr/yfkxT+tDoL7Afz6IrSYXH5M0WZkGP7JoUVcCg3hzeHQK EsyRGlx4UMBUf4qJZuiUB9/DTjc3lwlVVv+MlCiWfFuyDoNVaC+IQidhUYEBUQCRJ3O0 00UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=fjiqdEV+; 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 n20-v6si127038pff.370.2018.05.15.07.17.45; Tue, 15 May 2018 07:18:22 -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=fjiqdEV+; 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 S1753606AbeEOORY (ORCPT + 99 others); Tue, 15 May 2018 10:17:24 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:52678 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753534AbeEOORT (ORCPT ); Tue, 15 May 2018 10:17:19 -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 w4FEBdUG192430; Tue, 15 May 2018 14:17:04 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=9KrH5/F44wYUQXhsldnhj2c/geyCY5YEmztMflgtyEg=; b=fjiqdEV+/A+m/8STaBebYse97nDMh16FKXL9Bj7gp5TaRSwaZ/w6Uw+T48HhlQqEkte6 11p/ufulfV/ouIu9tWC4c6JBopIpY2bJb6r5pXjaNMShKotb1Pyyd1wHbr0/EV2ib5M3 mPLuDjLw9WcgKOJA7d1aC/JC1qZCo7GAsIMLtAese1PxIl5/b/gevXwpqLzYCzMQPs8X GtLQ2Z31d8H2F/omkSGL35Sc28u4bvZ7LhdbA4mwD9lxAHJziRSNtDqlHxWAIFs5jfkN AE/zUqVOlXxwTsUOq20NBcjQvdII+nrgx8VOCwgMyin2LLD1ucwg0W40igZHPFgReq17 Gg== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2130.oracle.com with ESMTP id 2hx29w8jrs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 15 May 2018 14:17:04 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w4FEH3dL021946 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 15 May 2018 14:17:03 GMT Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w4FEH2ov028576; Tue, 15 May 2018 14:17:02 GMT Received: from mwanda (/197.254.35.146) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 15 May 2018 07:17:02 -0700 Date: Tue, 15 May 2018 17:16:55 +0300 From: Dan Carpenter To: Mauro Carvalho Chehab Cc: "Gustavo A. R. Silva" , 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: <20180515141655.idzuh2jfdkuu5grs@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180515085953.65bfa107@vento.lan> User-Agent: NeoMutt/20170609 (1.8.3) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8893 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=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1805150145 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 08:59:53AM -0300, Mauro Carvalho Chehab wrote: > Em Mon, 14 May 2018 22:31:37 -0500 > "Gustavo A. R. Silva" escreveu: > > > Hi Mauro, > > > > On 04/26/2018 06:42 PM, Mauro Carvalho Chehab wrote: > > > > >> > > >> I noticed you changed the status of this series from rejected to new. > > > > > > Yes. > > > > > >> Also, there are other similar issues in media/pci/ > > > > > > Well, the issues will be there everywhere on all media drivers. > > > > > > I marked your patches because I need to study it carefully, after > > > Peter's explanations. My plan is to do it next week. Still not > > > sure if the approach you took is the best one or not. > > > > > > As I said, one possibility is to change the way v4l2-core handles > > > VIDIOC_ENUM_foo ioctls, but that would be make harder to -stable > > > backports. > > > > > > I need a weekend to sleep on it. > > > > > > > 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 > 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. regards, dan carpenter