Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15294ECAAD8 for ; Wed, 14 Sep 2022 11:52:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229714AbiINLww (ORCPT ); Wed, 14 Sep 2022 07:52:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229976AbiINLwv (ORCPT ); Wed, 14 Sep 2022 07:52:51 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C61B37CB52 for ; Wed, 14 Sep 2022 04:52:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:MIME-Version:Message-ID: Subject:To:From:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=HUikcCvi9W9d7s8ZCfP6KXKVOmRubT7AphAokVgJASY=; b=h7+1Sqfz5P7vBBTJuSGXB4ad1e XwJS1uyie6YhH9NXPOAmumd4nurr1PulDb8dQDAXLmu/RvH3SAwu+v3MgB1kISp8jwHtewKScaRqA JvATlnKEK+KpA4dnLJvp3nwkYVpbLMc6/VvKDdD2BSlvPoY14Xeb6xkZrf3txb6TByaG4nMOe3qon zgFIfONbtzd6CtSQerRXnb55+lBxIfufxAEu9z1MRPHwwI213XPhuaxtyveCY84cliYewdbnIaHKr 2zdYOYchMk8bwWynYHNYd8Hjhz7VWiKtzoWb0XQd+UE403adwFhjtdqtLN/UIJcPjmezPrNXStYDX 3pTzD0nQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oYQwd-00CLa2-CV; Wed, 14 Sep 2022 11:52:43 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 9335A3002AE; Wed, 14 Sep 2022 13:52:42 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 63E0D2027734A; Wed, 14 Sep 2022 13:52:42 +0200 (CEST) Date: Wed, 14 Sep 2022 13:52:42 +0200 From: Peter Zijlstra To: dmalcolm@redhat.com, linux-toolchains@vger.kernel.org Subject: -fanalyze vs spectre-v1 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-toolchains@vger.kernel.org Hi David, Having just watched your LPC presentation; there was a question for more things to check, but also running out ot time. One thing that did occur to me; is that when you have the user-kernel bounary, then it should be possible to find the case where a user originating variable (result of copy-from-user, syscall argument, etc..) is used as an array index (without proper guarding like array_index_nospec()). ~hth, Peter