]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
x86/ldt: Initialize the context lock for init_mm
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 1 Jul 2019 17:33:54 +0000 (19:33 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 9 Jul 2019 11:57:27 +0000 (13:57 +0200)
commit39ca5fb4920a96eeab478be2cfa6a2369fef6b02
tree0592e2fb936d42a40835340099b9fa81d54577ff
parent222a21d29521d144f3dd7a0bc4d4020e448f0126
x86/ldt: Initialize the context lock for init_mm

The mutex mm->context->lock for init_mm is not initialized for init_mm.
This wasn't a problem because it remained unused. This changed however
since commit
4fc19708b165c ("x86/alternatives: Initialize temporary mm for patching")

Initialize the mutex for init_mm.

Fixes: 4fc19708b165c ("x86/alternatives: Initialize temporary mm for patching")
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Nadav Amit <namit@vmware.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Andy Lutomirski <luto@kernel.org>
Link: https://lkml.kernel.org/r/20190701173354.2pe62hhliok2afea@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/mmu.h