From patchwork Thu Feb 11 02:51:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 12082217 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=-12.3 required=3.0 tests=BAYES_00,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, USER_AGENT_GIT autolearn=ham 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 1D787C433E0 for ; Thu, 11 Feb 2021 02:53:41 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 CBFB664DBA for ; Thu, 11 Feb 2021 02:53:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CBFB664DBA 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+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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:To:From:Subject:Mime-Version:Message-Id:Date: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=J4nPHabJxrjvfzOV9mpzoVIRWcmZTns51lN8sNBX5rA=; b=jLpE77AT/ufy0jHbsQnpZcUJ4X Yt6xXkbJtXCViTBjfGx79taecZEfHyBhTWsF+l8oIXxpk0D09Fj6YBwtXKElnOWLpsDdcBn0ujhmI tvqk0NYZmuZooAtyAlXMBJVEsqY+pYaa5+0FEZtrTTw7ylNJDQ1cFB2lMxYcXVXGejSbd5RaQ8Pdv FQxnvk3RNGNiFWergxWW82zfZDTBjlqkFyW4gUB31JiOZTaO55kBQa/zZjizhoMYfSbZjQxL8yFv5 CXrcrgakQ3hkKlnI2BPLpTKqJttGVcK3F+YRbkggWcHGKtVBCCSicrJYUBW4GGIpUpGX8F0y3kDFi bXYcdM8w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lA25P-0000Rh-BA; Thu, 11 Feb 2021 02:52:07 +0000 Received: from mail-qt1-x849.google.com ([2607:f8b0:4864:20::849]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lA25L-0000QH-5C for linux-arm-kernel@lists.infradead.org; Thu, 11 Feb 2021 02:52:04 +0000 Received: by mail-qt1-x849.google.com with SMTP id k90so3209260qte.4 for ; Wed, 10 Feb 2021 18:51:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:message-id:mime-version:subject:from:to:cc; bh=o822Lr199HQGCnayt8C72QUcHqAHTU2Ztu3EEpAsGPY=; b=fa08nbzA3vctIkHyeNEUqu3Qwwj9o9ZRYC7Z4sVBBgi31CyJCwYUuFVLvb6LxCCdXz v/tHYrfC0qQII6+Wx9XMhZySwGhYPrbW2kCV1w8/K8rRe+M9YnQOumzxhAx+lJ5R0O0H bTk9C/FNElMWoku8E4bGA6EzzmWSF+vORyewPoV5jshnPTU4janDEd1ZKKZ4h1nwySlM q0NqMJ1idIQhyPFR/Atc5rZOABJ2DHlifbZjQBBvnaR4UhznwO01Cc0MuP31ZNKRR9Ze LdvcMUMnz+5KUCGJOQaBY3z1bTsNd6xsJFGRkX+vYxOpHcZA14UydO6zYxNYTzN/Txcv VxuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:message-id:mime-version:subject:from :to:cc; bh=o822Lr199HQGCnayt8C72QUcHqAHTU2Ztu3EEpAsGPY=; b=TBnkw8PM1dgrcysugkbn7+BB1Z8neGf50u0rxmrXjQD5HlHRu7FFEyfOS/tTZQg9DC vH+56V6f9qL1jol7SUthQzTi1PdBpX0cSRf2L6oF5ht8KjneY877CaSI3P3FEaePrK+k iAfn1GCSTA6X7fvPrLWTtfs+Zb1jMzYrLY9PCak8aku7uoaPy6i7MQKg+k+EvmWOKB2C O2Znqar5fNe7nY/SKwyA1nCfx97ppNirx1ar87nr8sg+PaXywvr8srkrh3vrrO5+qjg0 s7PWesoyS71Hz/u9Y3CEvFwO7R55tVuJ4xICXybLUuLPf4NfI3b1F8Yl94XXpxpaHQ72 gnfA== X-Gm-Message-State: AOAM533bKm5GSGwgLXbnYkxR6Ts6Y4YgBrkIOmVfRiJjaNM7IVoTgyxD Iqbnv9wlsd/jzudbJZFGQHXpoFlUVoXZLXVAxU8= X-Google-Smtp-Source: ABdhPJzG54RwknIuYyHp7RUfDIKFcQO2oqp+MpWu4DtUyHb8ecmPiIhS9avh4ybC/NfnfcI3/1P+9s/jNDhtsxqUqtw= X-Received: from ndesaulniers1.mtv.corp.google.com ([2620:15c:211:202:1dc:8608:b4eb:4dd0]) (user=ndesaulniers job=sendgmr) by 2002:a05:6214:bce:: with SMTP id ff14mr5647814qvb.26.1613011916720; Wed, 10 Feb 2021 18:51:56 -0800 (PST) Date: Wed, 10 Feb 2021 18:51:47 -0800 Message-Id: <20210211025149.3544593-1-ndesaulniers@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.30.0.478.g8a0d178c01-goog Subject: [PATCH v5 0/2] ARM: kprobes: asm warning fixes and UAL conversion From: Nick Desaulniers To: Russell King , Arnd Bergmann , Ard Biesheuvel X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210210_215203_264579_4AE90F96 X-CRM114-Status: GOOD ( 12.32 ) 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: Renato Golin , Nick Desaulniers , linux-kernel@vger.kernel.org, Peter Smith , Nathan Chancellor , clang-built-linux@googlegroups.com, David Spickett , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Clang's integrated assembler only supports UAL and rejects instructions that are UNPREDICTABLE; KernelCI has been warning about those for awhile now when using GAS (GCC or Clang) for allmodconfig builds. Changes V4 -> V5: * Make patch into series. * Fix the UNPREDICTABLE warnings first. * Add .syntax unified to fix the GCC build failure reported by 0day bot. Changes V3 -> V4: * use __inst_arm for movs based on resolution of https://reviews.llvm.org/D95586. Changes V2 -> V3: * drop changes to test-thumb.c. That file is mutually exclusive with test-arm.c based on CONFIG_THUMB2_KERNEL. LLVM requires more fixes for .w suffixes for thumb2 mode. Changes V1 -> V2: * Fix additonal swpvsb case in test-arm.c when __LINUX_ARM_ARCH__ < 6, reported by Arnd. * Fix arch/arm/probes/kprobes/test-thumb.c, reported by Arnd. * Modify the oneline to note I'm modifying test-*.c. Nick Desaulniers (2): ARM: kprobes: fix UNPREDICTABLE warnings ARM: kprobes: rewrite test-arm.c in UAL arch/arm/probes/kprobes/test-arm.c | 294 ++++++++++++++-------------- arch/arm/probes/kprobes/test-core.h | 1 + 2 files changed, 148 insertions(+), 147 deletions(-)