Message ID | 961336afce7a10ecc4e68021246772ee239dbc84.1639736449.git.christophe.leroy@csgroup.eu (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59613C433FE for <linux-mm@archiver.kernel.org>; Fri, 17 Dec 2021 10:27:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 829506B0072; Fri, 17 Dec 2021 05:27:25 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7D8CF6B0073; Fri, 17 Dec 2021 05:27:25 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 678F76B0075; Fri, 17 Dec 2021 05:27:25 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0240.hostedemail.com [216.40.44.240]) by kanga.kvack.org (Postfix) with ESMTP id 5A9C56B0072 for <linux-mm@kvack.org>; Fri, 17 Dec 2021 05:27:25 -0500 (EST) Received: from smtpin10.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 2850D180C3C7E for <linux-mm@kvack.org>; Fri, 17 Dec 2021 10:27:15 +0000 (UTC) X-FDA: 78926908830.10.F807D27 Received: from FRA01-PR2-obe.outbound.protection.outlook.com (mail-eopbgr120043.outbound.protection.outlook.com [40.107.12.43]) by imf23.hostedemail.com (Postfix) with ESMTP id C0BC5140007 for <linux-mm@kvack.org>; Fri, 17 Dec 2021 10:27:09 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BMxZbEfypzPbtFeuUbtPzv5luCgATwjuBTfmKnDwwM4eUGZSWpMNS+WVzU0vSy2XABbZvP+MgRIoi3JFqPQgCudo3Omu2+IEybRqvtm27enndJHnvqMkde3JxGk170OrFXSDQMLr4fD+6Mqmd5RS5QE7vhVB48hxgn11QYdWXYJ0YN02DZGYLgQqOj9y1Ldc7r9qcEKCV5dPeZ7giKwUMXpgpPAWO5pw0DoOQdkGOzoCMf5IGBLsfGY5RVufl5wwnbw2TbG8rri9PLX++pjzM5NxdNKIAEf9genITGFCDjqrczIO0bL06kQQmiOa62ts4Cl/4je52CQ3WhtxAlXBNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=CecWjS/2UZ0IgcjyZ1BNFW6PGMsjPsk8NnvtJJ1/fvs=; b=bU91vGVLNDC/cJIkU4aoC5YXIX9jaJc/9FZqJfNMya9YeeouS2dGu711uaiyEjBwmxQT3og0fIB14p5L5mitqqEPjC7uhrDw5zEev8HiALDfzYHlQochJNKn2wgX464GpEi1yvw8mI1sG+l1h34vd+K/K8L1rgRfczhNpxQduiU67fgZRem7vaGtuKGzs5jxjHCT+iQvncC4K43uh8d/qFw7HFZ7g4e9GiwSQOVk/YRrne56of1FRyy9Q4SfwbGXpaako0FA1Z/SEBSchVRESR+YW5UT2v8riA9twzVbvw0NCsmt3E8EZ/RsmpCAXENxjiZJ4fPtr+Q+XwriUd6G0A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=csgroup.eu; dmarc=pass action=none header.from=csgroup.eu; dkim=pass header.d=csgroup.eu; arc=none Received: from MRZP264MB2988.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:31::15) by MR1P264MB1650.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:4::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4801.14; Fri, 17 Dec 2021 10:27:12 +0000 Received: from MRZP264MB2988.FRAP264.PROD.OUTLOOK.COM ([fe80::f0ef:856d:b0de:e85d]) by MRZP264MB2988.FRAP264.PROD.OUTLOOK.COM ([fe80::f0ef:856d:b0de:e85d%5]) with mapi id 15.20.4801.016; Fri, 17 Dec 2021 10:27:12 +0000 From: Christophe Leroy <christophe.leroy@csgroup.eu> To: Benjamin Herrenschmidt <benh@kernel.crashing.org>, Paul Mackerras <paulus@samba.org>, Michael Ellerman <mpe@ellerman.id.au>, "alex@ghiti.fr" <alex@ghiti.fr> CC: Christophe Leroy <christophe.leroy@csgroup.eu>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>, "linux-mm@kvack.org" <linux-mm@kvack.org>, "akpm@linux-foundation.org" <akpm@linux-foundation.org>, "catalin.marinas@arm.com" <catalin.marinas@arm.com>, "will@kernel.org" <will@kernel.org>, "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org> Subject: [PATCH v6 01/14] mm: Allow arch specific arch_randomize_brk() with CONFIG_ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT Thread-Topic: [PATCH v6 01/14] mm: Allow arch specific arch_randomize_brk() with CONFIG_ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT Thread-Index: AQHX8zCnim+p7d3b7kiUzSRQ/JQFWg== Date: Fri, 17 Dec 2021 10:27:12 +0000 Message-ID: <961336afce7a10ecc4e68021246772ee239dbc84.1639736449.git.christophe.leroy@csgroup.eu> References: <cover.1639736449.git.christophe.leroy@csgroup.eu> In-Reply-To: <cover.1639736449.git.christophe.leroy@csgroup.eu> Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: bfd3f856-e459-4158-e969-08d9c147ca29 x-ms-traffictypediagnostic: MR1P264MB1650:EE_ x-microsoft-antispam-prvs: <MR1P264MB165075A48BBD0328A6ACBF43ED789@MR1P264MB1650.FRAP264.PROD.OUTLOOK.COM> x-ms-oob-tlc-oobclassifiers: OLM:2657; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: u+LQySCTDHRNJeZjhfaPP4s9owXtB63M8KdYl01v0Y5D0Xdipu9ip/F14j0Pcc41VOskYw2KYkzNjROoVMrUGVsDTiU1DXA+l6ITl/o8lrcQGT5lvx3ZidTzGU5QQTbu7fNc3N0/qQLh2JUOmbVjq/QtkYhNJOu+B4kbru2AY3qEqJkHVwTYr3VokHTvsARmfd4EPYTL0Fi8H16GaYKgdnqN839lZDMX3k4Y/PnZkSRLmvveWZaco4754wiLvLr6MxYLH0v0zqabf2JzrHwy3BALN1qKX1z2Wp9CMoyrq/UCPe5+ApSjoKH+jgL3Rvhb/oPwjn3cSsccSw8LMon+u8SUxseq6yP5hd3ipCPEIRHrZSFGwWMk0SgbOoxeJvrccAmcQAErvuxloXTmPiEv+3wIOj2iYENRpGmpXZTRuh9B3/IZyZ5B6nsDLFXXEYOGiKjvC0W6dp2o1ZQ/gOHZ1+GaT9IdK6rsZEykhwUJVsnlJrmcmll3jytUD7/SUOzV1wNHKFzUMXSPsDBdHPIw5bgzQ3YfIm+bL8GgBbFe32wPlRPPIYwRzZ/V/9L+3sjVi8+km5kxZ1c74Ycr7icO3gcKBK7laZM3BSJvBHrU+RCP958+Abr3palCSTAjIHDtF1vgnEx/gP+fNYa+Fdrifciy36oi+ioBxs/UirTay4elEEeZQKWUkpCoT4LI+y1CAHF2IIt++EjqUrwXC+12/Q== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MRZP264MB2988.FRAP264.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(4636009)(366004)(8936002)(2906002)(6486002)(6512007)(8676002)(83380400001)(122000001)(36756003)(6506007)(186003)(86362001)(26005)(38070700005)(44832011)(76116006)(66476007)(64756008)(4744005)(66556008)(5660300002)(38100700002)(66446008)(2616005)(91956017)(66946007)(4326008)(508600001)(316002)(71200400001)(54906003)(7416002)(110136005);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?CVQNfgrEK10QPVeKAs8up0j?= =?iso-8859-1?q?6Z96hI6RTenzMgnWmludv9hr2yLBRAB5Pii7Tb9Swp6bmArg1tUJVgXeOYTz?= =?iso-8859-1?q?YXrSWQrIlbGE+OVa65fONCv4cN07NDAyI3XzpaFVVCIXJv2RRAifwP7/EshN?= =?iso-8859-1?q?qkjYIDZpldi12ZQ9oQhgJUeInD9W1aBJL6lMwih8sCn0sSc7XN1EVPTgbVF1?= =?iso-8859-1?q?eLKbjCmbibFguBHCLpjplL0kq+xevLB0ObzHkmkL78YpmK7mQPl1MuGM3k2A?= =?iso-8859-1?q?KWHs1rhug4pCkJgXotZ6dxKpfgB4xlzvfSS9aFzOWnwpZtKlnPPlsw7eBg5Y?= =?iso-8859-1?q?8WjTOF8wd0+5JG/jSPtSk5hhEP3k/+jhxEEs+byC+bSgoETRtHeSJUdlufbw?= =?iso-8859-1?q?1S6OywOQa0EOGPaM0eqQaVRJ3sOGb8Kcn5yKVUlP0tlyo5SoJiHU9SAQdK+n?= =?iso-8859-1?q?2cvk8TffY5taaqFNUUdexVGBR+7OzgQRs/XIObTQJZ9G0toEiAGoAQZI/riJ?= =?iso-8859-1?q?PCca93YzRuW++VU3Gb3xAwoKQOhb7lTn16WlJR+GgywHB2HqHVFWYSnw/uR2?= =?iso-8859-1?q?qMSy+SOb1gDkvveI108xaqiYRmeob/25tENEf3UdF2Nf0xPwQ3C/4zJKKWEH?= =?iso-8859-1?q?M8uujVVegiTFE+zL/23pBEQojvc2Ilxa/r94/qybuK1AdndlizWORaVbAeqE?= =?iso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AXvWJV4jg1gueLEIRiOmKCy9lqn0ktjel9awu46?= =?iso-8859-1?q?+8wUZbEVuOACRevzHNlNFBciSDIAxqIWgOoLaXgJfVBjthEwTSG2QEOnaa4+?= =?iso-8859-1?q?17vR4GmI29az7kf3Xo4t5wWMX6XhV5GsR4hqwBvIkiBbESjcQNcMLk4UCR+M?= =?iso-8859-1?q?ZBdk=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: csgroup.eu X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MRZP264MB2988.FRAP264.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: bfd3f856-e459-4158-e969-08d9c147ca29 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Dec 2021 10:27:12.7750 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 9914def7-b676-4fda-8815-5d49fb3b45c8 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: EZsXb5ci4oq4wk8NdrZT7wUfX/Eu2tsN8zPzDBq1am8ZjXVlnBhFaJNvhR/kejEJ7J8G3a3fW50oO6zTIvAahcAfeJdT3o7dzG2gdoqdNLg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MR1P264MB1650 X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: C0BC5140007 X-Stat-Signature: ye7poux8zrx1opjejz5mak4ocnqtpood Authentication-Results: imf23.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf23.hostedemail.com: domain of christophe.leroy@csgroup.eu designates 40.107.12.43 as permitted sender) smtp.mailfrom=christophe.leroy@csgroup.eu X-HE-Tag: 1639736829-108487 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
Convert powerpc to default topdown mmap layout
|
expand
|
diff --git a/mm/util.c b/mm/util.c index 741ba32a43ac..46d1a2dd7a32 100644 --- a/mm/util.c +++ b/mm/util.c @@ -344,7 +344,7 @@ unsigned long randomize_stack_top(unsigned long stack_top) } #ifdef CONFIG_ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT -unsigned long arch_randomize_brk(struct mm_struct *mm) +unsigned long __weak arch_randomize_brk(struct mm_struct *mm) { /* Is the current task 32bit ? */ if (!IS_ENABLED(CONFIG_64BIT) || is_compat_task())
Commit e7142bf5d231 ("arm64, mm: make randomization selected by generic topdown mmap layout") introduced a default version of arch_randomize_brk() provided when CONFIG_ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT is selected. powerpc could select CONFIG_ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT but needs to provide its own arch_randomize_brk(). In order to allow that, define generic version of arch_randomize_brk() as a __weak symbol. Cc: Alexandre Ghiti <alex@ghiti.fr> Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> --- mm/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)