Message ID | 20180826064103.324031685@linuxfoundation.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9AABE109C for <patchwork-linux-mm@patchwork.kernel.org>; Sun, 26 Aug 2018 06:43:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 798BB29B4C for <patchwork-linux-mm@patchwork.kernel.org>; Sun, 26 Aug 2018 06:43:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6931B29B7E; Sun, 26 Aug 2018 06:43:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 85C3F29B4C for <patchwork-linux-mm@patchwork.kernel.org>; Sun, 26 Aug 2018 06:43:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 33D5E6B3976; Sun, 26 Aug 2018 02:43:52 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 29B1F6B3977; Sun, 26 Aug 2018 02:43:52 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0EEE26B3978; Sun, 26 Aug 2018 02:43:52 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by kanga.kvack.org (Postfix) with ESMTP id C124E6B3976 for <linux-mm@kvack.org>; Sun, 26 Aug 2018 02:43:51 -0400 (EDT) Received: by mail-pf1-f199.google.com with SMTP id e15-v6so9278603pfi.5 for <linux-mm@kvack.org>; Sat, 25 Aug 2018 23:43:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references:user-agent :mime-version; bh=bdv6zMDFlMOZRqPSeZnID9UHzlEVTyK8Cxk/lv3oTzQ=; b=Ao8vbmLXiztpwbK0HCPpeU3boCNIzK7MEprEEibm2sTRTPpGmkwRLuNYCEzgSQXKHs HlWYNPv/IT0Xik+e7IjsyqTJYy6hqb8LqTYisz8HvytCzYBINzFLmtNO1Z/seYqudzXG JWEc+vs72cX/mDxxKza/OSk8cf7M5Sy83qxpY6Jqe4E5kN/5KelOICBw/WD/fGKhmWhs k8QxktnFdLcK3BatzXgKgtD+3hyDyidx0eSMdN30v4/0OcZ6QFrEM+V5yreUlst66BDO kuctxV6XdRpv5O9Mn1+DZdCe7WbhjMneoRGVcZkJkY1kCwD6xiKIMI1JG1OXNlmGwpH1 6DRQ== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of gregkh@linuxfoundation.org designates 140.211.169.12 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org X-Gm-Message-State: APzg51D4yfULZeIafty4xxvq8Od5BS0wdqjwDhuuFI7RN2GPubs8rmo9 IH3aPlZSO34meKPJfzGDTOMd9aeYpK3lSlhHv1fkiXZBCMhBddxBqAR1P7KPxXv0cQ8HH8d1Stx ASYZn3vm45rqqMhZmknJqbOPWexewiFrcQcUub4loBWOBvOcs7KJQ5nvWzY9NS1Sj5g== X-Received: by 2002:a17:902:9f86:: with SMTP id g6-v6mr8198039plq.304.1535265831426; Sat, 25 Aug 2018 23:43:51 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYI4vJVR0FTlZv8+LLONFD/cWayn/qFlHy9BLsfM/+vc3BLxqgX4NwnFeUmqB5mlJLfliq+ X-Received: by 2002:a17:902:9f86:: with SMTP id g6-v6mr8198008plq.304.1535265830494; Sat, 25 Aug 2018 23:43:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535265830; cv=none; d=google.com; s=arc-20160816; b=vopak/zmbRv1Ksrk72fgT4bjSdsn2vPov5lFXb/stIyL2ilAifwGqECLttv4VDTALV 9Rt46UvAqVtOcAU+ZNcm6p2J8UV9dFiEIJ62KfSPzwDGUDiD3gzhjXMhqENo17066OST YuolpTHxT9hVUt4pJn0flPockY/4+Puaj4c8QdOdicAJf3AKst5oOxb2rxjF6Ps52C8B 3wyutCIZKUIErITs357B9CSFuq549VtFZmqhzchXIb/vl5v/nE/VvirJSfXWKN8zdIfU 6LkBxvc+u110Who4UgzZsCYQD1OxpbJtbXcGmnr55Ea4PeIRH9wbcgyX0Z4E93MboJxs IFjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=bdv6zMDFlMOZRqPSeZnID9UHzlEVTyK8Cxk/lv3oTzQ=; b=O7kbcPeK32WGXBwG5SqlQkOSlaLqAqcmorNDH+dfmgcTF4VYdvbwn2erTqAmGO5NMj HYlMrXAx2oaSnlvuzEiygPW/yAjHl22XDQLdOVA1IeR1PxkIpHsMY8X+PdcHEITKEZTQ 7TCQ3Sqor5j69/nh0mDHF672zGmtju64xoYB/3mdACqQnQ0gKAwuZhKU4htw6X0DXr1B Il97OVMUSOcq6VgY9zhRKOwfFh4yzsZmv4Ch/Mb4PvDWDFLDEm0PMYz37J2uEz4qwrYK bQvJuZQWxDSo5GdlgjtooIQsaboULOaYvFGW1IlZkcN/2OzR8Qz0M+FAZZsosBSlAttU oEcA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gregkh@linuxfoundation.org designates 140.211.169.12 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org Received: from mail.linuxfoundation.org (mail.linuxfoundation.org. [140.211.169.12]) by mx.google.com with ESMTPS id p35-v6si10794747pgb.209.2018.08.25.23.43.50 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 Aug 2018 23:43:50 -0700 (PDT) Received-SPF: pass (google.com: domain of gregkh@linuxfoundation.org designates 140.211.169.12 as permitted sender) client-ip=140.211.169.12; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gregkh@linuxfoundation.org designates 140.211.169.12 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org Received: from localhost (5355525A.cm-6-6b.dynamic.ziggo.nl [83.85.82.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 4A83125A; Sun, 26 Aug 2018 06:43:49 +0000 (UTC) From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Eric Biggers <ebiggers@google.com>, Dave Hansen <dave.hansen@linux.intel.com>, Andrew Morton <akpm@linux-foundation.org>, Andy Lutomirski <luto@amacapital.net>, Borislav Petkov <bp@alien8.de>, Brian Gerst <brgerst@gmail.com>, Christoph Hellwig <hch@lst.de>, Denys Vlasenko <dvlasenk@redhat.com>, Dmitry Vyukov <dvyukov@google.com>, Linus Torvalds <torvalds@linux-foundation.org>, Michal Hocko <mhocko@suse.com>, Peter Zijlstra <peterz@infradead.org>, Rik van Riel <riel@redhat.com>, Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>, Thomas Gleixner <tglx@linutronix.de>, linux-mm@kvack.org, Ingo Molnar <mingo@kernel.org>, Ben Hutchings <ben.hutchings@codethink.co.uk> Subject: [PATCH 4.4 2/5] x86/mm: Fix use-after-free of ldt_struct Date: Sun, 26 Aug 2018 08:42:54 +0200 Message-Id: <20180826064103.324031685@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180826064102.584749876@linuxfoundation.org> References: <20180826064102.584749876@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
None
|
expand
|
--- a/arch/x86/include/asm/mmu_context.h +++ b/arch/x86/include/asm/mmu_context.h @@ -109,8 +109,7 @@ static inline int init_new_context(struc struct mm_struct *mm) { mm->context.ctx_id = atomic64_inc_return(&last_mm_ctx_id); - init_new_context_ldt(tsk, mm); - return 0; + return init_new_context_ldt(tsk, mm); } static inline void destroy_context(struct mm_struct *mm) {