From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julia Lawall Subject: Re: [RFC PATCH] asm/generic: introduce if_nospec and nospec_barrier Date: Fri, 5 Jan 2018 09:11:59 +0100 (CET) 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> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Return-path: 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 In-Reply-To: <20180104233259.GA24680@amd> Sender: linux-arch-owner@vger.kernel.org List-ID: 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 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