Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1259451imm; Wed, 20 Jun 2018 14:37:06 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ31NUrpOYmKfzhxChGkBY9mAwNZQ3MDNATIKfzEGa15rn26D+GqSwCJYYfE0mg2Ik0Dq95 X-Received: by 2002:a62:154a:: with SMTP id 71-v6mr24981926pfv.170.1529530626446; Wed, 20 Jun 2018 14:37:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529530626; cv=none; d=google.com; s=arc-20160816; b=nJbyZswR7qJi2O7WAYVuvS9Ta4vyuk1ZwKtmB5dAKUqlCWmCI97KguqhYDTIEvBozh CJNtK8+DyXqGRddZck3hqukgz4TKdG9mqlAgvt9AqKATWWhXbt/mUhs+x+czFyfZhS6V m0kYKFQjOuKMpTfLgElFxBNLztcheMIFQZP7pcdbawKAHVtsbsGgxN3vdkcIpYuTN/nI FCzYtqetB8NT2KZ2APkFoQWSQtHTfBkwWpOsgp2iaJqancV23n3gN4RzcYGBSiXcNOpW jQY7d47REK7OWklPIqrIJrGON1dNloX6MYL3a62r9CL79S9YIcaP2muQhJHKOZNwydtW 8aqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=G2auKOMxQ9wI7wBvMKoDy9J9i6w5RWJR8sEiBNhapYo=; b=XMZ4FYKiNhoIQipZHO455CUVR0IH+1LwkvaYwFeh3YKd69rBNfgQrButjf6N/PqAfD HQZnOtV5cjoderxnpHrvYtH5t7r7nsOq5bVrGc54T4L2YDjXvubK7IKBa3QTkjIq/Ai1 bnGvSV7xZxouerpwl6K9S/wr0zTPU5pZA31x0wcQbigc62p5YhU5H5NZcgSOKYUF75kX iCWZt7DndnINbtrw0Gws7i3oTLukYx72Mw8ngRk4sZjZ2acg3TkRjrcSYNnegeZCgUO8 PUw4NWZhKWKe09ggZGTv8xK3RfsDF/bfSHbwCNWFhsoRIl8artkRbZp0aMJwGu0/erEH 9pxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=DoLZGajW; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i9-v6si2784104pgo.36.2018.06.20.14.36.52; Wed, 20 Jun 2018 14:37:06 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=DoLZGajW; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933596AbeFTVgB (ORCPT + 99 others); Wed, 20 Jun 2018 17:36:01 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:43948 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933438AbeFTVf7 (ORCPT ); Wed, 20 Jun 2018 17:35:59 -0400 Received: by mail-pl0-f67.google.com with SMTP id c41-v6so455191plj.10 for ; Wed, 20 Jun 2018 14:35:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=G2auKOMxQ9wI7wBvMKoDy9J9i6w5RWJR8sEiBNhapYo=; b=DoLZGajWtFM8THj6hgvGfGflmQ+DUWNv5t12YB1f8f106cYJeKWDt81J/oqHs/OQZM 97hF6fIyA9FRaHWN0EKeFWSzVS7jXfFijdibW9H7ofg7JYkl9kUpmuKy9fb1HAXliQZ5 MFdQCZaS1d0u3GyuEbgzqS5ryvT9eDL+Ap4dg5W1JZ818cwrKiw+AIXa64EnGxR1S0A5 i6TvH33NuJT+jC5eqE3nF3IhaubV9y0lte0gvpgNY2ynaPFMikv1dwV7GXlhlhJDZ9y8 mDAfnyb8nXRzt+hJlqlMf4YYStgklpu4sxr58Z6kq9UzWJY4rFOKY9CRKERFxNEb9x8Z QL0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=G2auKOMxQ9wI7wBvMKoDy9J9i6w5RWJR8sEiBNhapYo=; b=g1W3KJBAnCIjmTYLH9LA7dm1NUeZqbadEZkEBn3yxtCNPK9B/BKUNo2WKwhUDO9cUw 9YayPXne7qxnWNUzCrPf+JEhr4kstgezPuhs6HsdpCEYrIfEMab55g6/MpOYUuOPEdnK 6pD+kEtn5BN38XM0U5nd4CrAGFIN6kbQS3NwwHBigwaMFCjrr6/yMQVvxkeYWHO5zbmw lh7JybFduNi7V6qHL+7qptwV2uHjXWR+aRE3taEPDpeukK7uc4Z8j/ws4mIpVa310GDd AQl3mVL1Ycl/AP4BdEcj8AE+2iocEBBlmpcgZwFRIGkZGXMVmmjYwllT1hiVKrNcWXUU Px7A== X-Gm-Message-State: APt69E2mINeYEc8k8KGtAU/nL8T/9xnQuXy4Vp37UBnghX777ppHmtbU EyDSGmw3f9/co9Mil1snLPT6o0BWG6M= X-Received: by 2002:a17:902:6f0f:: with SMTP id w15-v6mr24939491plk.216.1529530558892; Wed, 20 Jun 2018 14:35:58 -0700 (PDT) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id k12-v6sm3917825pgo.31.2018.06.20.14.35.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Jun 2018 14:35:58 -0700 (PDT) Date: Wed, 20 Jun 2018 14:35:57 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Greg Thelen cc: Andi Kleen , Steven Rostedt , linux-kernel@vger.kernel.org, x86@kernel.org, linux-kbuild@vger.kernel.org, akpm@linux-foundation.org, Andi Kleen , Masahiro Yamada , Michal Marek Subject: Re: [PATCH] trace: fix SKIP_STACK_VALIDATION=1 build In-Reply-To: <20180608214746.136554-1-gthelen@google.com> Message-ID: References: <20180608214746.136554-1-gthelen@google.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 8 Jun 2018, Greg Thelen wrote: > Non gcc-5 builds with CONFIG_STACK_VALIDATION=y and > SKIP_STACK_VALIDATION=1 fail. > Example output: > /bin/sh: init/.tmp_main.o: Permission denied > > commit 96f60dfa5819 ("trace: Use -mcount-record for dynamic ftrace"), > added a mismatched endif. This causes cmd_objtool to get mistakenly > set. > > Relocate endif to balance the newly added -record-mcount check. > > Fixes: 96f60dfa5819 ("trace: Use -mcount-record for dynamic ftrace") > Signed-off-by: Greg Thelen Tested-by: David Rientjes