Message ID | 961336afce7a10ecc4e68021246772ee239dbc84.1639736449.git.christophe.leroy@csgroup.eu (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 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 DD2E1C433EF for <linux-arm-kernel@archiver.kernel.org>; Fri, 17 Dec 2021 10:29:16 +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:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=cZ4ZuaFAyFjMgAcd0UYu7K07+biq/Ru2ylRUizk9Tlg=; b=LPTRjX8J6Qqkwr 8AL1uAxjZC90zfI1Jn+hzlkoDWEWYt3aCe8iKkXgILqaaacm824MF3ObKha8S0MA8mNyd+vZ5HacZ KbYT3tu8Km3L2aUWDonHF7dTvm0u97uhpvUhqFZfiimod0MaXQusNlXLCrdHWerdSVJU7MmvnAvjk XvsVJktlJ9LO9Z0aCiSKZN/h9b+0+cJXwk9HpsO+gdmpiju1Kw6JQi2qtYIcByGrlH1tCGh4Bqv62 YghaBXTnf+XsmhTPK8X+m55PXVYT88iw1olMaCH1WTg52A1EAnIIcv6x0oHyaL4Gowho+nio56hzt 47lssgtz+toBpboHl6ag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1myASb-009UFJ-Ci; Fri, 17 Dec 2021 10:27:33 +0000 Received: from mail-pr2fra01on0600.outbound.protection.outlook.com ([2a01:111:f400:7e18::600] helo=FRA01-PR2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1myASP-009UBM-BF for linux-arm-kernel@lists.infradead.org; Fri, 17 Dec 2021 10:27:22 +0000 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: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=csgroup.eu; 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-8859-1?q?mOXA0NeZdVLKfvb/uM3Y+xtt/HYuyS3Vq/2O39enVU1AbZ+kgGaxAgzi0b1n?= =?iso-8859-1?q?ZU0dSLxPKK3eu6IbF2PZfPYzzbdhEPNUGzEvotRWQAVDAGtj2hYUXyBwr76P?= =?iso-8859-1?q?aBgwch8W5u7hH49dNfdSN/5dx6nVxhF+9MH6FbezAU3p+EsL9EhymKi32IJb?= =?iso-8859-1?q?6ETp/wj8c+5NFJrq3vdRyvFtlBtKZKsmbufMXTV4aiogykw891ZgNYAquDdM?= =?iso-8859-1?q?6eAJu5xnZV7PgwAwbl9AcXfX6qARAI06Dd2U5IyheB20zxlzFo11UDA0tb+Y?= =?iso-8859-1?q?GytSiSYTeyQfmfnzonIu4xScb4L27uAee1Cfnuybd6kvYL8ukhQJXZp1n6um?= =?iso-8859-1?q?WoH34F4cO+9f6cVLV76PMZVTaqzXkV0O8Ssst7JYAoJKqBGmWB3/jxhDxQE/?= =?iso-8859-1?q?/za7Bvaup3GxCEjxcsvuSClSs08XiYCuXfjlmxY7xMgMl4FxvPassxGWuhFT?= =?iso-8859-1?q?HqhS4JB3swnklXSK76YvpA3zfo9sER/t8uB/MYGDAkzUCqAY1RRGcbF+Zyg+?= =?iso-8859-1?q?M2LbFd2E+WSAdhHio8qRm7IS2oDO7+/KjZcetDVfEG3q2jvPt5Hu9ijaUt75?= =?iso-8859-1?q?Gmae0gI1ZsjJD2ZO6rm3R/V2FkWG4LrTL+Sqsjo5j89s8O2SKJD0Sxp99W9O?= =?iso-8859-1?q?LOS0N8lx+xRIGnbn0Ys3fRDWxldpJeYrObS5jQSmXQg53/XHFWHjhzGSzPZy?= =?iso-8859-1?q?iSNJaW/qugI3MdHPPt3T5K18opm/vD4NrjBR09XApIccKu2Bt88Nu3rBqRTO?= =?iso-8859-1?q?vmqnX97lp+CVANsSeQbFo1aOdRiLdenX4aMMZ7cbcc2H5qrlEyFNfKFh9pG7?= =?iso-8859-1?q?luU2+9GPa05p/ig19ogmFAXvWJV4jg1gueLEIRiOmKCy9lqn0ktjel9awu46?= =?iso-8859-1?q?+8wUZbEVuOACRevzHNlNFBciSDIAxqIWgOoLaXgJfVBjthEwTSG2QEOnaa4+?= =?iso-8859-1?q?17vR4GmI29az7kf3Xo4t5wWMX6XhV5GsR4hqwBvIkiBbESjcQNcMLk4UCR+M?= =?iso-8859-1?q?ZBdk=3D?= 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211217_022721_410608_340A463F X-CRM114-Status: UNSURE ( 9.63 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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(-)