Message ID | 15375182311565@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 5B30914BD for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 21 Sep 2018 08:33:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A4D52DAD3 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 21 Sep 2018 08:33:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3D0EA2DBBE; Fri, 21 Sep 2018 08:33:06 +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 CFC842DAD3 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 21 Sep 2018 08:33:04 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C64A38E0002; Fri, 21 Sep 2018 04:33:03 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id BEB998E0001; Fri, 21 Sep 2018 04:33:03 -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 AB5188E0002; Fri, 21 Sep 2018 04:33:03 -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 67D758E0001 for <linux-mm@kvack.org>; Fri, 21 Sep 2018 04:33:03 -0400 (EDT) Received: by mail-pf1-f199.google.com with SMTP id e15-v6so6316474pfi.5 for <linux-mm@kvack.org>; Fri, 21 Sep 2018 01:33:03 -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=XU2iMHLscu/Hwyjia6LhPOuVJvwp5Y8jQybOhobQZ7U=; b=p7RZgibE0gfWN2rgbPDl+jTie6+is57H6GxFaLkBPmPgBzTUYfjTeEXXozJ8XqGXOZ jhPgOUydr/WumGjZHWVukyiq/Z2A0zGD/Pk0q87wv79DBZbV87x+PNSV2kXPvQ6shXeH 4XGSE9edXSs4EpwJb1Y5y0wudPB5loM9+t/Smb50Nf8LpctlrtE3mwhyhHkf9RApfulI 4yBz3YCsVpQZjm+Q9FdXLo5K7JuO5mw8M6uVJ0Oz9GwU9mkpxroe+Ep5OlGxRk6/2F2G x/5QNAfrya4379uNnsllYWHZi1i+GaRTxDW8a8xpHIEFTMzBGMJekSk/gZDeWAy0E19i vU7g== 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: APzg51D0z2nUrGD+p2ZmcAyQ6UqD1eKWfgNWn/mWbt9v+1aM6l3GTAYb nxfGEdDZA5qm+2ymMO4IG4Iyz4ct3r+8qrKEQX4rhY+5/djNwWfoK6mJata45afHVEneKqGMpR6 2HsfkQVAnYYXvSaLxGS2GsKUDx3mW6POd/uuFKNjj4IaCqW1bDCEs7bI/UC1trWzv7Q== X-Received: by 2002:a63:f043:: with SMTP id s3-v6mr36884039pgj.94.1537518783034; Fri, 21 Sep 2018 01:33:03 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaQwHw5VERmGHHkSmz/W9eT18c1u1xm77dZtkdjJ7xIsdy7X1AT9sOLARzmHs5sPADBGU0r X-Received: by 2002:a63:f043:: with SMTP id s3-v6mr36883977pgj.94.1537518782038; Fri, 21 Sep 2018 01:33:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537518782; cv=none; d=google.com; s=arc-20160816; b=Qr1GEXdDsATc70TMICmE03E03XXWnm/91sUFpzJf1f+xoyuzpwjTel0E+USwpWyDeg 0r+N/ep06cc9CkBMngctsLYEQL92yIdfmhYTwvPjqKPR7ZCrvyW0Gn8A4LZtb5/IQR02 uypeIiUKPtWcKtQN+7CwsnJfNUCLmvcjub+Yq+li2uUZl3CMWRa+1wH0ocCgQvdSGlLP JJaeNsiCcK6bdsg6w+fGChBj/bfC4h7swXEKwGhucQQluMRjKNoqnrVp/jk+oSYP8ruV DdYX+CqGG//FBq4QCz05Vv2aF6Mzx+xZa/wOF347YoUZtQAMDlMpGFBM3D0yXDr+eP6w cPjQ== 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; bh=XU2iMHLscu/Hwyjia6LhPOuVJvwp5Y8jQybOhobQZ7U=; b=tFmmMn6YDdKvzJakdODbrSmOgeL6Q7g5Aa8c8oKhRu+v5Yf1mpiW0MKnWS5viv8heZ t+XXtH/YIuNIHVPM4GfEYR94zfhGn58XcecmJvhnZ2Ox2ythjPCJgZJHLrkosQzx8++q vsPbVGntieF3OGxn9NfDyTn4j2Q4jdKEq5DdZmu1n+ve/Glyh0CDR1LpXT79oLnhfX4T fcp+jw4lIld4pAjPqDCFzaFsO6PWvec0C9uCD71JrOWTLSsTHAwh1qCJP3cbuA1X52uO 5AR4lelfRXa37s0booriN888bRlcDwh/0ajBl17ziDyl3vcRGfpPxHDCDX2p7kury1+k GolQ== 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 j19-v6si26388925pgb.623.2018.09.21.01.33.01 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Sep 2018 01:33:02 -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 (unknown [37.170.50.219]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 59671D9C; Fri, 21 Sep 2018 08:33:00 +0000 (UTC) Subject: Patch "x86/mm/pti: Add an overflow check to pti_clone_pmds()" has been added to the 4.18-stable tree To: 1531906876-13451-25-git-send-email-joro@8bytes.org,David.Laight@aculab.com,aarcange@redhat.com,alexander.levin@microsoft.com,aliguori@amazon.com,boris.ostrovsky@oracle.com,bp@alien8.de,brgerst@gmail.com,daniel.gruss@iaik.tugraz.at,dave.hansen@intel.com,dhgutteridge@sympatico.ca,dvlasenk@redhat.com,eduval@amazon.com,gregkh@linuxfoundation.org,hpa@zytor.com,hughd@google.com,jgross@suse.com,jkosina@suse.cz,joro@8bytes.org,jpoimboe@redhat.com,jroedel@suse.de,keescook@google.com,linux-mm@kvack.org,llong@redhat.com,luto@kernel.org,pavel@ucw.cz,peterz@infradead.org,tglx@linutronix.de,torvalds@linux-foundation.org,will.deacon@arm.com Cc: <stable-commits@vger.kernel.org> From: <gregkh@linuxfoundation.org> Date: Fri, 21 Sep 2018 10:23:51 +0200 Message-ID: <15375182311565@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/pti: Add an overflow check to pti_clone_pmds()" has been added to the 4.18-stable tree
|
expand
|
--- a/arch/x86/mm/pti.c +++ b/arch/x86/mm/pti.c @@ -306,6 +306,10 @@ pti_clone_pmds(unsigned long start, unsi p4d_t *p4d; pud_t *pud; + /* Overflow check */ + if (addr < start) + break; + pgd = pgd_offset_k(addr); if (WARN_ON(pgd_none(*pgd))) return;