Message ID | 1535264258387@kroah.com (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 B27CF139B for <patchwork-linux-mm@patchwork.kernel.org>; Sun, 26 Aug 2018 06:18:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C451E29923 for <patchwork-linux-mm@patchwork.kernel.org>; Sun, 26 Aug 2018 06:18:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B5CC22992C; Sun, 26 Aug 2018 06:18:01 +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 E16E229923 for <patchwork-linux-mm@patchwork.kernel.org>; Sun, 26 Aug 2018 06:17:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D0DEB6B395C; Sun, 26 Aug 2018 02:17:58 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id C96806B395D; Sun, 26 Aug 2018 02:17:58 -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 B615C6B395E; Sun, 26 Aug 2018 02:17:58 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by kanga.kvack.org (Postfix) with ESMTP id 6E9BC6B395C for <linux-mm@kvack.org>; Sun, 26 Aug 2018 02:17:58 -0400 (EDT) Received: by mail-pg1-f199.google.com with SMTP id g9-v6so8732908pgc.16 for <linux-mm@kvack.org>; Sat, 25 Aug 2018 23:17:58 -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:subject:to:cc :from:date:message-id:mime-version:content-transfer-encoding; bh=3N1gOLEGo2SLDO5SK8NOicykNUgxFNDnRGC0jIkUyk8=; b=U9qdQleVFd/2JxDiVWTif/ADN4RHWbXXbbgblX3lui9CbpT2Azof0TCacCrKeCZ7ZC 5oY7arx0RoemjaiYYbRuSrrtAaABZzqkiKTlWIpudx6f5hMinRJfwl4OgdEzp+u2Xbnk ROKiqncOdIgKhaoS1XyP2k7InVe3CsxWykFxsYUZ594ckSjHYa9WB0bB1E15jVzVgv9y gQa3IvlRtQhJcfdSe64GRBS3U4KYQwzmcTjCLT8BXWUJB5ZD49lvM3JN8yYY6hzYGozq Y6snCi4yUO6+zyTaorYxhpDng4ip+xPcCAjAvL7/aOyZfe7pVZY0UBNkCSXmGj9ldmpQ lJqw== 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: APzg51AyuaANzKTiIz7oXXu99nf8coYt5gkLw5GvwZry4AvmcpqvHLuL DEWhANTIAhOHs462kvaMTwBJMB3kTgRlSKtAbbk0ZnEV5BNMJvKKURMt/CxoJDckBt4dbgqzh7B riTvDSrEI14cGHnwNdbOq7bpfisPfz57LIVULFrrcc++X8BV1NKbwO0eYpV9UsLYFTQ== X-Received: by 2002:a17:902:b78a:: with SMTP id e10-v6mr8152587pls.79.1535264278083; Sat, 25 Aug 2018 23:17:58 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaKe5cS9TArvckIE8iB/AjgHc1QCluvGHSV0OKZahKkWlV29tZ0Y4/wiCuGCg/iS6m89k2I X-Received: by 2002:a17:902:b78a:: with SMTP id e10-v6mr8152559pls.79.1535264277117; Sat, 25 Aug 2018 23:17:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535264277; cv=none; d=google.com; s=arc-20160816; b=SG5243zHFJrie5jTYRzE7vRS1xEpJVqJ8moRmkoUAF69Q6QdtlBmgtuHu5SZEAwAw7 YCX/6ZpxfYu1W6GDT3N0EQZ61ckHjj0CV8XUMGcZm0H3iBmCtYQad/n/yYXASRoDoX3G kiQbCOfDbGAWBrMtXeexxPGPqw+hn3+u3iZSPIogWmEgFdis36G0Fpv9WxxnsZ+rgtWP yeSBfmLYT6Fv+BSy5oQhSdTJAuEZQ2FtWh6sgJfRY5lOLmPktMPZR3z6Coxbdx/81NiJ rlIFTUy4IYhg4uIDGFCDCQXgw8AL3WcRIpUPpMq7usyuP2YnrLZ/HxjlcjYgoXSo8qmu vVZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:from:cc:to :subject:arc-authentication-results; bh=3N1gOLEGo2SLDO5SK8NOicykNUgxFNDnRGC0jIkUyk8=; b=BsC8Pzvwq79XLTcbZI2dHJEko3Sqfc6KZSQjhWY/5+2//IrHiD5F3/3lxfPv58Oe3j nbY8IzUcD40EgFw7XE+cKM1iIqhFPHH/lt9pqo8jq77QgB/jvFtrry1RX7Bd52qTJsAH 1Gfvkk+zwZKs3Y5qpS4kZzgyx76Cy68dXVYu1DA2XM/FYC+//EZjQwFbUteJ3X6hXjYO E4YFNyEn7aWlu2+diXi2ofElMVQBocYinBfZemsKCE+wiHKyLva46JqEVpRsZ6FgNQUV aXz1LdycNYyEqeIatZLe/PMBK+lPxxNoi4RMxN94Mt5BoRaGETAKnymYVGHYtmMbBJjC vvzg== 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 w66-v6si12671491pfi.88.2018.08.25.23.17.56 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 Aug 2018 23:17:57 -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 C113725A; Sun, 26 Aug 2018 06:17:55 +0000 (UTC) Subject: Patch "x86/mm: Fix use-after-free of ldt_struct" has been added to the 4.4-stable tree To: 20170824175029.76040-1-ebiggers3@gmail.com,akpm@linux-foundation.org,ben.hutchings@codethink.co.uk,bp@alien8.de,brgerst@gmail.com,dave.hansen@linux.intel.com,dvlasenk@redhat.com,dvyukov@google.com,ebiggers@google.com,gregkh@linuxfoundation.org,hch@lst.de,linux-mm@kvack.org,luto@amacapital.net,mhocko@suse.com,mingo@kernel.org,penguin-kernel@I-love.SAKURA.ne.jp,peterz@infradead.org,riel@redhat.com,tglx@linutronix.de,torvalds@linux-foundation.org Cc: <stable-commits@vger.kernel.org> From: <gregkh@linuxfoundation.org> Date: Sun, 26 Aug 2018 08:17:38 +0200 Message-ID: <1535264258387@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit X-stable: commit 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 |
Patch "x86/mm: Fix use-after-free of ldt_struct" has been added to the 4.4-stable tree
|
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) {