From patchwork Fri Aug 2 08:38:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Shyti X-Patchwork-Id: 13751255 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6B42DC3DA4A for ; Fri, 2 Aug 2024 08:39:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DD4C510E9B7; Fri, 2 Aug 2024 08:39:17 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="eXy7+LHB"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9448010E9B5; Fri, 2 Aug 2024 08:39:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1722587957; x=1754123957; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=XlA9AQuyIFlsx08RNDemAZUvhNjUTOWHkgwUwhktJEk=; b=eXy7+LHB+sIoa5cBet0umEk3nMTKApfKo/t54aD4lNlrONv2pE1cbwX/ x7Gz2LZWUsIoZibYmej5ioenZvUPapTaPjfgFjBPOx1JOj4J8AhzOqwdq NWYTpAvxoMlMQV0lnwMhCQ/+ixlgmmVEJQLZcNEXrHV/A11xGLLKpqGeC GrvAxCOW5YBJ4nYNyoBFKJ0bd+j1A+Q6fHAbCDFiSgy/7ZiuhIJ0f1+Sj bQMnVm74xlMEt3Wv0ESxyR3aubPq2/GZaNwCxMkVSdMR4HyrDmwfKU1Qo sjRliJH7NwbC9NqtllyAUsROPSK1tU+6bclYgEFBq51f9SMC4F2rA7DVU g==; X-CSE-ConnectionGUID: eLRMLslMRq+Du/5hrfpwjA== X-CSE-MsgGUID: u04LN7y3QlWH99zEPxJxtg== X-IronPort-AV: E=McAfee;i="6700,10204,11151"; a="23513483" X-IronPort-AV: E=Sophos;i="6.09,257,1716274800"; d="scan'208";a="23513483" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2024 01:39:16 -0700 X-CSE-ConnectionGUID: EGRSb4qUT5KR3EXcAf439g== X-CSE-MsgGUID: uWqXoWjOQJ2ScZLinufYwA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,257,1716274800"; d="scan'208";a="59443592" Received: from pgcooper-mobl3.ger.corp.intel.com (HELO intel.com) ([10.245.245.86]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2024 01:39:13 -0700 From: Andi Shyti To: intel-gfx , dri-devel Cc: Jann Horn , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , Jann Horn , Chris Wilson , Krzysztof Niemiec , Andi Shyti , Matthew Auld , Andi Shyti Subject: [PATCH 0/2] Fix mmap memory boundary calculation Date: Fri, 2 Aug 2024 10:38:48 +0200 Message-ID: <20240802083850.103694-1-andi.shyti@linux.intel.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Hi, this series fixes the memory limits calculation (start, end), in order to avoid access to addresses not belonging to the mapped page. This series has been reviewed in other communities but, because it needs to go through drm-tip, I am proposing it again here in the intel-gfx mailing list. Jann, Rodrigo, could you please restate your review tag? Thanks, Andi Andi Shyti (2): drm/i915/gem: Adjust vma offset for framebuffer mmap offset drm/i915/gem: Fix Virtual Memory mapping boundaries calculation drivers/gpu/drm/i915/gem/i915_gem_mman.c | 55 +++++++++++++++++++++--- 1 file changed, 49 insertions(+), 6 deletions(-)