Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1560353ybg; Thu, 4 Jun 2020 12:52:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdqBr3JwCa1W3CQAffLXs4lKlB4ybd4EredC8FUIRFtxbvpals4+CCUTGm0MwHRmiINgOo X-Received: by 2002:a17:906:49c7:: with SMTP id w7mr5223757ejv.216.1591300342578; Thu, 04 Jun 2020 12:52:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591300342; cv=none; d=google.com; s=arc-20160816; b=SeH955ZAlhk73LeAAvkGlbHJtmjUpMS5VLLhWLhp3RaBPTnfSXTGUepsGhnY2v7Z6w sstm0x6hwPuKV0fv7h1NyOQsXzbjkqiORR1HtD+6JsPnijCvjEqUGKsEozBCGjA7nkU6 eGefiExuCczQGjkEOcFkLgYXzA+X3ZeloKRCCszeIC3W48sVpK8wupaEg3u+vAYggcU/ UxnOGC2VXj9se5VMlaL2Xs4FWeYdBhJAOtsLVRthU00r9aN/B5mlkJ4r+zq+ceIC0h6Z hLIZcKkUCez+M6Vv8dUn/84wzUniSWUp8w1OqadaR0DzCsku1aydemWVTp1Zyo+G3oHc 8V2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=QBoURK9IvkbwBs1kPGIuS8onwD7joVufvI7DnXYuvi0=; b=uYio6+WqmWz8IMOEIDS5yPChVoF8bA0sI2v5Yh+3W8JwOXi8oQ0c5+Uig6V1F8L2OL MjPQgJ/LWxnSzmE0BExupHaBeHm9/d4CVj8Xq5H+TnpE5eQtZRFc6SZWJGRSRmRxDuVl ywVWmc5aTxD3aBHtNprXnNb8aCbE+pTcjzqv+ef3E3oawRcJ+kSoWOoB3QjlHgxMV4Ad wiv/eJ84Kr6qp+yoyqgs+jXETox12EnwGfFs9+MPH0VZ/2ioOmitivCnFyLsA3GOPYOa cGyMo6w65NXvYJfFoeOZRJQ/1782kx7B6bMMYs9rAt945A+JfKGMTY1R3Rl9nc2JoiLK 2Bzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=eCFjxOTA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lh2si1794733ejb.400.2020.06.04.12.51.59; Thu, 04 Jun 2020 12:52:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=eCFjxOTA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728974AbgFDO0C (ORCPT + 99 others); Thu, 4 Jun 2020 10:26:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728663AbgFDO0B (ORCPT ); Thu, 4 Jun 2020 10:26:01 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06FDDC08C5C0 for ; Thu, 4 Jun 2020 07:26:00 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id e4so7569308ljn.4 for ; Thu, 04 Jun 2020 07:25:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QBoURK9IvkbwBs1kPGIuS8onwD7joVufvI7DnXYuvi0=; b=eCFjxOTAU45BkEXkm9dz6n9yVUTYKjF0lfqsZeaFC/6ify5YGNdJzi4s/42EJQZhBX 1nyzwSJOUmHwTC4erzNqLYt8oP3Z9mcusdfhj7KwKo7ODOGeIntpb/jlb6NeGSOKC7zs 2vxUEqxohHamBIFMr3SHgxK2PndlbotB5rKYm+Nr69EgxtRXHQOW/J5C2HYX4E7orDmD CLpVwcKlAHqOChEXa+jjLzSQApNsSM0P2DZgA16woVD/aZcsvKBrVEkn2y6s2mids0Y8 bvhEzQ6JPoIN2jCASEnd2HlER4AKNlCgfiSozQwnM4G8f8hoZpJVCgO+rFQneglybL6p l2lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QBoURK9IvkbwBs1kPGIuS8onwD7joVufvI7DnXYuvi0=; b=lAOPTEzKDtC9lVj7n2RuTpbs+jiVX3w85qkILw3ZP9xIucldSIjk+KfodrYjwbC1m5 daDY+WX2Mw6zL5t3MO6PSHOAFfkyDL/MpB5IcNo0qdSsY9+cFZAWhRzAAuaWW2MsYml2 A+uZYeXNDs6bgbSmIm4QE+m4twGTqKQM/eWM89WrM98F5g1FJOKcDNGsHQwXl+vwFmNK p8xx26QKFfnZwyUCoXW1GTkEkHCHydal6A2dsMT4RLGz+wluCRylf5u/wNCYbgyGZ0x0 fg2O7ITnLGBKFI5c73GC0V78vuBaAhh3UznHRKM4v06AAkAjB2Ylj0Y2SmRhq63btWUL MQDw== X-Gm-Message-State: AOAM532lxtsaBMEzxU6/I7AGckr6zhby0G4Xk0gQS3h7lbMRspYhz2Dg zYGZUspn2wSloBZHm0xfxNYBPEa7mfhGTg0P9G4+9Q== X-Received: by 2002:a2e:9455:: with SMTP id o21mr2270197ljh.415.1591280758179; Thu, 04 Jun 2020 07:25:58 -0700 (PDT) MIME-Version: 1.0 References: <20200604134957.505389-1-alex.popov@linux.com> <20200604134957.505389-6-alex.popov@linux.com> <20200604135806.GA3170@willie-the-truck> In-Reply-To: From: Jann Horn Date: Thu, 4 Jun 2020 16:25:31 +0200 Message-ID: Subject: Re: [PATCH 5/5] gcc-plugins/stackleak: Don't instrument vgettimeofday.c in arm64 VDSO To: Alexander Popov Cc: Will Deacon , Kees Cook , Emese Revfy , Miguel Ojeda , Masahiro Yamada , Michal Marek , Andrew Morton , Masahiro Yamada , Thiago Jung Bauermann , Luis Chamberlain , Jessica Yu , Sven Schnelle , Iurii Zaikin , Catalin Marinas , Vincenzo Frascino , Thomas Gleixner , Peter Collingbourne , Naohiro Aota , Alexander Monakov , Mathias Krause , PaX Team , Brad Spengler , Laura Abbott , Florian Weimer , Kernel Hardening , linux-kbuild@vger.kernel.org, "the arch/x86 maintainers" , Linux ARM , kernel list , gcc@gcc.gnu.org, notify@kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 4, 2020 at 4:21 PM Alexander Popov wrote: > On 04.06.2020 17:14, Jann Horn wrote: > > Maybe at some point we should replace exclusions based on > > GCC_PLUGINS_CFLAGS and KASAN_SANITIZE and UBSAN_SANITIZE and > > OBJECT_FILES_NON_STANDARD and so on with something more generic... > > something that says "this file will not be built into the normal > > kernel, it contains code that runs in realmode / userspace / some > > similarly weird context, and none of our instrumentation > > infrastructure is available there"... > > Good idea. I would also add 'notrace' to that list. Hm? notrace code should definitely still be subject to sanitizer instrumentation.