From patchwork Mon Feb 6 14:16:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pratyush Anand X-Patchwork-Id: 9558113 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3521B60413 for ; Mon, 6 Feb 2017 14:16:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2456B206E2 for ; Mon, 6 Feb 2017 14:16:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 168FE20952; Mon, 6 Feb 2017 14:16:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00 autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9CDA8206E2 for ; Mon, 6 Feb 2017 14:16:58 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cak68-0002LE-Pu; Mon, 06 Feb 2017 14:16:52 +0000 Received: from mail-pf0-f176.google.com ([209.85.192.176]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cak64-0002JC-KT for linux-arm-kernel@lists.infradead.org; Mon, 06 Feb 2017 14:16:51 +0000 Received: by mail-pf0-f176.google.com with SMTP id y143so24566721pfb.0 for ; Mon, 06 Feb 2017 06:16:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=iPv5Ms42Ov7SPLIOry9ciGewLbEiy1J8efGi4rcLHlg=; b=ZDzzqScLeZD3MMvdUU5XIr6LgTvUo3TctwL5774TJr9In3+AzQ49atUttR5Btarx1I IlQci43rR+QHkiJOWNLFktNjOD9dvchRvgajMk710BEMHJtW2kRJxUlRsopI4s0Ryukx G0t74PG9VG4Emb9wYy6x8q1HWzQHW1Y0aS2Sw0BalIgrt4FkLaT5XD+VeciK99Zm/wNx PPw6HEVYeoQH8TD1KXkr2kRz+ROG6k06Ywrt3aZGfd9BCDoWTmnC0wgEIU74de52AMZR lVdBbOKqnSygSEwqb3+9lx5M+p+sVft0TCW9WA7AcCCyHypfs3Lzzn/34EUorI62FpmU 2Plw== X-Gm-Message-State: AIkVDXKZZaJytDJj7r7NtaDfvq5VBxMYER5MDIkrDU8a+d5h2Ij1e1bG1mj7QWjAJRW/DPiH X-Received: by 10.99.155.18 with SMTP id r18mr13291744pgd.193.1486390586805; Mon, 06 Feb 2017 06:16:26 -0800 (PST) Received: from localhost ([182.69.38.8]) by smtp.gmail.com with ESMTPSA id z70sm3243024pff.26.2017.02.06.06.16.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 06 Feb 2017 06:16:26 -0800 (PST) From: Pratyush Anand To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] arm64: do not trace atomic operations Date: Mon, 6 Feb 2017 19:46:22 +0530 Message-Id: X-Mailer: git-send-email 2.9.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170206_061648_703170_F20F807D X-CRM114-Status: UNSURE ( 8.84 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Pratyush Anand , will.deacon@arm.com, rostedt@goodmis.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Atomic operation function symbols are exported,when CONFIG_ARM64_LSE_ATOMICS is defined. Prefix them with notrace, so that an user can not trace these functions. Tracing these functions causes kernel crash. Signed-off-by: Pratyush Anand --- arch/arm64/include/asm/lse.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/lse.h b/arch/arm64/include/asm/lse.h index fc756e22c84c..606b20910a5c 100644 --- a/arch/arm64/include/asm/lse.h +++ b/arch/arm64/include/asm/lse.h @@ -19,7 +19,7 @@ __asm__(".arch_extension lse"); /* Move the ll/sc atomics out-of-line */ -#define __LL_SC_INLINE +#define __LL_SC_INLINE notrace #define __LL_SC_PREFIX(x) __ll_sc_##x #define __LL_SC_EXPORT(x) EXPORT_SYMBOL(__LL_SC_PREFIX(x))