From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 714F9C43381 for ; Mon, 18 Mar 2019 12:17:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 489CB2085A for ; Mon, 18 Mar 2019 12:17:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726889AbfCRMRR convert rfc822-to-8bit (ORCPT ); Mon, 18 Mar 2019 08:17:17 -0400 Received: from mail.fireflyinternet.com ([109.228.58.192]:60168 "EHLO fireflyinternet.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726908AbfCRMRN (ORCPT ); Mon, 18 Mar 2019 08:17:13 -0400 X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=78.156.65.138; Received: from localhost (unverified [78.156.65.138]) by fireflyinternet.com (Firefly Internet (M1)) with ESMTP (TLS) id 15927174-1500050 for multiple; Mon, 18 Mar 2019 12:17:12 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT To: intel-gfx@lists.freedesktop.org From: Chris Wilson In-Reply-To: <20190314075829.16838-1-chris@chris-wilson.co.uk> Cc: Antonio Argenziano , Joonas Lahtinen , Tvrtko Ursulin , stable@vger.kernel.org References: <20190314075829.16838-1-chris@chris-wilson.co.uk> Message-ID: <155291142864.4168.9049265662792300434@skylake-alporthouse-com> User-Agent: alot/0.6 Subject: Re: [PATCH] drm/i915: Sanity check mmap length against object size Date: Mon, 18 Mar 2019 12:17:09 +0000 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org Quoting Chris Wilson (2019-03-14 07:58:29) > We assumed that vm_mmap() would reject an attempt to mmap past the end of > the filp (our object), but we were wrong. Applications that tried to use the mmap beyond the end of the object would be greeted by a SIGBUS. > Reported-by: Antonio Argenziano > Testcase: igt/gem_mmap/bad-size > Signed-off-by: Chris Wilson > Cc: Antonio Argenziano > Cc: Joonas Lahtinen > Cc: Tvrtko Ursulin > Cc: stable@vger.kernel.org