From patchwork Sun Jan 28 06:42:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13534382 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6E11EC47258 for ; Sun, 28 Jan 2024 06:42:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C07016B006E; Sun, 28 Jan 2024 01:42:47 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id BB7C56B0071; Sun, 28 Jan 2024 01:42:47 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AA6436B0072; Sun, 28 Jan 2024 01:42:47 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 98ADF6B006E for ; Sun, 28 Jan 2024 01:42:47 -0500 (EST) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 3BC5F1401E8 for ; Sun, 28 Jan 2024 06:42:47 +0000 (UTC) X-FDA: 81727776774.01.6D2593B Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf02.hostedemail.com (Postfix) with ESMTP id B46178001A for ; Sun, 28 Jan 2024 06:42:45 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=P4CUHIZ3; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf02.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1706424165; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=PFBwURZ2tsBfQVMpzpEYe3et/Ti0jtJevAlVyKLgTKc=; b=RIm+jFwigQ6boKBhfERgI/gUfkfMI/t+xQ9JD5OvVFTHbebSPSBxyM1h/TppBUD6WvxXqd IYxGGX+0TEj4HzUVztBt0IX0EmnE65G+0Oe114+qR0sZ4TcXCT1VqwImhd/50iAjPXhUeq T8i/kB55znjr1ob5z3oQZae9D8yxAdQ= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=P4CUHIZ3; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf02.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706424165; a=rsa-sha256; cv=none; b=02ZExPYuLOXUISw+MAGbiL3Wmp+qIfpLO685RfSZXZ2vzduTZTnBdCK3k+YoseT47RlVFj 5/CAeioh6ASexKHumMhHAsbxGrjJQL7RcmiCEcaRhj6QWDDP1X5wx3MRuk4vRr665cT6DA 9yHCk0tY4a5u8ADmKpdJNJ0WuZRndus= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id D3329617E5; Sun, 28 Jan 2024 06:42:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C12DC433F1; Sun, 28 Jan 2024 06:42:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706424163; bh=xjirCRNXK/DYvRDptj3SiekbTqyL+FF6cdOHmoxLv0Q=; h=Date:From:To:Cc:Subject:From; b=P4CUHIZ3G4QByLAch9O3JMJg8JjnXrKfHgBg85tdEK6FuKqf+PQSHLHJdw4pYKtdq UEofo6xjFv/yIb8KVMidUPVTTwK5fmRdh9Jur33k7lVaoDw45L3LAFRPs+97MrR7ka vOrU678ew7sr8fJF7B6DNBFDtR0GWhTkowuIQORFqmuR+1yMOWRbt0GOMgv20SLDOi fwQr5j/6YMkU+zEkj+KZ7qnhBIcueAvRyDkyAPYWLahj4cAOvult1EfTVLQguGix6t 0J+ZKH8jabB/76GyuLkqYlx79Cl6mwZ2ScNS3p0QscbBILKgawRsgJkNywuuz099WP 6xMU8rHbFv8SQ== Date: Sun, 28 Jan 2024 08:42:16 +0200 From: Mike Rapoport To: Linus Torvalds Cc: Mike Rapopoprt , Yajun Deng , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] memblock: fix crash when reserved memory is not added to memory Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Rspamd-Queue-Id: B46178001A X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: qgegpbgo136yyegff5ptkpchfrn1rfoo X-HE-Tag: 1706424165-30674 X-HE-Meta: U2FsdGVkX19wrIvgTVeOg5VK1SLrTov/sH2WWgq42YmdLhKClhj6kGqVGu2rP678HPfauVAy+A3s3xt1Dffz0TBTaqb9TRnlET0EkOINZa7nPIoezdxtCkjfyFAkKAmtXevWQRjQBYg70idXFJhUbcAOOQ9WwqABReb/fUqe437/Y92GtVI1aTH+aO9wXEdpWdYStvF/qFh6jDIHGO6zVt6IbuyPYEHz1s5MbDWzDjQsvHlSESAvbshRNOGCNybDEb1juCAbgOyCSwNMDzbeYspvPJrkf7EIWM409pEyJhNav/8IKMCg9j8nXrqP8iSrllABO9AlOgD3WGn11ykSlqDTrflB9zd3TOsVTvnLfOqrrGr8iNqwL9EtytLke7Tcv2nn6sKq+xG/itpDv0QmkbBYde60HzKHHkVGg0yWEn1i1qrfXE07t/bsW50amfVSFy6dNfnEqN9kbMUQOKqX3KC7bQ5ZAO71fI40Fi0IgySz4LWReS7tSDPtF5qrOZAflxN8bdbfr2NybRqU/o7bQZ6RKEVq//I4CgG1FXmJ1Fk+TfLvgklnmfmzW5PL4oUknisKQsFenBxn26Lj1mGGLOsWfg8pFQiDc2zZrHlLcg32P5cd4uhnd1NTfXIIOZ21TUG8jPwF0tTQoA0zn/tycKEsrLKZWnmE0VM+lumLBWBI8VLDNIo7Tdy6Yi9/ASOphgOZpljcRMb8N8cYj6ehEpdm6t9zdaMckHpwJaoEs6y38Me40z5s92PJoUJe9GQXdTHKU0f/0nZC7KeRZtKUc60oj7W4Mz+q/Ms0JGllcpQ7jvZqjsMK4QWH2oHXz/ZpCGjxCCkQUxKC4c+y67mNnzZCdrUpPXT1+iqLICjQRS3Ve29GVWM3UviharzsHUjUyarvyq9F/SHafSahfrZNPcRj24AO1Ju0scynakN4zbwK75EQlWjp/Y6j4yfp/5oVSZz8YLjLgEMsG7lMD1O UvmS/7g0 ziD0tS9WJ+G94X+nfD3blDAeYzLe+EyxYD0CEAjMWK6r2rjjbJ+wEX1tg1xE47wNP0HEYowi6+bH6/LviCf6gLfovm5ToWWT3K47ikECGNcYzh5eecMFo5+V2Md5qYhH9ka4WDPvu0xx7UI9TOMshGNHWR+KEajmTsPM6HtS/9nKB1ZfFsdXqHX2hOOj8awiQlmHJjvql6TqHO0s2sSyUk6+K5jxEIwHoBmGSLCWA28LGnpHU5rDEudIdsg== 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: List-Subscribe: List-Unsubscribe: Hi Linus, The following changes since commit 0dd3ee31125508cd67f7e7172247f05b7fd1753a: Linux 6.7 (2024-01-07 12:18:38 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock tags/fixes-2024-01-28 for you to fetch changes up to 6a9531c3a88096a26cf3ac582f7ec44f94a7dcb2: memblock: fix crash when reserved memory is not added to memory (2024-01-19 10:53:59 +0200) ---------------------------------------------------------------- memblock: fix crash when reserved memory is not added to memory When CONFIG_DEFERRED_STRUCT_PAGE_INIT is enabled, the initialization of reserved pages may cause access of NODE_DATA() with invalid nid and crash. Add a fall back to early_pfn_to_nid() in memmap_init_reserved_pages() to ensure a valid node id is always passed to init_reserved_page(). ---------------------------------------------------------------- Yajun Deng (1): memblock: fix crash when reserved memory is not added to memory mm/memblock.c | 3 +++ 1 file changed, 3 insertions(+)