Received: by 10.192.165.148 with SMTP id m20csp514921imm; Fri, 20 Apr 2018 10:22:54 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/fmD7j+14mE9hrja02WJU15m2Ap9DDWosatCKTjpNNzM5a9O9uL6AwNPHzGRdk87AS69A1 X-Received: by 10.99.109.65 with SMTP id i62mr9199481pgc.233.1524244973938; Fri, 20 Apr 2018 10:22:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524244973; cv=none; d=google.com; s=arc-20160816; b=vKGUavA+BUor7Lbz9W+mjuD+cl5Ddhbq1BOT53jUi2ehXH5zgDt7An7oG5law1D39h 9mg1VbtZl8mWYt2ZrpUlirG1YN5eDU5+STA/fa8+4534mjlws0/IyZFBx/2p0pwBvpd9 nRnvtotVMAKNv/ZZ1a+PLePNDmgCzW9aWhtlrq4E/Zw6bWh1l4a2aUXiRD8z5ZtB1LEP QgJRBiwww9vdQBnZXFW4CoVfsWdqe2D2O+SZRm/Qbaqhl7GIG0yN+yW7hhn4zJA7z56H gU/GXlye7c5/z64ZJcQDbMGGHUBtTVTXdlC3+OmDvtbBcxU3g+GKKyzyHKedswR7oNe6 nUPA== 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:arc-authentication-results; bh=DOJcAKWjwVKgGX6PUwXqSMZhyaLNZUwCq7VoRamqdcs=; b=1BHm/9qsWRfU4hNqXbk82Yqxzn9A3qbNRuLqjxMk3/5RcfvUBE9htHJHczwpa3lyE6 dvExznKQee2/ajDGlFeE5Pfu2YPLkz03oA4QNNmXjmWe8qdAfU8xGAvbAe2VHi91mSpN k0HaFENAmQ++j6bw9kbs9RVIIT/Wfv7yOZ6vT299cArpPwG3E4LiXr4+GZI6H61nokZA GOVDqCwf4MQ8jB6eKncaYi+tuNlVREkMizkrohswEeJLye/LAnE/3wFyGGqw5JpmsJvT AUbMKZpJpFN0H/UsdPqiqHRjs0ItrJxGklXbH4P5DMBu/jg8woIIq2TGmfE9ma58qkEW 1z9g== ARC-Authentication-Results: i=1; mx.google.com; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i12-v6si2588919plk.589.2018.04.20.10.22.39; Fri, 20 Apr 2018 10:22:53 -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; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752908AbeDTRVM (ORCPT + 99 others); Fri, 20 Apr 2018 13:21:12 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:37720 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751159AbeDTRVL (ORCPT ); Fri, 20 Apr 2018 13:21:11 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8D9CA8D773; Fri, 20 Apr 2018 17:21:10 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.34.27.30]) by smtp.corp.redhat.com (Postfix) with SMTP id 94F4611701C4; Fri, 20 Apr 2018 17:21:09 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Fri, 20 Apr 2018 19:21:10 +0200 (CEST) Date: Fri, 20 Apr 2018 19:21:09 +0200 From: Oleg Nesterov To: Thomas Gleixner Cc: Dan Carpenter , LKML , Peter Zijlstra , "Gustavo A. R. Silva" Subject: Re: Smatch check for Spectre stuff Message-ID: <20180420172108.GA29920@redhat.com> References: <20180419051510.GA21898@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Fri, 20 Apr 2018 17:21:10 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Fri, 20 Apr 2018 17:21:10 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'oleg@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/20, Thomas Gleixner wrote: > > > kernel/signal.c:3457 do_sigaction() warn: potential spectre issue 'p->sighand->action' > > This one is correctly detected Not sure, k = &p->sighand->action[sig-1]; calculates the addr, although we do '*oact = *k' later. I dunno. > > kernel/signal.c:65 sig_handler() warn: potential spectre issue 't->sighand->action' > > It's unclear from a quick look whether it's really possible to speculate > all over the other things there, but we probably err out on the safe side at least not in do_sigaction(). And in fact do_sigaction() doesn't need sig_handler() at all, it could use act->sa.sa_handler instead. Oleg.