Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7828780ybi; Tue, 9 Jul 2019 05:05:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxWHfHLSEkucZGw2JTjwrHacttQ8pynsaU9wongU8myNsEx3fy09Luru69ukDFyUqhU6u+a X-Received: by 2002:a17:90a:bb8a:: with SMTP id v10mr32928393pjr.78.1562673916846; Tue, 09 Jul 2019 05:05:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562673916; cv=none; d=google.com; s=arc-20160816; b=lj4igJZjExE+i58JqQrKYS78qCjnYQgXRmBfxAVDTb0Fky0cw2c1KC/5iFGMhCZ44o mx9pGbsWMGRg5g9K26mv7Jy/+OjKrvJEJEBeXyqi1mfW6UpZgzDk8c618sucoukYdonQ 3C07wMC/53M+wSTKsq3UcqOZHynSpsLR7SJ1PtcKQeVdFW/U/OCpgzXq1TeIigjhsoip 9NrmRoAHEEPNwPFp3fnboW6S8s4qZZsPwC2pnso8n2+bEEzvpXZri6H5JY1isx+axMkn PIIITZpzcfTziiCtoVwcnq/ngqngq37EI98/NsGsSrobvvXJz2LIXXRXTmcVvtJXkdiT XzlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:dkim-signature:dkim-filter; bh=/2x53xsaYjEwZKhCR+Lna7knUXf4AE91SwNYN698RMw=; b=o4vmKEmesxqPVHK2RurjbpEYLVl67IeYHNTYoFTao6BhFR10CAdHBmgGv2IgYKKmqT Gosh/G2WLRYExGXIdd48jgO2Dx5KsXESb9xqabiIM73oJYXT+bCG9p4EhALzSmocNkhn eUhCkE1ISGwq4Isp16cfmiuWbh/OeLP6iiYh4hYzfHt+QU2oMDZX7jZ91vEBknlvRJ8F uPUq4NAInUKqcBPzgucDxkGWajir8N373Wnph7GthMZXyC+/FLuGhHpxv7R3LMOCqa44 aA8Y0fGzwlapHDLhGHNuHq6jc0du5WFS1sRwIh0phcn94BVQlpzzziDyzCpqnnHrQlUL Yk5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2019061801 header.b=QdGxTeui; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i68si14725841pfc.153.2019.07.09.05.05.00; Tue, 09 Jul 2019 05:05:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@zytor.com header.s=2019061801 header.b=QdGxTeui; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726623AbfGIMDA (ORCPT + 99 others); Tue, 9 Jul 2019 08:03:00 -0400 Received: from terminus.zytor.com ([198.137.202.136]:52189 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726030AbfGIMDA (ORCPT ); Tue, 9 Jul 2019 08:03:00 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x69C2nmN1901935 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Tue, 9 Jul 2019 05:02:49 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x69C2nmN1901935 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019061801; t=1562673770; bh=/2x53xsaYjEwZKhCR+Lna7knUXf4AE91SwNYN698RMw=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=QdGxTeui5l/K6vaqHAAl4eSFbofhRjow3vkmtkZMSaXn9htXgW2hUGymop60E6/XN P5UuumlSlesvzF0V8J71XrkdvAfEzkj800SnrBC181ACLBckX16rjXgQn72QNwO5bC 6dZI870m6T7a/HIKZTOARdhe1CLxMb5MuaWfml4sdZzlqEsu7ZHNCe2mu/VLftkKil 9qXFUIvGlc7utnXGaaycDS/8FPUbt4UZB9WpzBUoyG9R4jDV8QnqooB0UYk46hKLrO rR7ir7/NuOQ/CGa3lJ65rxJyp3QGzfIJPv8XQNWhIkhqnFodOCJgqvA4CYDlZwqv6K 6c7LqcBtEZjpA== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x69C2nNm1901932; Tue, 9 Jul 2019 05:02:49 -0700 Date: Tue, 9 Jul 2019 05:02:49 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Sebastian Andrzej Siewior Message-ID: Cc: hpa@zytor.com, peterz@infradead.org, luto@kernel.org, linux-kernel@vger.kernel.org, mingo@kernel.org, tglx@linutronix.de, bigeasy@linutronix.de, namit@vmware.com Reply-To: hpa@zytor.com, peterz@infradead.org, luto@kernel.org, mingo@kernel.org, linux-kernel@vger.kernel.org, namit@vmware.com, tglx@linutronix.de, bigeasy@linutronix.de In-Reply-To: <20190701173354.2pe62hhliok2afea@linutronix.de> References: <20190701173354.2pe62hhliok2afea@linutronix.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/urgent] x86/ldt: Initialize the context lock for init_mm Git-Commit-ID: 39ca5fb4920a96eeab478be2cfa6a2369fef6b02 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_06_12,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU, DKIM_VALID_EF autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 39ca5fb4920a96eeab478be2cfa6a2369fef6b02 Gitweb: https://git.kernel.org/tip/39ca5fb4920a96eeab478be2cfa6a2369fef6b02 Author: Sebastian Andrzej Siewior AuthorDate: Mon, 1 Jul 2019 19:33:54 +0200 Committer: Ingo Molnar CommitDate: Tue, 9 Jul 2019 13:57:27 +0200 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 Signed-off-by: Thomas Gleixner Reviewed-by: Nadav Amit Cc: Peter Zijlstra Cc: Andy Lutomirski Link: https://lkml.kernel.org/r/20190701173354.2pe62hhliok2afea@linutronix.de Signed-off-by: Ingo Molnar --- arch/x86/include/asm/mmu.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/mmu.h b/arch/x86/include/asm/mmu.h index 5ff3e8af2c20..e78c7db87801 100644 --- a/arch/x86/include/asm/mmu.h +++ b/arch/x86/include/asm/mmu.h @@ -59,6 +59,7 @@ typedef struct { #define INIT_MM_CONTEXT(mm) \ .context = { \ .ctx_id = 1, \ + .lock = __MUTEX_INITIALIZER(mm.context.lock), \ } void leave_mm(int cpu);