Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp590580ybz; Wed, 15 Apr 2020 14:41:21 -0700 (PDT) X-Google-Smtp-Source: APiQypJz9SVq/UublPO2iAx4sIFfooU6ISx5H0msQ6IexKSQfb5IJET8rHnpj7ykNJMsGMNvRaSI X-Received: by 2002:aa7:cf1a:: with SMTP id a26mr27137594edy.12.1586986881445; Wed, 15 Apr 2020 14:41:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586986881; cv=none; d=google.com; s=arc-20160816; b=KQYltj9LjRrxrV+riAoclF2evPjQxWO4FY/kTPLPWNgSaoqXT3bK6PFX2kR2ytf7PF 63KEkClM64UyaMZasJyxt4KuNnsAkpAcu16UZM0U1d0X5TBKHTuFj1nu7VHBqgw9VdST kSh+fs1asrtoDm8sKweN1G6Ki4iM3u2eF5n//uEPo5Nw9GfouSZ8C3c9TL4Q6/pP6rMr +eZQJfb6m1XciTMjA9SYnrNuPIfgwtH1+o3UEPgTmkfIwybDRhxN5oD7ORLkknR4cfjx Fu89hier/Tep3QqriXjku3CsJjj0YzJC7Bbi3b6mJ6EHOeSofpLI6D6yJGJ3//QUa6wl qCHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=b46FLzjQptSagp/xfLqlctJ2inJ/nKaHorlrrWRuYO8=; b=s2WjDGxpsbddkVjk2oq+C+RJ8tkmRgMHV8NpsQ8dqKdl5YiBgwMQ9bPVnCbE3eBP2I X5UprefjHhmdd8vrhAhkwnPd1sXTWzDNwU1IrbvM1aADxBTVfrYCHUt+fobmacDt6S/h +yU+yAD7t4UHJA/C3DVG9AsOQ6kaO5lo/C3fE7idNnzJd2Yo/3J6uJL6CvxWNFn5qHfC 8daCRWeUid3XXetcm+nfm9nNKFOd123sGV2yNwYVIEGxX5bLZJAQMV92Tpxc3AHBqLP8 wXRkXFyAiZ07p6rlWi9vDO36T3mYxYXfna4r7W64ngtuqTKuXQcaP/FBZTJMY9fK1yhR ahPw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y3si11106214edr.469.2020.04.15.14.40.58; Wed, 15 Apr 2020 14:41:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436869AbgDNPJS (ORCPT + 99 others); Tue, 14 Apr 2020 11:09:18 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:25652 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2440278AbgDNPId (ORCPT ); Tue, 14 Apr 2020 11:08:33 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 03EF5XsU020657 for ; Tue, 14 Apr 2020 11:08:32 -0400 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 30cvqfg38q-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 14 Apr 2020 11:08:32 -0400 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 14 Apr 2020 16:08:13 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp03.uk.ibm.com (192.168.101.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 14 Apr 2020 16:08:10 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 03EF8QEl40894526 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 Apr 2020 15:08:26 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 98DB44C044; Tue, 14 Apr 2020 15:08:26 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 519414C046; Tue, 14 Apr 2020 15:08:26 +0000 (GMT) Received: from oc3871087118.ibm.com (unknown [9.145.30.155]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 14 Apr 2020 15:08:26 +0000 (GMT) From: Alexander Gordeev To: linux-kernel@vger.kernel.org Cc: Alexander Gordeev , linux-mm@kvack.org Subject: [PATCH RESEND 0/2] mm/mmap: check mapping address limits more strictly Date: Tue, 14 Apr 2020 17:08:21 +0200 X-Mailer: git-send-email 1.8.3.1 X-TM-AS-GCONF: 00 x-cbid: 20041415-0012-0000-0000-000003A46796 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20041415-0013-0000-0000-000021E19F81 Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.676 definitions=2020-04-14_06:2020-04-14,2020-04-14 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=1 lowpriorityscore=0 bulkscore=0 malwarescore=0 mlxlogscore=454 mlxscore=0 impostorscore=0 adultscore=0 spamscore=0 phishscore=0 clxscore=1015 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004140119 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The series is against linux-next CC: linux-mm@kvack.org Alexander Gordeev (2): mm/mmap.c: add more sanity checks to get_unmapped_area() mm/mmap.c: deny fixed mappings outside of allowed limits mm/mmap.c | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) -- 1.8.3.1