From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 124BFC54EBE for ; Mon, 9 Jan 2023 14:38:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229694AbjAIOif (ORCPT ); Mon, 9 Jan 2023 09:38:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233446AbjAIOie (ORCPT ); Mon, 9 Jan 2023 09:38:34 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCD171CB1C; Mon, 9 Jan 2023 06:38:33 -0800 (PST) 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 sin.source.kernel.org (Postfix) with ESMTPS id 5788DCE0FBC; Mon, 9 Jan 2023 14:38:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6DCBC433F2; Mon, 9 Jan 2023 14:38:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673275110; bh=dOeSwMKGvRNuz4WJuRYWtXnG3/9WM48jAqD2wl4VfkQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Aj0vHOGgvle1zCfahAhr7spS9NcDdXwTm9CYuz/BwCs10p4bGGy5+i9/n734juKs+ 1P3ZyUSvpZx4yRKaa+zZX0HJuTcdOKL/G/6MPDkj+J8EoJnCSCAgnZKiy2WY/bXcbb GZGV4LQMzU5b53Nhr+p/KsW8x8OvEF8tN0QANWAR8tor7aiIZAe7n3f0pLlowZx/Ur 10DktQIHm41mtvwMavyrKF+uCH4vrZqHYrrvg26gE7DQN7xhEKWb1CW82LeZ/3XYKm q4XxXfOhlPZFn8Txy6xAf2JVlzmTBi6qEpvQzCz4iZaVHhjbR3N5u+qtPTfE6MdF3S JuWl5DFRVuvEw== Received: by mail-lf1-f49.google.com with SMTP id bu8so13280880lfb.4; Mon, 09 Jan 2023 06:38:30 -0800 (PST) X-Gm-Message-State: AFqh2kr5ODL5+NIzIQRXW0I3czI1Va5boqvzvgDsWe9MSchtoj9tpKFw SlCy0cHOvzRDteFG+xwSQIZ/Fp5dp7nWikwVlPA= X-Google-Smtp-Source: AMrXdXubWmp42AOnDDbvW893PnJh//psRIvKXySJgdZx2yOjMVMItn35U11hxuSFGhah+kWcS/UtCIYYozqISObsYwk= X-Received: by 2002:ac2:5e65:0:b0:4a2:740b:5b02 with SMTP id a5-20020ac25e65000000b004a2740b5b02mr2602735lfr.122.1673275108696; Mon, 09 Jan 2023 06:38:28 -0800 (PST) MIME-Version: 1.0 References: <63bc16ce.IBWX7dhtPEB7dLIq%lkp@intel.com> In-Reply-To: <63bc16ce.IBWX7dhtPEB7dLIq%lkp@intel.com> From: Ard Biesheuvel Date: Mon, 9 Jan 2023 15:38:17 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [linux-next:master] BUILD REGRESSION 543b9b2fe10b2e12b8d773af65314d322f91e479 To: kernel test robot Cc: Andrew Morton , speakup@linux-speakup.org, linux-usb@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, Linux Memory Management List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On Mon, 9 Jan 2023 at 14:31, kernel test robot wrote: > > tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > branch HEAD: 543b9b2fe10b2e12b8d773af65314d322f91e479 Add linux-next specific files for 20230109 > > Error/Warning: (recently discovered and may have been fixed) > > aarch64-linux-ld: ID map text too big or misaligned This is caused by linker veneers ('stubs') that are emitted into the ID map text section: *(.idmap.text) .idmap.text 0xffffffc018c04000 0x38 arch/arm64/kernel/hyp-stub.o .idmap.text 0xffffffc018c04038 0x28 arch/arm64/kernel/sleep.o 0xffffffc018c04038 cpu_resume .idmap.text 0xffffffc018c04060 0x38 arch/arm64/kernel/cpu-reset.o 0xffffffc018c04060 cpu_soft_restart .idmap.text 0xffffffc018c04098 0x468 arch/arm64/kernel/head.o 0xffffffc018c04098 init_kernel_el 0xffffffc018c04290 secondary_holding_pen 0xffffffc018c042c8 secondary_entry 0xffffffc018c043c4 __enable_mmu 0xffffffc018c0440c __cpu_secondary_check52bitva .idmap.text 0xffffffc018c04500 0x3c4 arch/arm64/mm/proc.o 0xffffffc018c04500 cpu_do_resume 0xffffffc018c045a8 idmap_cpu_replace_ttbr1 0xffffffc018c045d4 idmap_kpti_install_ng_mappings 0xffffffc018c047bc __cpu_setup *fill* 0xffffffc018c048c4 0x4 .idmap.text.stub 0xffffffc018c048c8 0xf7c8 linker stubs 0xffffffc018c1c8c8 __idmap_text_end = . It seems unlikely that the entire .idmap.text.stub section is dedicated to veneers for code in .idmap.text, and the linker probably dumps them here because the next output section is non-executable. I have patches on the list that move the ID map out of the .text section altogether (among other things) and this seems like a suitable workaround for this issue as well. https://lore.kernel.org/all/20221129161418.1968319-3-ardb@kernel.org/ From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2CB94C5479D for ; Mon, 9 Jan 2023 14:38:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CC00D10E05C; Mon, 9 Jan 2023 14:38:33 +0000 (UTC) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by gabe.freedesktop.org (Postfix) with ESMTPS id CD4B310E05C for ; Mon, 9 Jan 2023 14:38:31 +0000 (UTC) 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 39ED061175 for ; Mon, 9 Jan 2023 14:38:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A97EC433EF for ; Mon, 9 Jan 2023 14:38:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673275110; bh=dOeSwMKGvRNuz4WJuRYWtXnG3/9WM48jAqD2wl4VfkQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Aj0vHOGgvle1zCfahAhr7spS9NcDdXwTm9CYuz/BwCs10p4bGGy5+i9/n734juKs+ 1P3ZyUSvpZx4yRKaa+zZX0HJuTcdOKL/G/6MPDkj+J8EoJnCSCAgnZKiy2WY/bXcbb GZGV4LQMzU5b53Nhr+p/KsW8x8OvEF8tN0QANWAR8tor7aiIZAe7n3f0pLlowZx/Ur 10DktQIHm41mtvwMavyrKF+uCH4vrZqHYrrvg26gE7DQN7xhEKWb1CW82LeZ/3XYKm q4XxXfOhlPZFn8Txy6xAf2JVlzmTBi6qEpvQzCz4iZaVHhjbR3N5u+qtPTfE6MdF3S JuWl5DFRVuvEw== Received: by mail-lf1-f44.google.com with SMTP id f34so13245343lfv.10 for ; Mon, 09 Jan 2023 06:38:30 -0800 (PST) X-Gm-Message-State: AFqh2ko9sOzmvyFCwyN1e52A1I94mCxtuQxrKOcBJlnvI8v2o92JknEo avv93RzsjLBHSqu1BAIJZCgE/nEKqi0uRn5QmWM= X-Google-Smtp-Source: AMrXdXubWmp42AOnDDbvW893PnJh//psRIvKXySJgdZx2yOjMVMItn35U11hxuSFGhah+kWcS/UtCIYYozqISObsYwk= X-Received: by 2002:ac2:5e65:0:b0:4a2:740b:5b02 with SMTP id a5-20020ac25e65000000b004a2740b5b02mr2602735lfr.122.1673275108696; Mon, 09 Jan 2023 06:38:28 -0800 (PST) MIME-Version: 1.0 References: <63bc16ce.IBWX7dhtPEB7dLIq%lkp@intel.com> In-Reply-To: <63bc16ce.IBWX7dhtPEB7dLIq%lkp@intel.com> From: Ard Biesheuvel Date: Mon, 9 Jan 2023 15:38:17 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [linux-next:master] BUILD REGRESSION 543b9b2fe10b2e12b8d773af65314d322f91e479 To: kernel test robot Content-Type: text/plain; charset="UTF-8" X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, speakup@linux-speakup.org, dri-devel@lists.freedesktop.org, Linux Memory Management List , Andrew Morton , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Mon, 9 Jan 2023 at 14:31, kernel test robot wrote: > > tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > branch HEAD: 543b9b2fe10b2e12b8d773af65314d322f91e479 Add linux-next specific files for 20230109 > > Error/Warning: (recently discovered and may have been fixed) > > aarch64-linux-ld: ID map text too big or misaligned This is caused by linker veneers ('stubs') that are emitted into the ID map text section: *(.idmap.text) .idmap.text 0xffffffc018c04000 0x38 arch/arm64/kernel/hyp-stub.o .idmap.text 0xffffffc018c04038 0x28 arch/arm64/kernel/sleep.o 0xffffffc018c04038 cpu_resume .idmap.text 0xffffffc018c04060 0x38 arch/arm64/kernel/cpu-reset.o 0xffffffc018c04060 cpu_soft_restart .idmap.text 0xffffffc018c04098 0x468 arch/arm64/kernel/head.o 0xffffffc018c04098 init_kernel_el 0xffffffc018c04290 secondary_holding_pen 0xffffffc018c042c8 secondary_entry 0xffffffc018c043c4 __enable_mmu 0xffffffc018c0440c __cpu_secondary_check52bitva .idmap.text 0xffffffc018c04500 0x3c4 arch/arm64/mm/proc.o 0xffffffc018c04500 cpu_do_resume 0xffffffc018c045a8 idmap_cpu_replace_ttbr1 0xffffffc018c045d4 idmap_kpti_install_ng_mappings 0xffffffc018c047bc __cpu_setup *fill* 0xffffffc018c048c4 0x4 .idmap.text.stub 0xffffffc018c048c8 0xf7c8 linker stubs 0xffffffc018c1c8c8 __idmap_text_end = . It seems unlikely that the entire .idmap.text.stub section is dedicated to veneers for code in .idmap.text, and the linker probably dumps them here because the next output section is non-executable. I have patches on the list that move the ID map out of the .text section altogether (among other things) and this seems like a suitable workaround for this issue as well. https://lore.kernel.org/all/20221129161418.1968319-3-ardb@kernel.org/ From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2047EC5479D for ; Mon, 9 Jan 2023 14:39:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hMvvwngQ6Z+2LNeyvoxmKeUSv5oeU0kDFazmZMvEcpg=; b=4FcZA4gT6ZCumn boCiG4POvuwe36fgsptwdaE51C3m5N8ddkyL5QqZ9qUy68alffcx27Iyjsn40e71lTJk/8vk7oNys PLXyOYJEdheDPyjz9Kvccv8wbh9y+hlhV341aaJCoRKzzpA9zn7pcIDcqqcuoUtiHVhqiinkq7Zwz V+vN+2j8dBPbez7249mnATDsmk/cIhlnswc1VS9Sfkx8rmK+IIg4oM1Na1ENI9gLspc2AZQvWQyFU GgD7ewZxHk0WuQyZPMgNgXK+ffIgnYMQFSn8air77M85uKKexzon9BOjG3eIcT/OTLml34i9T/4EF Ft6U97K7G134S3p7nxoQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pEtIQ-002142-2P; Mon, 09 Jan 2023 14:38:42 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pEtII-00211i-H4 for linux-arm-kernel@lists.infradead.org; Mon, 09 Jan 2023 14:38:36 +0000 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 sin.source.kernel.org (Postfix) with ESMTPS id 62CBBCE0FCB for ; Mon, 9 Jan 2023 14:38:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A90AFC43392 for ; Mon, 9 Jan 2023 14:38:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673275110; bh=dOeSwMKGvRNuz4WJuRYWtXnG3/9WM48jAqD2wl4VfkQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Aj0vHOGgvle1zCfahAhr7spS9NcDdXwTm9CYuz/BwCs10p4bGGy5+i9/n734juKs+ 1P3ZyUSvpZx4yRKaa+zZX0HJuTcdOKL/G/6MPDkj+J8EoJnCSCAgnZKiy2WY/bXcbb GZGV4LQMzU5b53Nhr+p/KsW8x8OvEF8tN0QANWAR8tor7aiIZAe7n3f0pLlowZx/Ur 10DktQIHm41mtvwMavyrKF+uCH4vrZqHYrrvg26gE7DQN7xhEKWb1CW82LeZ/3XYKm q4XxXfOhlPZFn8Txy6xAf2JVlzmTBi6qEpvQzCz4iZaVHhjbR3N5u+qtPTfE6MdF3S JuWl5DFRVuvEw== Received: by mail-lf1-f44.google.com with SMTP id v25so13241916lfe.12 for ; Mon, 09 Jan 2023 06:38:30 -0800 (PST) X-Gm-Message-State: AFqh2kqSjbywZXWfdyDQTG6rXGoJ89eJJxWQMuDNRZ4Ma240PpYgBZdX wup2wOOAl5Qo2gGprOWHaRcK0+lSWERZYXG5ypw= X-Google-Smtp-Source: AMrXdXubWmp42AOnDDbvW893PnJh//psRIvKXySJgdZx2yOjMVMItn35U11hxuSFGhah+kWcS/UtCIYYozqISObsYwk= X-Received: by 2002:ac2:5e65:0:b0:4a2:740b:5b02 with SMTP id a5-20020ac25e65000000b004a2740b5b02mr2602735lfr.122.1673275108696; Mon, 09 Jan 2023 06:38:28 -0800 (PST) MIME-Version: 1.0 References: <63bc16ce.IBWX7dhtPEB7dLIq%lkp@intel.com> In-Reply-To: <63bc16ce.IBWX7dhtPEB7dLIq%lkp@intel.com> From: Ard Biesheuvel Date: Mon, 9 Jan 2023 15:38:17 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [linux-next:master] BUILD REGRESSION 543b9b2fe10b2e12b8d773af65314d322f91e479 To: kernel test robot Cc: Andrew Morton , speakup@linux-speakup.org, linux-usb@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, Linux Memory Management List X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230109_063834_970232_FA492EA5 X-CRM114-Status: GOOD ( 12.76 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, 9 Jan 2023 at 14:31, kernel test robot wrote: > > tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > branch HEAD: 543b9b2fe10b2e12b8d773af65314d322f91e479 Add linux-next specific files for 20230109 > > Error/Warning: (recently discovered and may have been fixed) > > aarch64-linux-ld: ID map text too big or misaligned This is caused by linker veneers ('stubs') that are emitted into the ID map text section: *(.idmap.text) .idmap.text 0xffffffc018c04000 0x38 arch/arm64/kernel/hyp-stub.o .idmap.text 0xffffffc018c04038 0x28 arch/arm64/kernel/sleep.o 0xffffffc018c04038 cpu_resume .idmap.text 0xffffffc018c04060 0x38 arch/arm64/kernel/cpu-reset.o 0xffffffc018c04060 cpu_soft_restart .idmap.text 0xffffffc018c04098 0x468 arch/arm64/kernel/head.o 0xffffffc018c04098 init_kernel_el 0xffffffc018c04290 secondary_holding_pen 0xffffffc018c042c8 secondary_entry 0xffffffc018c043c4 __enable_mmu 0xffffffc018c0440c __cpu_secondary_check52bitva .idmap.text 0xffffffc018c04500 0x3c4 arch/arm64/mm/proc.o 0xffffffc018c04500 cpu_do_resume 0xffffffc018c045a8 idmap_cpu_replace_ttbr1 0xffffffc018c045d4 idmap_kpti_install_ng_mappings 0xffffffc018c047bc __cpu_setup *fill* 0xffffffc018c048c4 0x4 .idmap.text.stub 0xffffffc018c048c8 0xf7c8 linker stubs 0xffffffc018c1c8c8 __idmap_text_end = . It seems unlikely that the entire .idmap.text.stub section is dedicated to veneers for code in .idmap.text, and the linker probably dumps them here because the next output section is non-executable. I have patches on the list that move the ID map out of the .text section altogether (among other things) and this seems like a suitable workaround for this issue as well. https://lore.kernel.org/all/20221129161418.1968319-3-ardb@kernel.org/ _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel