Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751451AbeAEIMC (ORCPT + 1 other); Fri, 5 Jan 2018 03:12:02 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:64880 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751284AbeAEIMB (ORCPT ); Fri, 5 Jan 2018 03:12:01 -0500 X-IronPort-AV: E=Sophos;i="5.46,317,1511823600"; d="scan'208";a="307740861" Date: Fri, 5 Jan 2018 09:11:59 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Pavel Machek cc: Dan Williams , Julia Lawall , Alan Cox , Linus Torvalds , Linux Kernel Mailing List , Mark Rutland , linux-arch@vger.kernel.org, Peter Zijlstra , Greg KH , Thomas Gleixner , Elena Reshetova , Alan Cox , Dan Carpenter Subject: Re: [RFC PATCH] asm/generic: introduce if_nospec and nospec_barrier In-Reply-To: <20180104233259.GA24680@amd> Message-ID: References: <151502463248.33513.5960736946233335087.stgit@dwillia2-desk3.amr.corp.intel.com> <20180104010754.22ca6a74@alans-desktop> <20180104192648.GA10427@amd> <20180104224455.GA22369@amd> <20180104233259.GA24680@amd> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: It looks like the problem in terms of detection is to find values that should be annotated as __user. Poking around a bit, it seems like this tool is doing just that: http://www.cs.umd.edu/~jfoster/cqual/ It dates from 2004, but perhaps the developer could be motivated to pick it up again. I don't think Coccinelle would be good for doing this (ie implementing taint analysis) because the dataflow is too complicated. julia