Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3753117pxj; Tue, 1 Jun 2021 12:18:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqudh76cjUOLFHqBIWSv/etWAKBTNRPV5byluqZauUt0173cy91CRYX42MxuFFirPL03cq X-Received: by 2002:a17:906:a245:: with SMTP id bi5mr31734891ejb.316.1622575116485; Tue, 01 Jun 2021 12:18:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622575116; cv=none; d=google.com; s=arc-20160816; b=J3K65RvXea+0FI+2r2TfFc+sIx7VzE/FIJvQ7ZmQOHMd+EuMf1rytRG3kZ52srT0C8 dRnABujAZvDF2IC+Oyxm/19U/51q1Ku2xKaOzmtYVTge0y7OOXX6bbm2uXeb2E4tQMPn QN2ufRxAVwTeOvWlmBD4seW0CND9M+dduVwctVG6pFXni2nxY6sz9Tu357XXhwvJClsh W32MM+XoDKIF2Qn2vlboyEM4w9DhqPjx80MrK8hc/SEMl2mFLjVXntrOBYKWZ4JebKU7 3sAwYj0NSZt0xtwHQfFXp+N9TnABhtnmdKOLF7agfYp14fEbeG2HsR7r6S8ygXfcCUwb Tmug== 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=V/jOJxrVdwVgkU5pbHsyaxFrpR7j0sbYKE51g0U8/jE=; b=h/1bWOKNcLeJic0qvPmeNuNZpfSbLO2SGEPvHuu1WphBITsUnOwnFinXyrEiRPjd/K WWGx2Dl3SREZrAMuJTxDi2P0Vqx2ATYZ54pi5n1WEO9Re1L4wKpBDsDVqbkIOocpb2/t vicaRf2qL9WAIrdGXAc2OxR3bComcWSDT8dW3Y94kdkdnwRuqiahiLMv/iB1pzsh55Km yy4lEx6tgC/SnyvLp3sI0X6lEwUGkGnWBuQofdOR3udgz2MldRPLu81MCEroiSbzjfRt Z5er4TGChhB0kBQWYoH4zM5DobOGCw1EwCImp+to0/J6c2AxTyA3qD/LfZ+Py4DgLkU0 ATaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=JNQVKx8Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id g15si5073112ejt.569.2021.06.01.12.18.12; Tue, 01 Jun 2021 12:18:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=JNQVKx8Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S233397AbhFATSK (ORCPT + 99 others); Tue, 1 Jun 2021 15:18:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233853AbhFATSK (ORCPT ); Tue, 1 Jun 2021 15:18:10 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BCA2C06174A for ; Tue, 1 Jun 2021 12:16:27 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id u22so823606ljh.7 for ; Tue, 01 Jun 2021 12:16:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=V/jOJxrVdwVgkU5pbHsyaxFrpR7j0sbYKE51g0U8/jE=; b=JNQVKx8YGqWIPolHIu7v69C0waidVaomhIcbK/bziEbTl7DykCEDGeYYUeLjtFfsff oXQYZFYTAMZA0mrbtVQ8+hvf40tKDtC+0YeeNuM3fnUHbx4RXPwjjxXoUI6EGll9fdoT xx87coe9CxpHI62e4tK/n1R0QIJcxiwM78wsY1bjJD5S85HVGCgiXEwWYsfYDIaa1FoM 5rXMOfyYCo1BYHGjht1LqOHqzSgzhN3nyICK9NNQs0jFCDAm8HX5wDGPhrKPVEENhAOp Me/o1k/AvMlS+BtdWIkLq9s7TFT+W0lVn+rDsDRL47WJzhfZPHWCenbiim+pSKg+W2lf BkXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=V/jOJxrVdwVgkU5pbHsyaxFrpR7j0sbYKE51g0U8/jE=; b=osPZPRUBpaDYV9hHhYY5sDrEkyMI2JyGMEVB8L0Jv8jXA/s/UVoomPruhlKNPvvi+5 Y6SDR6VAl6CcKNPC2vGlp1GZKRuyfj0be1jXlQznNmKtRcp3nDppJ1CiNoyIJWpfldMW uyWY2e3O1G6C+JiUi6ev7+ZkqBabHKV2683Mc/a1o6z5rJWKRlEHyR8ktMoa5qnmnxw3 u82SMfBpPOCZ+w+3CKVoP86aRqLwM/yyMMZMgLmnEGhYN7ugYA8Sbh/8iDoUhkpx/urA hUFHlzhCZoeYberNCZQeG9wWw/FE3Lko0HCwRflFD65NDUa7XLRWMfux3rH92nFFJ+QK 0T3A== X-Gm-Message-State: AOAM530wPo4SW5w6bo0iU1+WLOhbCofxJDmT/bhYLbbhdqEVKEssG4QF ZjNlnSIg0yzUQG/f/RiHTiETubA8SUy941ymCI8CjgstmsU= X-Received: by 2002:a2e:6e13:: with SMTP id j19mr22336288ljc.116.1622574985372; Tue, 01 Jun 2021 12:16:25 -0700 (PDT) MIME-Version: 1.0 References: <20210521011239.1332345-1-nathan@kernel.org> <20210521011239.1332345-2-nathan@kernel.org> In-Reply-To: <20210521011239.1332345-2-nathan@kernel.org> From: Nick Desaulniers Date: Tue, 1 Jun 2021 12:16:14 -0700 Message-ID: Subject: Re: [PATCH 1/3] hexagon: Handle {,SOFT}IRQENTRY_TEXT in linker script To: Nathan Chancellor Cc: Brian Cain , Andrew Morton , "open list:QUALCOMM HEXAGON..." , LKML , clang-built-linux Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 20, 2021 at 6:13 PM Nathan Chancellor wrote: > > Patch "mm/slub: use stackdepot to save stack trace in objects" in -mm > selects CONFIG_STACKDEPOT when CONFIG_STACKTRACE_SUPPORT is selected and > CONFIG_STACKDEPOT requires IRQENTRY_TEXT and SOFTIRQENTRY_TEXT to be > handled after commit 505a0ef15f96 ("kasan: stackdepot: move > filter_irq_stacks() to stackdepot.c") due to the use of the > __{,soft}irqentry_text_{start,end} section symbols. If those sections > are not handled, the build is broken. > > $ make ARCH=hexagon CROSS_COMPILE=hexagon-linux- LLVM=1 LLVM_IAS=1 defconfig all > ... > ld.lld: error: undefined symbol: __irqentry_text_start > >>> referenced by stackdepot.c > >>> stackdepot.o:(filter_irq_stacks) in archive lib/built-in.a > >>> referenced by stackdepot.c > >>> stackdepot.o:(filter_irq_stacks) in archive lib/built-in.a > > ld.lld: error: undefined symbol: __irqentry_text_end > >>> referenced by stackdepot.c > >>> stackdepot.o:(filter_irq_stacks) in archive lib/built-in.a > >>> referenced by stackdepot.c > >>> stackdepot.o:(filter_irq_stacks) in archive lib/built-in.a > > ld.lld: error: undefined symbol: __softirqentry_text_start > >>> referenced by stackdepot.c > >>> stackdepot.o:(filter_irq_stacks) in archive lib/built-in.a > >>> referenced by stackdepot.c > >>> stackdepot.o:(filter_irq_stacks) in archive lib/built-in.a > > ld.lld: error: undefined symbol: __softirqentry_text_end > >>> referenced by stackdepot.c > >>> stackdepot.o:(filter_irq_stacks) in archive lib/built-in.a > >>> referenced by stackdepot.c > >>> stackdepot.o:(filter_irq_stacks) in archive lib/built-in.a > ... > > Add these sections to the Hexagon linker script so the build continues > to work. ld.lld's orphan section warning would have caught this prior to > the -mm commit mentioned above: > > ld.lld: warning: kernel/built-in.a(softirq.o):(.softirqentry.text) is being placed in '.softirqentry.text' > ld.lld: warning: kernel/built-in.a(softirq.o):(.softirqentry.text) is being placed in '.softirqentry.text' > ld.lld: warning: kernel/built-in.a(softirq.o):(.softirqentry.text) is being placed in '.softirqentry.text' > > Fixes: 505a0ef15f96 ("kasan: stackdepot: move filter_irq_stacks() to stackdepot.c") > Link: https://github.com/ClangBuiltLinux/linux/issues/1381 > Signed-off-by: Nathan Chancellor Thanks for the series, and sorry I didn't get around to reviewing before I took time off last week. Reviewed-by: Nick Desaulniers > --- > arch/hexagon/kernel/vmlinux.lds.S | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/hexagon/kernel/vmlinux.lds.S b/arch/hexagon/kernel/vmlinux.lds.S > index 35b18e55eae8..20f19539c5fc 100644 > --- a/arch/hexagon/kernel/vmlinux.lds.S > +++ b/arch/hexagon/kernel/vmlinux.lds.S > @@ -38,6 +38,8 @@ SECTIONS > .text : AT(ADDR(.text)) { > _text = .; > TEXT_TEXT > + IRQENTRY_TEXT > + SOFTIRQENTRY_TEXT > SCHED_TEXT > CPUIDLE_TEXT > LOCK_TEXT > -- > 2.32.0.rc0 > -- Thanks, ~Nick Desaulniers