Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp14287rwb; Thu, 6 Oct 2022 13:41:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5j08TEX96LZT2POLepG0ZYD+3Z54/d91AW1Dgo6uNTiZzN5K502FYLFiQRpTD3FXPPs1Kz X-Received: by 2002:a17:90b:2d85:b0:20a:d20e:a5fe with SMTP id sj5-20020a17090b2d8500b0020ad20ea5femr1544361pjb.96.1665088869523; Thu, 06 Oct 2022 13:41:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665088869; cv=none; d=google.com; s=arc-20160816; b=swluQikf67uUsNwMecnVAVF3KlZCE9uTPftu3hmO7kIMluDZYwuFMhoXKcpC2qnw4t mGJ82e53lJxvnFP/DRrUy6Tw1V3udgHrrtPTl7V+SHt948QoXi3B81UNx2ftFJ2U8Z39 t6c+JUlj9khiRaC/4eC9JpWa0EAibG1NjkakRQB09p7lVG7mZ8EKkENWu4oY96yvvRT2 /71q0X09/aCulop7H4eXR/QJUOWxUS/Vtk2DNJQrWsg9m2lX2pjaJmt+dIByPKqQjM0D I3Lhz4Po7l/DFoqPBwVyQz6D3mL1Xe/Pa6PZbxiuWRO86DwEAEr7g56ApvkFSULEAnS+ VXmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=YrAC23faud15zS6eHd6bC3i2jrrjB6ysFBkxCYV0DUg=; b=xuwh2hzIXUsgbegU7W2QuBOq3XNYHvzdrnEmgvNBbGabJLpcc0rStFY2bjn4AQZ6p7 +1w8kekAkS8uVVr6P+g9hbrZi7R2p1PG6bReFnlCxD/gRaSznHREWIGeMA9aUaBZu12+ EVMMWIwGCC52b4OArXSgwsKLVJfntz3Fo5k0dmWuINmchGZgjCB0pUHbaDz/JXeSwfB0 yCYTvgET8p7INyiFPmXoRabtDlD7akuOgUkuV9qAeGqQunqPt2uye8oU0vUWvtsUb8Y4 JeXBsknKaV0Nvuo1HIKZtHU7GcS7r7NS2W4mnXOx01/DQHtVGw0f+YoWYF//uFbWi+qd QuYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=VnvmXZkP; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q23-20020a638c57000000b0043a1129e48dsi553448pgn.209.2022.10.06.13.40.57; Thu, 06 Oct 2022 13:41:09 -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=@google.com header.s=20210112 header.b=VnvmXZkP; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232128AbiJFUfW (ORCPT + 99 others); Thu, 6 Oct 2022 16:35:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231577AbiJFUfU (ORCPT ); Thu, 6 Oct 2022 16:35:20 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AF939AFCF for ; Thu, 6 Oct 2022 13:35:16 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id n7so2769651plp.1 for ; Thu, 06 Oct 2022 13:35:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=YrAC23faud15zS6eHd6bC3i2jrrjB6ysFBkxCYV0DUg=; b=VnvmXZkP0hhSETFJ7/rWObNvgVlwQNsO9Q6Wr+CY5AhJLWqAxw5ymAu+d5E1rrq4qi xtkMwQ6YDrHzIZayo7ZRhSzrDOrrFPnJhOXk4o7evz5s7x30Hn8I9naaZ0i069dQB/ph cnMQ55FQ011gtIYFCTqyzmJZqzabfBru2us/cJbxwS7Jb7TSyZcJOK7aqO0uOmoTQAcH GYFiGgWnKQU+ZbebJkkLcDLzUIDh8oQka9cmqiqC2XG21Fq/3L0j06kv3/yXoiZzN3Dc NqeD9ebVrKYIEEnneSVmz+ISDsgVMRU1uRoqaUUyEVUz6KnTZG9lz9xnlm/sH0mgGJ4X k7xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=YrAC23faud15zS6eHd6bC3i2jrrjB6ysFBkxCYV0DUg=; b=N+Z9gD/ReFn5wECAU06C+6jBBhMmK4hAExoav8EgFKWZ9pO59c9l1yajD5q6MNb76J G8TiUIslimqtDYCXxUsthDZkn7lGY+2JMrRBpFt7p9k57WNynAwEgtbm2dA5o9e7jAE+ EeYnC039b3eEMbnxhuiFGPhktc7jtMX3Hh+OQT4799rKkP27DmS4fx9bQHQvwunzTBEZ lXkFwkr4+ifWX2xvkiyHPWbC/tDgnMaLZQa8iqTQ2gVyF8SYb8cooTS3lx/hZtHA2Lar xe2gvmubnfA2BxAIRTIRmrDw8qn+qdFyygXzp4Hg2vGNWpkEwHlLQp3EtU+FQI43YWXs DsSQ== X-Gm-Message-State: ACrzQf1vSHdTHHh7ObNyl2X9ckHg7UZMqkey8hB20In69fQzVWJgbl25 xk1rXMh3dLeLy0xzudLpkGNFgNjxdMzMAONI63YLaQ== X-Received: by 2002:a17:902:7404:b0:17f:7fe6:7197 with SMTP id g4-20020a170902740400b0017f7fe67197mr1565798pll.94.1665088515406; Thu, 06 Oct 2022 13:35:15 -0700 (PDT) MIME-Version: 1.0 References: <202209291607.0MlscIht-lkp@intel.com> <20220930211505.209939-1-ndesaulniers@google.com> In-Reply-To: <20220930211505.209939-1-ndesaulniers@google.com> From: Nick Desaulniers Date: Thu, 6 Oct 2022 13:35:03 -0700 Message-ID: Subject: Re: [PATCH v3] ARM: kprobes: move __kretprobe_trampoline to out of line assembler To: Chen Zhongjin Cc: "Naveen N . Rao" , Anil S Keshavamurthy , "David S . Miller" , Arnd Bergmann , Nathan Chancellor , Tom Rix , sparkhuang , Ard Biesheuvel , Steven Rostedt , Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, llvm@lists.linux.dev, Naresh Kamboju , regressions@lists.linux.dev, lkft-triage@lists.linaro.org, Linux Kernel Functional Testing , Logan Chien , Masami Hiramatsu , Russell King Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 On Fri, Sep 30, 2022 at 2:15 PM Nick Desaulniers wrote: > > commit 1069c1dd20a3 ("ARM: 9231/1: Recover kretprobes return address for > EABI stack unwinder") > tickled a bug in clang's integrated assembler where the .save and .pad > directives must have corresponding .fnstart directives. The integrated > assembler is unaware that the compiler will be generating the .fnstart > directive. > > arch/arm/probes/kprobes/core.c:409:30: error: .fnstart must precede > .save or .vsave directives > :3:2: note: instantiated into assembly here > .save {sp, lr, pc} > ^ > arch/arm/probes/kprobes/core.c:412:29: error: .fnstart must precede > .pad directive > :6:2: note: instantiated into assembly here > .pad #52 > ^ > Chen, I noticed that your patch was discarded; it's not in linux-next today. https://lore.kernel.org/linux-arm-kernel/YzHPGvhLkdQcDYzx@shell.armlinux.org.uk/ https://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=9231/1 How would you like to proceed here? I think moving this out of line, incorporating Ard's feedback, then putting the UNWIND directives on top might be the way to go. What do you think? -- Thanks, ~Nick Desaulniers