Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp13779018pxu; Mon, 4 Jan 2021 04:23:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJwrwko1fKFfSPPTeXsI54QfaMy08UUFje6QGgrnO4nQssH4bt6FNTfKtSEhSxSMf+EJ8u+y X-Received: by 2002:a05:6402:513:: with SMTP id m19mr70546573edv.244.1609763011164; Mon, 04 Jan 2021 04:23:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609763011; cv=none; d=google.com; s=arc-20160816; b=vqOKBo1mO1dlmOdMqsdga19ASd+yhWUDpagJLdBO+yax1nojdMsP8IosbhYCwH42S1 g265TNR1j9TWNDRK8d48pGWBAW1SnoiNFzLA4WxFFyPDucfkSu9vHz8oJyNEqzWr+W1Z /CHMpfll+KsvSddPRZD0lG3d66DXd6AIJiKBFd6vN9vHyiMkkgZcWuzfpGWdV6NpR08v g5KHLFjpA/B8IEUkPjjt3oWAPiQ9EsCpga+yRhcftu3wV0lKOU0g2iAGQubiZpLDlEVD zJj876TLSteOlE/YUjVOq+8NmQJHTbS5KIVJYETxRNxG24IRF+xGmOARynqDzp0xjS0z rjTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:reply-to:cc:from:to :dkim-signature:date; bh=hjIccLTNrNOzUNrqAIbTw81FXVcf6wB+LAQsEABOGxY=; b=DXBywQD24UdwNMfwc98MYiawf6Quqlc+bFKWmWw0yz6YN7uv70QvkVsK/FbWFwf78I PRHMzJJAK2uMIENmX2C3Bnrk4qRHyU4B1nNDwovVOw5Z8k0hZybGvEFVnn21Hq4HXQEM z360rMrGn/ETPSBjSsNw1hzGoamMfLeHoGbmxcrTPqu49XPdkKlY/DAoi98dwx0lAfc7 TMGpiidRh/oVHyRdJkfl2Z8soDGE41vCq5NYCzMmNnXlKPXlUipUxyuvXjCY7FNHkmml 6mvrfkiJHERYW7pBiL3W8zmKAd49iP9kddgxHkHyyPE0yGdeIeowPhiYeybDTOZIVeLr kzHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=RQmaKRug; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ch17si31149122edb.430.2021.01.04.04.23.07; Mon, 04 Jan 2021 04:23:31 -0800 (PST) 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=@pm.me header.s=protonmail header.b=RQmaKRug; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726465AbhADMVh (ORCPT + 99 others); Mon, 4 Jan 2021 07:21:37 -0500 Received: from mail-40134.protonmail.ch ([185.70.40.134]:23850 "EHLO mail-40134.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726129AbhADMVf (ORCPT ); Mon, 4 Jan 2021 07:21:35 -0500 Date: Mon, 04 Jan 2021 12:20:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1609762851; bh=hjIccLTNrNOzUNrqAIbTw81FXVcf6wB+LAQsEABOGxY=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=RQmaKRugTD/OeHYkAjO46QoqnmWf4vDA/hVurOPWLM43feFjotxLEqLXf4SIdbdY0 GM0Jwqw3IuoKAmy8SPIi1f0sIA4ErhYws50NCN9yDJMeMAcGZwgyiODtDsVS1YDmVs uFPIxJoU0niqPvOVZJQS84du1doJ9mYeFrwoKTVXk8PIk85flTUYliB03ITyCuQm0f gSN00ogvn1rI7qWL1Ysru2P0GnpUAIboZt8Mm7TyhMmTke1erjEuujESu0p+1AfWy6 7Bg61m3T1YxJdawcNIyh3QZSCJmDSDmZVnWN8TjJ9Q0bvaCxDN1/rlVFI3PEfcwK2R Ikszf/9yWBGVQ== To: Thomas Bogendoerfer From: Alexander Lobakin Cc: Alexander Lobakin , Kees Cook , Ingo Molnar , Fangrui Song , Jiaxun Yang , Ralf Baechle , Alex Smith , Markos Chandras , linux-mips@vger.kernel.org, stable@vger.kernel.org, linux-kernel@vger.kernel.org Reply-To: Alexander Lobakin Subject: [PATCH mips-next 1/4] MIPS: vmlinux.lds.S: add missing PAGE_ALIGNED_DATA() section Message-ID: <20210104122016.47308-1-alobakin@pm.me> In-Reply-To: <20210104121729.46981-1-alobakin@pm.me> References: <20210104121729.46981-1-alobakin@pm.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org MIPS uses its own declaration of rwdata, and thus it should be kept in sync with the asm-generic one. Currently PAGE_ALIGNED_DATA() is missing from the linker script, which emits the following ld warnings: mips-alpine-linux-musl-ld: warning: orphan section `.data..page_aligned' from `arch/mips/kernel/vdso.o' being placed in section `.data..page_aligned' mips-alpine-linux-musl-ld: warning: orphan section `.data..page_aligned' from `arch/mips/vdso/vdso-image.o' being placed in section `.data..page_aligned' Add the necessary declaration, so the mentioned structures will be placed in vmlinux as intended: ffffffff80630580 D __end_once ffffffff80630580 D __start___dyndbg ffffffff80630580 D __start_once ffffffff80630580 D __stop___dyndbg ffffffff80634000 d mips_vdso_data ffffffff80638000 d vdso_data ffffffff80638580 D _gp ffffffff8063c000 T __init_begin ffffffff8063c000 D _edata ffffffff8063c000 T _sinittext -> ffffffff805a4000 D __end_init_task ffffffff805a4000 D __nosave_begin ffffffff805a4000 D __nosave_end ffffffff805a4000 d mips_vdso_data ffffffff805a8000 d vdso_data ffffffff805ac000 D mmlist_lock ffffffff805ac080 D tasklist_lock Fixes: ebb5e78cc634 ("MIPS: Initial implementation of a VDSO") Cc: stable@vger.kernel.org # 4.4+ Signed-off-by: Alexander Lobakin --- arch/mips/kernel/vmlinux.lds.S | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/kernel/vmlinux.lds.S b/arch/mips/kernel/vmlinux.lds.= S index 5e97e9d02f98..83e27a181206 100644 --- a/arch/mips/kernel/vmlinux.lds.S +++ b/arch/mips/kernel/vmlinux.lds.S @@ -90,6 +90,7 @@ SECTIONS =20 =09=09INIT_TASK_DATA(THREAD_SIZE) =09=09NOSAVE_DATA +=09=09PAGE_ALIGNED_DATA(PAGE_SIZE) =09=09CACHELINE_ALIGNED_DATA(1 << CONFIG_MIPS_L1_CACHE_SHIFT) =09=09READ_MOSTLY_DATA(1 << CONFIG_MIPS_L1_CACHE_SHIFT) =09=09DATA_DATA --=20 2.30.0