Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp608567pxb; Fri, 8 Jan 2021 13:13:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1U66mFd8hfRivJT+n6hi/loldD6/StXV6U+DGa3CyTo/l6FlVes49DVM2PQkNViY9J4g/ X-Received: by 2002:a17:906:5f92:: with SMTP id a18mr4042587eju.126.1610140389801; Fri, 08 Jan 2021 13:13:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610140389; cv=none; d=google.com; s=arc-20160816; b=DV53szNDVSZm9Qp2LdoBH+nSq9oeZPmaUsHkO0FgcYY/SmVbi3D+hLUSlgK3KtqQ3+ 745DsNeC9jgqATfoTqG4b07sSGTrM6RsSaCcsiaAZTKL8zSPCH/d5CY+5VPqfZ020woS e6CrV0/juhEmtfsIc5fwchG9Ay7CQfkptkR+bExZeM+X0ZQ4twK2ivZQa6Iy4+LruaaV L15OvaoJtibJR98u6mtqiS+X5BN3Ci47Ywh+XzPgg2TQNVxTGFH1Okoav8R08SL2xCpt NeJkOKIAOZTnLqpvG8eahBYwa3iN/E7O0NLFQGwlucebxe8V1qZ03jUH0FTRJP7gVGGa xmiw== 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=3JRySsR0y1lPgH/q9MB+jQS3iEkJKrJjNV+INCLiO5I=; b=VPxX3AxHcMoPRV/XnJrQcDJ0q69v45ZwYISadGkarvew8pH1xfErld/8f/K/SHegvA CpVjMUvm6aGsryrcY8IZIUaTVjjwuMlPY6wNSuO+4ot8TA/5tYTJnlmeYVI7tJd4CzWI 0u9NSSt8VPWprSM3xJFEnTUHPxKDtv8seqHU2KLnuTnn+gRoyQsh3R0szCclOZzBXTfV QmqasHaweQIESBxZoJsw/7IwJsshfbL2Rwtk3vCKWnP7jT0CDbXxeUIqWJ1Wk2Xh6Wca /NhZcw+GfbxDBmcqNxrw7QSE7mBpPaEYpLuRI0UQE2O2Qb0KJeDTq72kYaq70YXLsdKA 26OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jsZr5xv1; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c12si3737141ejb.751.2021.01.08.13.12.45; Fri, 08 Jan 2021 13:13:09 -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=@gmail.com header.s=20161025 header.b=jsZr5xv1; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729481AbhAHVLc (ORCPT + 99 others); Fri, 8 Jan 2021 16:11:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727325AbhAHVLb (ORCPT ); Fri, 8 Jan 2021 16:11:31 -0500 Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 673D3C061574; Fri, 8 Jan 2021 13:10:51 -0800 (PST) Received: by mail-qt1-x82c.google.com with SMTP id u21so7534840qtw.11; Fri, 08 Jan 2021 13:10:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=3JRySsR0y1lPgH/q9MB+jQS3iEkJKrJjNV+INCLiO5I=; b=jsZr5xv1oPiOpT3wN+5lQzceXP9kYYbPmyH95MvSX9XPNkxqoSk5pFsROFwPIwtt9b vvaW7/llwaT5bqK7+LxZgOLe7Xbgvxxs1j5gtqqYWD39dfE2EQqJcjSeMDDLKz3Nl6WP dlypl7DlRhz37s2Hc6Jd/KBlHPoMHZ1K1y6I7bFDEedgMc83M8yABuQYFYlB5ZGFVws/ jxrZdd4gIlGkr197Row3R4zX4Ly9L7eyatgVxYyIJJUrVxBBxmTW7pONHNalZB7+IlHm hwrDor75ekvoWYdYFxNCwi475/BguKoV6NYq9+miGhSdi2KKhZj0gTl5n5zRVD33lVGX JZhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=3JRySsR0y1lPgH/q9MB+jQS3iEkJKrJjNV+INCLiO5I=; b=FSd5m8x7cmeKOQQIP80t74J9RrxA+b8TPEk09NgkB4MqT4TPWZSgdLfWXQJDSu3V9U XG5wdl7KuHlmy2WeFxQzBaNKDmT/he3f71Oxqndr2uCjqW394viqXl4KNr6zej95xHNO 1Ax8R9/qf1OVmS/NORvo/GQkiqd39TAkbXRwrFfXAAZkp2IcSLDbHz22T3AmcSBJVu0W 4eIStqNSHsiOUmrTSYSK4Ak/0DorMdlryaYf/r0UOS5rxKywnn1tY9ZdBBhYre4ufP0b 4yiHyYKdm0I5qfT14SRAK6ICtPSOhckjoLHKcWTMELWuWKAscaylNAt+iUy6+ZWgHnLQ al9g== X-Gm-Message-State: AOAM533ahuKZiq06YDWSOHhV0V2aVJHRHaVt0ax6TZ9MliVK/OabuBMT k7eQ/SpchcoCKJu9vkT//8A= X-Received: by 2002:ac8:72c1:: with SMTP id o1mr2813356qtp.35.1610140250520; Fri, 08 Jan 2021 13:10:50 -0800 (PST) Received: from ubuntu-m3-large-x86 ([2604:1380:45f1:1d00::1]) by smtp.gmail.com with ESMTPSA id s186sm5517909qka.98.2021.01.08.13.10.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 13:10:49 -0800 (PST) Date: Fri, 8 Jan 2021 14:10:48 -0700 From: Nathan Chancellor To: Alexander Lobakin Cc: Thomas Bogendoerfer , Arnd Bergmann , Kees Cook , Nick Desaulniers , Fangrui Song , Huacai Chen , Pei Huang , Jiaxun Yang , Sami Tolvanen , Ingo Molnar , Ralf Baechle , Corey Minyard , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, stable@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH v4 mips-next 1/7] MIPS: vmlinux.lds.S: add missing PAGE_ALIGNED_DATA() section Message-ID: <20210108211048.GA2547542@ubuntu-m3-large-x86> References: <20210107123331.354075-1-alobakin@pm.me> <20210107123428.354231-1-alobakin@pm.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210107123428.354231-1-alobakin@pm.me> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 07, 2021 at 12:34:47PM +0000, Alexander Lobakin wrote: > 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 > Reviewed-by: Kees Cook Reviewed-by: Nathan Chancellor > --- > 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 > > INIT_TASK_DATA(THREAD_SIZE) > NOSAVE_DATA > + PAGE_ALIGNED_DATA(PAGE_SIZE) > CACHELINE_ALIGNED_DATA(1 << CONFIG_MIPS_L1_CACHE_SHIFT) > READ_MOSTLY_DATA(1 << CONFIG_MIPS_L1_CACHE_SHIFT) > DATA_DATA > -- > 2.30.0 > >