Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp497413imm; Tue, 15 May 2018 05:00:36 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpsqzBgV4Etp6G/efb7UAuI83KffUwDoP2RMqQsLGT2VXvivFi7D0B4SMUyyMFMhz1xMGDx X-Received: by 2002:a17:902:7b86:: with SMTP id w6-v6mr14643879pll.183.1526385635998; Tue, 15 May 2018 05:00:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526385635; cv=none; d=google.com; s=arc-20160816; b=RSzMVBGOvJvbbDwP7Dm06OWqkOn2+bHfm21Z14KjOWZi2z60FoVCQgonJQcsC9V7tf I/EY5UoFseKFb08jn3Q9lOThN06YUFD6MMKMIREjcBiBdizIPAnfS1V43/KI1NmKbOYO e+A5J999/DqxJtM8Sj8ZgGgpx6pel8rDeS2r4fqz5u5YtptPK8C8bZ/HuE26TT+/hCpd mQ6NmhULNGnLatSTbOCaEkLPrGRYKOSXLPMvb+7CKjFc79xPI4K7Jn3zuBOjGu3DP7r8 Fp5aBufvMimGpZsnpM+FWkaxDZBfyF5MtmBzZOGZctL85DnGAfAPwgKoSOIalkwGAL1S R6BQ== 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=ILJ/ulfZD7JAhsarzFSws0tmOkQ3jQGJ6hgT6jNHSrs=; b=JEY8M+UweXZMdqau3iZBrPQTmG8IyHyx5LV27wcY5bbjO7OktKQ4Rc4uWu4g01nqfF LsCW874VuOY6ufmf/mG/OrqAo4djfpczwwXSlgeu5Ooa/FQdnwZLHn5ACp11F7UMmzdl JqL3+PZaC2klLgke0udGKrdt0UFbF0TSXWItg2pov4vIIbHCyCgXIskqYicgk3+oW6lQ MXJWBEExIZSJ1um4EX2ZPq7qL3UGgY3mj1KKlERO/RbHqN+foi/bazblSX1qaRS/Wdbe P/s48RdIIveNKGKd9hymMUDEtMP60wDsstW6UESlHKRuV/snigaA6NVXZAVQifPoZth+ P9Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Ob1SxgPk; 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 p16-v6si9258011pgc.427.2018.05.15.05.00.21; Tue, 15 May 2018 05:00:35 -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=Ob1SxgPk; 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 S1753047AbeEOMAD (ORCPT + 99 others); Tue, 15 May 2018 08:00:03 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:58424 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752950AbeEOMAB (ORCPT ); Tue, 15 May 2018 08:00:01 -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=ILJ/ulfZD7JAhsarzFSws0tmOkQ3jQGJ6hgT6jNHSrs=; b=Ob1SxgPk8rVvVqR2he1hVMh2S ZXccXQMKLR8+u0SDPBa+q8KxzrQqw4/cAOOMAzg9JbQwG90pUXbiZVPPjRzoAxOGih+3XBLLdsIhW nyB0By8naVRMGXDLJKMMhFCxvZ3Jqxv0GJldHx10bdtqdyv8P+OKZWEjxen+xeEmWTN0ZHsmfPM9H n2oTxAqK3V2tOVVgme9NkxD0AgCpbHYT9KlPowZTunMiq7CjmC7Z87o8cOe25wEfMEjDcfOJ9faK3 wBhfPaxLdReH5tNCgz00OAvHz7qK6q7N4G8nFEqtqzEQP100nfWCCV/NeRUO+jXcdyeNt3DsvaNzg ng3zg2djA==; Received: from 179.187.99.131.dynamic.adsl.gvt.net.br ([179.187.99.131] helo=vento.lan) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fIYcW-0005Ys-KN; Tue, 15 May 2018 11:59:56 +0000 Date: Tue, 15 May 2018 08:59:53 -0300 From: Mauro Carvalho Chehab To: "Gustavo A. R. Silva" Cc: Mauro Carvalho Chehab , Dan Carpenter , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 01/11] media: tm6000: fix potential Spectre variant 1 Message-ID: <20180515085953.65bfa107@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> 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 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 > > Thanks > -- > Gustavo Thanks, Mauro