Message ID | 20230727045831.GB1901145@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp867955vqo; Wed, 26 Jul 2023 22:40:09 -0700 (PDT) X-Google-Smtp-Source: APBJJlHsoIttmXGz84A/s/B4ydsuJrWQ17i0TiTYs147k5dF/S4obL2SXnYWlT2R28WHJuOrZBT9 X-Received: by 2002:a17:903:2288:b0:1bb:c69b:6f6b with SMTP id b8-20020a170903228800b001bbc69b6f6bmr5108116plh.6.1690436409070; Wed, 26 Jul 2023 22:40:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690436409; cv=none; d=google.com; s=arc-20160816; b=iDGHTr8r0AoLaRnR5RLe1guh2q6swslj0BTWhie6qzgFkfIrD4IRbOK7o9EJA0nVgY zHh68C7e/1VAviTxsARo9CMjP539va1RrvjSNZbY4PZc50obA7kZ+sZNcgDmlhVxcE8F YzsJjxVa/yZun7TlbgTjyYZWUPFuBBNzuYe1zJ2dJV9QYyUMewZCDk7nRQn+ovphZoYh 0rPc1LE81DAsuSUK1cKVPfyfD0tLbPGpGld3vwp7gOewssrBLSF5Lc8yfcAirOkGrZ/i 1UxwZ8qP/x7ZdmPLoATHAi3fKRuQOELfKDZ9XIZBIDmBxKdWsB2n4cdvoOzmB1r24ZXm 9BcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=13eapLMbdNZ7fvebi6P7UJIcQyxVB+Q/MG0aOqnfxwo=; fh=aERS7UhNCg5VDO9Zv+DFEWtPOgX18bF4gUQzl2OCm74=; b=wiseWjfQ7lIElzM7r4VF/XrtDfEU9MbHSkKP2mp4mW7l9FEjUT15txdxPnALoLdTgy GuL3CfoaHzOSa4JHHjhL8fpBx43MGIngtSJiLnd48MEQAdP4fGKHTOO+NI9rm/mTstgQ LYaJ0oeOvLEu5ay5A3hpAnoU5qUt/mrC4N4KTPjMIKx37doiIsBlLx3AjWStMUis57Ol DiaUKcg/5btdxcVZm/KmZLH2VjwlnI3trtgVEEvzHwrmujqwxTIsEI22IJYpYMrM0Reo kSKNZK3PPJMfCh8x6wiCRX+HNIb3mZN03jnYOg7VMguIWUTWqLLLQbwzL04h/3UatMNV gnww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=js8a6UH9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ci15-20020a17090afc8f00b0026823d86469si791878pjb.24.2023.07.26.22.39.55; Wed, 26 Jul 2023 22:40:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=js8a6UH9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230431AbjG0E7K (ORCPT <rfc822;kloczko.tomasz@gmail.com> + 99 others); Thu, 27 Jul 2023 00:59:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229820AbjG0E7I (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 27 Jul 2023 00:59:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C2AAE47 for <linux-kernel@vger.kernel.org>; Wed, 26 Jul 2023 21:59:07 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0F5EC61D32 for <linux-kernel@vger.kernel.org>; Thu, 27 Jul 2023 04:59:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3CFE3C433C7; Thu, 27 Jul 2023 04:59:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690433946; bh=nI3Z9E6LOhtjoLvillvTW615wdZhZT9TfqRBESPyb7g=; h=Date:From:To:Cc:Subject:From; b=js8a6UH9dinR7AIi+YwNglSjbd6sFcwWYXFMgJXueedhSrAeN5vww8wXM6VIZzoZe cw+hm2tvfhvHA3BYoLQs5r0N4QaMEHCQnYB4iT0UjeZiRKZ4RIiA/Oy5g0tjDjLgbW 55wyhbb6qXK2G45s7s18Ihczb1IXr+KMbIcg+ZFVd348P5HPtkAYpDKbHYITqS6z08 Wk6bGMfqyRKQUkVirBTYWM83C1VkNKtke21THQs1I3nUw5VX/VGbhuFrWDmhC1CHsx YUJf0xPA0FCEJH8KXmUDTKyF66Nph6dejQgYe90jvwQfrc0HUof3cfVqiB4VnFoQN9 FwyOmxNnnUU5w== Date: Thu, 27 Jul 2023 07:58:31 +0300 From: Mike Rapoport <rppt@kernel.org> To: Linus Torvalds <torvalds@linux-foundation.org> Cc: Andrew Morton <akpm@linux-foundation.org>, Mike Rapoport <rppt@kernel.org>, Rik van Riel <riel@surriel.com>, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] memblock fixes for v6.5-rc4 Message-ID: <20230727045831.GB1901145@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772551048288793468 X-GMAIL-MSGID: 1772551048288793468 |
Series |
[GIT,PULL] memblock fixes for v6.5-rc4
|
|
Pull-request
https://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock.git tags/fixes-2023-07-27Message
Mike Rapoport
July 27, 2023, 4:58 a.m. UTC
Hi Linus, The following changes since commit 6eaae198076080886b9e7d57f4ae06fa782f90ef: Linux 6.5-rc3 (2023-07-23 15:24:10 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock.git tags/fixes-2023-07-27 for you to fetch changes up to 9e46e4dcd9d6cd88342b028dbfa5f4fb7483d39c: mm,memblock: reset memblock.reserved to system init state to prevent UAF (2023-07-24 08:52:56 +0300) ---------------------------------------------------------------- memblock: reset memblock.reserved to system init state to prevent UAF A call to memblock_free() or memblock_phys_free() issued after memblock data is discarded will result in use after free in memblock_isolate_range(). When CONFIG_KASAN is enabled, this will cause a panic early in boot. Without CONFIG_KASAN, there is a chance that memblock_isolate_range() might scribble on memory that is now in use by somebody else. Avoid those issues by making sure that memblock_discard points memblock.reserved.regions back at the static buffer. If memblock_free() or memblock_phys_free() is called after memblock memory is discarded, that will print a warning in memblock_remove_region(). ---------------------------------------------------------------- Rik van Riel (1): mm,memblock: reset memblock.reserved to system init state to prevent UAF mm/memblock.c | 4 ++++ 1 file changed, 4 insertions(+)
Comments
On Wed, 26 Jul 2023 at 21:59, Mike Rapoport <rppt@kernel.org> wrote: > > memblock: reset memblock.reserved to system init state to prevent UAF > [..] The merge message shouldn't just be a repeat of the commit message. I ended up cutting it down a bit, but would prefer to just get a concise summary rather than the repeat of the message for the fix. Linus
The pull request you sent on Thu, 27 Jul 2023 07:58:31 +0300:
> https://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock.git tags/fixes-2023-07-27
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/379e66711b33f9fdc0513daee6cf3dd8d2f6f435
Thank you!