* [GIT PULL] memblock fixes for v6.5-rc4
@ 2023-07-27 4:58 Mike Rapoport
2023-07-27 18:40 ` Linus Torvalds
2023-07-27 19:49 ` pr-tracker-bot
0 siblings, 2 replies; 3+ messages in thread
From: Mike Rapoport @ 2023-07-27 4:58 UTC (permalink / raw)
To: Linus Torvalds
Cc: Andrew Morton, Mike Rapoport, Rik van Riel, linux-mm,
linux-kernel
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(+)
--
Sincerely yours,
Mike.
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [GIT PULL] memblock fixes for v6.5-rc4
2023-07-27 4:58 [GIT PULL] memblock fixes for v6.5-rc4 Mike Rapoport
@ 2023-07-27 18:40 ` Linus Torvalds
2023-07-27 19:49 ` pr-tracker-bot
1 sibling, 0 replies; 3+ messages in thread
From: Linus Torvalds @ 2023-07-27 18:40 UTC (permalink / raw)
To: Mike Rapoport; +Cc: Andrew Morton, Rik van Riel, linux-mm, linux-kernel
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
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [GIT PULL] memblock fixes for v6.5-rc4
2023-07-27 4:58 [GIT PULL] memblock fixes for v6.5-rc4 Mike Rapoport
2023-07-27 18:40 ` Linus Torvalds
@ 2023-07-27 19:49 ` pr-tracker-bot
1 sibling, 0 replies; 3+ messages in thread
From: pr-tracker-bot @ 2023-07-27 19:49 UTC (permalink / raw)
To: Mike Rapoport
Cc: Linus Torvalds, Andrew Morton, Mike Rapoport, Rik van Riel,
linux-mm, linux-kernel
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!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-07-27 19:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-27 4:58 [GIT PULL] memblock fixes for v6.5-rc4 Mike Rapoport
2023-07-27 18:40 ` Linus Torvalds
2023-07-27 19:49 ` pr-tracker-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).