From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.4 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E4CECCA9EA0 for ; Fri, 18 Oct 2019 17:08:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BA2462064B for ; Fri, 18 Oct 2019 17:08:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="GEpdi/vg" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2634399AbfJRRI3 (ORCPT ); Fri, 18 Oct 2019 13:08:29 -0400 Received: from mail-vs1-f66.google.com ([209.85.217.66]:46587 "EHLO mail-vs1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393426AbfJRRI3 (ORCPT ); Fri, 18 Oct 2019 13:08:29 -0400 Received: by mail-vs1-f66.google.com with SMTP id z14so4476842vsz.13 for ; Fri, 18 Oct 2019 10:08:28 -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=icZdr5RXUlfIVPQUZ5ag+GwSMhqiqaO3j83adcgUQWY=; b=GEpdi/vgYB3Dbp/h96wQEbZdgTLwWntVY74quNjgbeeg+hzsMk/zZrigXjhZJrnpFb 1sCxD/BkPu3n7ILO/vPRn92A4D4Pr6zGfOnoOhHoLbcienF2os3HqnY38YjnZQJ6CPhG 2cEVlEkOD94zB1mmdsNc/rgKAweeHHSgQwOR9VQJUeRc6eDJnhZALabYW62do/0UnUKN RPD8sUmEbIHcS6c0uuy1U053bUE0xElIjmjrspvbBm1j/HBDqlS+YM/Eb3VkslwJ1EmK DxiIUIGOP9sE/R5mKuzwIB5v1VMKO+wkGaN/oK/qSJiYn43BeozwBBvtWYrtPX2GM7z4 dH4A== 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=icZdr5RXUlfIVPQUZ5ag+GwSMhqiqaO3j83adcgUQWY=; b=FOj7Rb1cNWKXqxjw519wZRRwzm8TWVobJl7cr0lBM6Ds7ZqJmZRluhd4Wue9MsGcJ2 QkMh8uCo1irPw785E+EQ1ExlALmsrBzrTBzz6CUc1JnQIxfR0zHqLHNOfk8W1FlO0VbE 5JjS/tGR1s+opTqsbDdImn8Z93pvDSvnupzmmUPxIHowd+uJ+nLfJNO5vEVcDzxY9atP FdBDbss0zIwcQb947WtYHBIHgnUdeUZGi23cFjs/LJPr6UI+N92o3LsIPVtcgheXaOel e7CsB2yMKDepqJuvpY2lLQMc2L1oxJLIcjP0Xs5cjoIH0+3YD+lMtedVB/GC4c69OStP IemQ== X-Gm-Message-State: APjAAAVSm1tTNdCL/n/zfty8imPf200xmMupmbQn7cxB0nmT4d5u8ITw E1753NBn4OICfB2H1yyCzl/EHMU2JGwy1L9Ldd/mJg== X-Google-Smtp-Source: APXvYqyzzIiNyDr2Id6Kr8DVoqWVgixdTZAxPTLo1g0mx6+HWc+w18Nu6n4FjKGbHpDO9wjpt2GMM+GyVFTzkMX0z78= X-Received: by 2002:a67:ed8b:: with SMTP id d11mr6015143vsp.104.1571418507964; Fri, 18 Oct 2019 10:08:27 -0700 (PDT) MIME-Version: 1.0 References: <20191018161033.261971-1-samitolvanen@google.com> <20191018161033.261971-10-samitolvanen@google.com> <20191018130127.23746ff2@gandalf.local.home> In-Reply-To: <20191018130127.23746ff2@gandalf.local.home> From: Sami Tolvanen Date: Fri, 18 Oct 2019 10:08:16 -0700 Message-ID: Subject: Re: [PATCH 09/18] trace: disable function graph tracing with SCS To: Steven Rostedt Cc: Will Deacon , Catalin Marinas , Ard Biesheuvel , Dave Martin , Kees Cook , Laura Abbott , Mark Rutland , Nick Desaulniers , clang-built-linux , Kernel Hardening , linux-arm-kernel , LKML 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 Fri, Oct 18, 2019 at 10:01 AM Steven Rostedt wrote: > NAK, Put this in the arch code. > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > index 41a9b4257b72..d68339987604 100644 > --- a/arch/arm64/Kconfig > +++ b/arch/arm64/Kconfig > @@ -149,7 +149,7 @@ config ARM64 > select HAVE_FTRACE_MCOUNT_RECORD > select HAVE_FUNCTION_TRACER > select HAVE_FUNCTION_ERROR_INJECTION > - select HAVE_FUNCTION_GRAPH_TRACER > + select HAVE_FUNCTION_GRAPH_TRACER if ROP_PROTECTION_NONE > select HAVE_GCC_PLUGINS > select HAVE_HW_BREAKPOINT if PERF_EVENTS > select HAVE_IRQ_TIME_ACCOUNTING Thanks, Steven. I'll fix this and kretprobes in v2. Sami From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84F38CA9EA9 for ; Fri, 18 Oct 2019 17:08:33 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 58F682064B for ; Fri, 18 Oct 2019 17:08:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="bUk37uDh"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="GEpdi/vg" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 58F682064B Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hVyrDpBIUaH/Z8hzasMhbBLV36zpocJ+HSzekqQoGVs=; b=bUk37uDhR5iidi Hii1xv57buCXr5p8RC6NHKwtMU/qHIDcD9XqShdEGHutd3S5C6mNeF7yrczxciFzZRu1WCoctuPc2 mEgf2ZoO1opVfSoLUymwwcwyt94QKvFSyJbiItikrzP2FbKM+TMwYpEYLZPQfS6fIUrxHHO49hDVz Cg+T9VoLoPEFmm1qKhfzOm19myqc4qepwlrXLSUL4bsmiJsjHuwHH8lu1jwmzNobu3cN64eZGMQYa iY4G6ezbUaeF66IqFSRX5G9VKLR8v8/CnbcUUnziIDgh8W6xaA2gbQ4XpWLVBRqm/n4HOtZQb6AMD EDjORf6ruvPfGvxAVgmQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iLVjs-0002Z7-U8; Fri, 18 Oct 2019 17:08:32 +0000 Received: from mail-vs1-xe41.google.com ([2607:f8b0:4864:20::e41]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iLVjp-0002Yk-EA for linux-arm-kernel@lists.infradead.org; Fri, 18 Oct 2019 17:08:30 +0000 Received: by mail-vs1-xe41.google.com with SMTP id b123so4512510vsb.5 for ; Fri, 18 Oct 2019 10:08:29 -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=icZdr5RXUlfIVPQUZ5ag+GwSMhqiqaO3j83adcgUQWY=; b=GEpdi/vgYB3Dbp/h96wQEbZdgTLwWntVY74quNjgbeeg+hzsMk/zZrigXjhZJrnpFb 1sCxD/BkPu3n7ILO/vPRn92A4D4Pr6zGfOnoOhHoLbcienF2os3HqnY38YjnZQJ6CPhG 2cEVlEkOD94zB1mmdsNc/rgKAweeHHSgQwOR9VQJUeRc6eDJnhZALabYW62do/0UnUKN RPD8sUmEbIHcS6c0uuy1U053bUE0xElIjmjrspvbBm1j/HBDqlS+YM/Eb3VkslwJ1EmK DxiIUIGOP9sE/R5mKuzwIB5v1VMKO+wkGaN/oK/qSJiYn43BeozwBBvtWYrtPX2GM7z4 dH4A== 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=icZdr5RXUlfIVPQUZ5ag+GwSMhqiqaO3j83adcgUQWY=; b=TAnn9uRm1kRQIhyOoLqKS+OfyN43KT+BcKofUdzj/GaC5qoGgSt/IRthzwA1datJoK Pyy/sSMm/B26FXgVdVdMZceyJ1sP8XvXf/6xaSm9itr7yqH3zFCqxT1NA6L7DH7zhcWW B3ycailOkmSNJ5qk9gThLGWaqsPbsDXxbqhAqwBr8vIA7PdvMzQ/D3LNRra9MM0d8F0h VQL58QaN9SSfvXVGe4ao/TZ0UM+BmVhwr8kfEX0ChaAXbv1vuueVverNh3SKEbjOXfbu bQmE2ZfmfFdTnrILP/P7xsc7NtKQR8Ugm1F00c2aG37c/1a6rFRbpjqHMfx/P4MC/edL MaZw== X-Gm-Message-State: APjAAAVAR4RhIGm0pcm8SMHOsQKWfU5108VLMwQjYn0tNJEq1t/u158J xR0xSMAWW7ITgTXFI3Jsheu43EHysp8PAdOiPmDN+A== X-Google-Smtp-Source: APXvYqyzzIiNyDr2Id6Kr8DVoqWVgixdTZAxPTLo1g0mx6+HWc+w18Nu6n4FjKGbHpDO9wjpt2GMM+GyVFTzkMX0z78= X-Received: by 2002:a67:ed8b:: with SMTP id d11mr6015143vsp.104.1571418507964; Fri, 18 Oct 2019 10:08:27 -0700 (PDT) MIME-Version: 1.0 References: <20191018161033.261971-1-samitolvanen@google.com> <20191018161033.261971-10-samitolvanen@google.com> <20191018130127.23746ff2@gandalf.local.home> In-Reply-To: <20191018130127.23746ff2@gandalf.local.home> From: Sami Tolvanen Date: Fri, 18 Oct 2019 10:08:16 -0700 Message-ID: Subject: Re: [PATCH 09/18] trace: disable function graph tracing with SCS To: Steven Rostedt X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191018_100829_505068_AE543757 X-CRM114-Status: GOOD ( 10.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Kees Cook , Ard Biesheuvel , Catalin Marinas , Kernel Hardening , Nick Desaulniers , LKML , clang-built-linux , Laura Abbott , Will Deacon , Dave Martin , linux-arm-kernel Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Oct 18, 2019 at 10:01 AM Steven Rostedt wrote: > NAK, Put this in the arch code. > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > index 41a9b4257b72..d68339987604 100644 > --- a/arch/arm64/Kconfig > +++ b/arch/arm64/Kconfig > @@ -149,7 +149,7 @@ config ARM64 > select HAVE_FTRACE_MCOUNT_RECORD > select HAVE_FUNCTION_TRACER > select HAVE_FUNCTION_ERROR_INJECTION > - select HAVE_FUNCTION_GRAPH_TRACER > + select HAVE_FUNCTION_GRAPH_TRACER if ROP_PROTECTION_NONE > select HAVE_GCC_PLUGINS > select HAVE_HW_BREAKPOINT if PERF_EVENTS > select HAVE_IRQ_TIME_ACCOUNTING Thanks, Steven. I'll fix this and kretprobes in v2. Sami _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.4 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83542CA9EA0 for ; Fri, 18 Oct 2019 17:54:51 +0000 (UTC) Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by mail.kernel.org (Postfix) with SMTP id D18F721835 for ; Fri, 18 Oct 2019 17:54:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="GEpdi/vg" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D18F721835 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernel-hardening-return-17051-kernel-hardening=archiver.kernel.org@lists.openwall.com Received: (qmail 12038 invoked by uid 550); 18 Oct 2019 17:54:33 -0000 Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Received: (qmail 21843 invoked from network); 18 Oct 2019 17:08:40 -0000 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=icZdr5RXUlfIVPQUZ5ag+GwSMhqiqaO3j83adcgUQWY=; b=GEpdi/vgYB3Dbp/h96wQEbZdgTLwWntVY74quNjgbeeg+hzsMk/zZrigXjhZJrnpFb 1sCxD/BkPu3n7ILO/vPRn92A4D4Pr6zGfOnoOhHoLbcienF2os3HqnY38YjnZQJ6CPhG 2cEVlEkOD94zB1mmdsNc/rgKAweeHHSgQwOR9VQJUeRc6eDJnhZALabYW62do/0UnUKN RPD8sUmEbIHcS6c0uuy1U053bUE0xElIjmjrspvbBm1j/HBDqlS+YM/Eb3VkslwJ1EmK DxiIUIGOP9sE/R5mKuzwIB5v1VMKO+wkGaN/oK/qSJiYn43BeozwBBvtWYrtPX2GM7z4 dH4A== 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=icZdr5RXUlfIVPQUZ5ag+GwSMhqiqaO3j83adcgUQWY=; b=Vvr/dIHqo4A5kt7dy3zjBBzaHppGQs3lMg5GDY0JJIW0Vo4Zmk1RKhDEG8eViibRNh TQGu4HWkrfoD9cQIRYoEegdxETtDsedzFaEoD1DXQ5ES4d6rh+jCONqAEG/75epspEy6 pHYUpyT6QdJuHhXfFRYWPBmW54zhUvMDs54d2nUE5k6xw2b6lZ6arOGAV2RZbnaiFJY4 fFBCUTZXTjeE4NFfgVPNg7gHTjZAPQ3XdirXdSMOsTcbQatlNbVmNMv4/50Vwtvb8Mmy MNIOYxofBq2bJ5vLE9axaWXFObozsv0qaHbK77RswPi2jkqPhE9e/3KIppZqR/6Ms19q EuBA== X-Gm-Message-State: APjAAAUPyAjqFN1xDy/DyPTdviSo5B6jsYQ6wYntHzvQhZmTjBttP6rO s5Tj/2WBjPIDrZ5LU3wnjMRf1d8QELTbH7TdVzyShA== X-Google-Smtp-Source: APXvYqyzzIiNyDr2Id6Kr8DVoqWVgixdTZAxPTLo1g0mx6+HWc+w18Nu6n4FjKGbHpDO9wjpt2GMM+GyVFTzkMX0z78= X-Received: by 2002:a67:ed8b:: with SMTP id d11mr6015143vsp.104.1571418507964; Fri, 18 Oct 2019 10:08:27 -0700 (PDT) MIME-Version: 1.0 References: <20191018161033.261971-1-samitolvanen@google.com> <20191018161033.261971-10-samitolvanen@google.com> <20191018130127.23746ff2@gandalf.local.home> In-Reply-To: <20191018130127.23746ff2@gandalf.local.home> From: Sami Tolvanen Date: Fri, 18 Oct 2019 10:08:16 -0700 Message-ID: Subject: Re: [PATCH 09/18] trace: disable function graph tracing with SCS To: Steven Rostedt Cc: Will Deacon , Catalin Marinas , Ard Biesheuvel , Dave Martin , Kees Cook , Laura Abbott , Mark Rutland , Nick Desaulniers , clang-built-linux , Kernel Hardening , linux-arm-kernel , LKML Content-Type: text/plain; charset="UTF-8" On Fri, Oct 18, 2019 at 10:01 AM Steven Rostedt wrote: > NAK, Put this in the arch code. > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > index 41a9b4257b72..d68339987604 100644 > --- a/arch/arm64/Kconfig > +++ b/arch/arm64/Kconfig > @@ -149,7 +149,7 @@ config ARM64 > select HAVE_FTRACE_MCOUNT_RECORD > select HAVE_FUNCTION_TRACER > select HAVE_FUNCTION_ERROR_INJECTION > - select HAVE_FUNCTION_GRAPH_TRACER > + select HAVE_FUNCTION_GRAPH_TRACER if ROP_PROTECTION_NONE > select HAVE_GCC_PLUGINS > select HAVE_HW_BREAKPOINT if PERF_EVENTS > select HAVE_IRQ_TIME_ACCOUNTING Thanks, Steven. I'll fix this and kretprobes in v2. Sami