Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp107753rwb; Mon, 26 Sep 2022 09:53:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6pFZPfDT9T8IJOE+SVdbdRt/t3Go+38qcWgY3GepGaRISA8EHKhdlpv91JK5ARxP/0OrD2 X-Received: by 2002:a17:906:fe04:b0:777:b13d:30a6 with SMTP id wy4-20020a170906fe0400b00777b13d30a6mr18685215ejb.248.1664211237982; Mon, 26 Sep 2022 09:53:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664211237; cv=none; d=google.com; s=arc-20160816; b=S83mc1LnOI04HNsrz4ickR5vEumt8P9HVyg/Zg0eebxTZtsfZORdVIE+GeMagFC96/ UmGnErhY9RyLkjvbREIgKY6gR0Hg0JBiQ8x3dmiKmxta8s8p4mUM6acBnZruN0JW2QNM 4tzZlM4Jb6i/2CztW2kcA29a810BMCJwzvv6qeibI7r4jDa/RMJYxjhy5ynhvgLlC0au QI762CpxZj4PedhgVFZPSCxzI4vybFNa4d/ywPJJTy7pbF/qlWVO1tadGqbbWlGEXHRN wpzqDCoWzKjRtm6SaiSedjZ7icmICYz31NtaDfmGHvVZQFYUfO6VrHrBM2NCKcPQe+46 1aig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=C1eubJvz9n/0G0zc/YXXiya3vfDI7aeLbv9UsR9kWP4=; b=arNlH6fEQ6YtLjadZd9N2Oq1CjebUifjLOfH29qv4ozcRzz95r2sy+T0p6grmjH9q9 FN5gMLJQUq0e1yebnUhbkmnA/l1K+THL7VE2LDjSkJz0i2XR/f9yJa/zy8NLTc+ACq88 xS2UZKVuggIpj/xPtfsA6yLlf2HtYAgsHA3wW/+ploQ5Fy1n9VPS2Z8nJ0N7tU5s2UMx 9qX+RaSrCuo2kuKihc13uK60gR6ddd5YYzACB1flJ9oE+rYoTbctrWn/UxVW+Q+6rVaf Fnp4myMDJkDxwT35yA1DAN+JBFT+1+AOFvQzt3lOSUdB4l5kNJgk8ce/LaOo0zhvbfxt TewQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HJ1XZaMm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c26-20020a056402159a00b004576b5c858csi1329010edv.19.2022.09.26.09.53.03; Mon, 26 Sep 2022 09:53:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HJ1XZaMm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229903AbiIZQuy (ORCPT + 99 others); Mon, 26 Sep 2022 12:50:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230088AbiIZQth (ORCPT ); Mon, 26 Sep 2022 12:49:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9CA170E68 for ; Mon, 26 Sep 2022 08:44:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9C5AB60EB9 for ; Mon, 26 Sep 2022 15:44:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87AE2C433C1; Mon, 26 Sep 2022 15:44:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664207045; bh=KqwfvvLz7Jsc+ZWwezsHsbqwLK7s9ZRi+MT15QtrN2Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HJ1XZaMmr/6BrIK1ccRTKxqsFtsqI1jydwSPei9UcIjJs/jQlQNEy/ZJtGa7e7h7X jvHxsq5xIWfCGddi97a5dXcDX6H7l67UXtv1TOwtdKsZrdgEWWnJGBUd3zyAUp/tMo IkORYNDjRy8FL49wcFzxiOM8WdZFfRDOQ/IzESu7Jl4d4rk6bPQDFE9I/HY70u5axv s0iwThkVkB+uLTWjZgLxUmBjXzBv0PRwGyjnDcPmhKbjB61zW0WhKGFYg8SlQcqi0Y +YbYrgihiySc2S0HEFz0zqO/T+djkTjC7BK2FVPN+DajllluyHlLXtqE82jai4oyBX Ea8maN0IdWq5w== Date: Mon, 26 Sep 2022 08:44:02 -0700 From: Nathan Chancellor To: Naresh Kamboju Cc: open list , Linux ARM , Arnd Bergmann , "Russell King (Oracle)" , Masami Hiramatsu , regressions@lists.linux.dev, lkft-triage@lists.linaro.org Subject: Re: arch/arm/probes/kprobes/core.c:409:30: error: .fnstart must precede .save or .vsave directives Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Naresh, On Mon, Sep 26, 2022 at 06:57:00PM +0530, Naresh Kamboju wrote: > Following build warnings / errors noticed on arm with clang-13 / 14 > on Linux next-20220923. > > Reported-by: Linux Kernel Functional Testing > > Regressions found on arm: > > - build-clang-13-bcm2835_defconfig > - build-clang-nightly-imx_v6_v7_defconfig > - build-clang-nightly-orion5x_defconfig > - build-clang-13-keystone_defconfig > - build-clang-13-omap2plus_defconfig > - build-clang-14-imx_v6_v7_defconfig > - build-clang-nightly-omap2plus_defconfig > - build-clang-nightly-multi_v5_defconfig > - build-clang-nightly-bcm2835_defconfig > - build-clang-13-imx_v6_v7_defconfig > - build-clang-13-imx_v4_v5_defconfig > - build-clang-14-imx_v4_v5_defconfig > - build-clang-13-orion5x_defconfig > - build-clang-14-multi_v5_defconfig-65236a87 > - build-clang-14-lkftconfig > - build-clang-nightly-imx_v4_v5_defconfig > - build-clang-13-multi_v5_defconfig > - build-clang-13-lkftconfig > - build-clang-nightly-keystone_defconfig > - build-clang-14-multi_v5_defconfig > - build-clang-14-orion5x_defconfig > - build-clang-14-omap2plus_defconfig > - build-clang-nightly-multi_v5_defconfig-65236a87 > - build-clang-14-bcm2835_defconfig > - build-clang-14-keystone_defconfig > - build-clang-nightly-lkftconfig > > arch/arm/probes/kprobes/core.c:409:30: error: .fnstart must precede > .save or .vsave directives > "stmdb sp, {sp, lr, pc} \n\t" > ^ > :3:2: note: instantiated into assembly here > .save {sp, lr, pc} > ^ > /builds/linux/arch/arm/probes/kprobes/core.c:412:29: error: .fnstart > must precede .pad directive > "stmdb sp!, {r0 - r11} \n\t" > ^ > :6:2: note: instantiated into assembly here > .pad #52 > ^ > 2 errors generated. > make[5]: *** [/builds/linux/scripts/Makefile.build:250: > arch/arm/probes/kprobes/core.o] Error 1 > > build log: > https://builds.tuxbuild.com/2FAyD1qcTlzjIYE7mjrugjCsxu1/ Thank you for the testing and report! I brought this up on GitHub on Friday as I noticed this as well: https://github.com/ClangBuiltLinux/linux/issues/1718 It sounds like we can avoid this by rewriting __kretprobe_trampoline() in out of line assembly but I have not had a chance to sit down and try it. Cheers, Nathan